Go Down

Topic: Scratch Library (Read 2481 times) previous topic - next topic


I posted this yesterday over at the Scratch forum I guess I should share it here as well.

Its a library I created for making it easier to use the Arduino as a Scratch board without having use a proxy program. At the moment it only supports input so that you can emulate a Sensorboard but I want to add support for output, ideally without changing the Scratch Image


and heres a simpletest scratch project:


You just need to unzip into your libraries folder and import and possibly restart the IDE, once this is done you can run the Sensorboard example if you want to try it out quickly.

Inside Scratch you need to select the COM port your Arduino is using, this will be the Virtual COM port, and you right click on the block showing the variables and select the COM port that the Arduino is using.

If you aren't sure which port number that is because it changes sometimes, go into the Arduino IDE and check which port is selected there


I like your library,great work. I have not tried it now,but it will save my work to do with scratch.


Nice library. Does the button only work with the internal Pull-up resistor ? I would like to connect the button with a 10K resistor (pull-down). Because I'm teaching with it, I like to explain that part of electronics as well.


For the overview :
I've found another implementation as well from Yengawa systems.

Here the translated site :

You have to upload the .pde. The button pin is on digital pin 2 (more logical in my opinion, so you keep RX/TX free).

Next to this you can also program the arduino in a scratch way.
Scratch for Arduino : http://seaside.citilab.eu/scratch/arduino
and modkit : http://www.modk.it/


I didn't know what Scratch was.


Now I do! Smalltalk and Arduino. Things just don't get much better than that!
I write books about Arduino and Electronics: http://simonmonk.org

Go Up