Pages: [1]   Go Down
Author Topic: Scratch Library  (Read 1400 times)
0 Members and 1 Guest are viewing this topic.
South Africa
Offline Offline
Full Member
***
Karma: 1
Posts: 141
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

http://www.geekstudio.co.za/files/arduino/scratchlib/Scratch1.0.zip

and heres a simpletest scratch project:

http://www.geekstudio.co.za/files/arduino/scratchlib/arduino.sb

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
Logged

South African Arduino User Group

http://arduino.za.net

Taiwan
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Enschede - The Netherlands
Offline Offline
Jr. Member
**
Karma: 0
Posts: 75
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Enschede - The Netherlands
Offline Offline
Jr. Member
**
Karma: 0
Posts: 75
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Here the translated site :
http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=http%3A%2F%2Fwww.yengawa.com%2Fscratch_arduino&act=url

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/
Logged

UK
Offline Offline
God Member
*****
Karma: 13
Posts: 905
Twitter: @simonmonk2
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I didn't know what Scratch was.

http://en.wikipedia.org/wiki/Scratch_(programming_language)

Now I do! Smalltalk and Arduino. Things just don't get much better than that!
Logged

--
My New Arduino Book: http://www.arduinobook.com

Pages: [1]   Go Up
Jump to: