Blockly with Raspberry PI GPIO/RPIO libaries

3,421 views
Skip to first unread message

James Mitchell

unread,
Feb 16, 2015, 1:13:16 PM2/16/15
to blo...@googlegroups.com
Hi there,

I'm currently trying to further develop my project by doing what I have already done in Python, in blockly - which is to control a JunkBot(Consisting of pens, a motor and a base robot body) with the Raspberry Pi and a motorboard attached. 

To do this, I am using the RPIO library.

My issue with blockly (Very new to blockly, only just managed to get an environment of it working and running fine on the PI) is creating the blocks to utilize the library. Once this has been achieved, getting the user inputs should be a doddle I'm hoping!

Essentially the aim is:

- Use blockly to generate Python code which controls the direction of a motor (Clockwise, anticlockwise) via user key input
- Use the RPIO Library to achieve this
- Show the process of going from blockly to actual Python code to use on an educational basis.

However as there's not too many(Or none, that i've looked at) projects that are based on either Raspberry Pi's or using the RPIO/GPIO libraries. My question I suppose is how would one go about supporting the libraries in the blockbuilder or even the main code editor?

Cheers!

ADEL KASSAH

unread,
Feb 16, 2015, 3:59:54 PM2/16/15
to blo...@googlegroups.com
I support your work.
Please, let us know when you will release the first version. It wil be VERY VERY useful in education.
Good luck.

Gilles Boisson

unread,
Mar 17, 2015, 7:36:52 AM3/17/15
to blo...@googlegroups.com
Hi,

I was also thinking working with blocky to make a similar projet using raspberry Pi GPIO. 
I was thinking more working on a webapp communicating with raspberry through a node js API which will make the bridge between the app and the GPIO

for now i'm doing some test with node and a DIY starter kit, 

let me know what you think.

Roberto Previtera

unread,
Mar 17, 2015, 5:50:53 PM3/17/15
to blo...@googlegroups.com
Hello, I actually developed something very similar to what you are describing: a Raspberry PI "bot" which is programmable using the blockly editor.
The bot uses the raspberry pi camera to detect objects and react to the environment.
The motor controller is driven by the pigpio library, which I found to be more effective than the RPIO library.
Source code as well as motor control circuit is open source, please take a look: 

Hope this helps!
Roberto
Message has been deleted

Gilles Boisson

unread,
Mar 18, 2015, 3:05:58 AM3/18/15
to blo...@googlegroups.com
Interesting,

It’s definitely what I wanted to do. Thanks for sharing. 

Santhosh v pillai

unread,
Feb 28, 2018, 2:15:14 AM2/28/18
to Blockly
I am also working on generating python from blocks for pi.I searched for tutorials but find none.If you have any resource let me know

Santhosh v pillai

unread,
Apr 13, 2018, 11:37:56 PM4/13/18
to Blockly
Thanks for the lead

Michiel Erasmus

unread,
Apr 14, 2018, 5:07:47 PM4/14/18
to Blockly
I have built Blockly for Johnny-Five. Using this one can easily use GPIO ports, sensors etc etc on all Pi's such as the Pi Zero.




Op maandag 16 februari 2015 19:13:16 UTC+1 schreef James Mitchell:
Reply all
Reply to author
Forward
0 new messages