GrovePi and Scratch


#1

Hi,
is there any tutorial or video explaining the grovepi programming with Scratch and showing how to add libraries ?

Thanks,
Laurent


#2

Hey Laurent,
Here is a tutorial on using scratch with the GrovePi http://www.dexterindustries.com/grovepi-scratch-software/. I am not really sure what libraries are you talking about, can you tell a bit more about what you want to use scratch for.

-Karan


#3

Hi,
thanks for your fast reply.

When I use Grove with Arduino, i can add a library in Scratch4Arduino in witch there are all the Grove sensors and elements. It is then very simple to program scratch.

Is there something similar for GrovePi.

An other question, how make the link between pins on Grove and the I/O of Raspberry ?

Laurent


#4

Hey Laurent,
Scratch4Arduino looks a bit different that how we handle the communications with the GrovePi in Scratch. We use broadcasts and have a python program running in the background to handle the requests. The link in the last place is the best place where you can get started with Scratch and the GrovePi.

The GPIO on the raspberry pi are not accessible directly from the GrovePi. The GrovePi acts as an interpreter and interface between the Raspberry Pi and the Grove sensors. Here is a post on how the ports are arranged: http://www.dexterindustries.com/GrovePi/engineering/port-description/ and another about how the GrovePi works: http://www.dexterindustries.com/GrovePi/engineering/software-architecture/.

-Karan