A Gentle Introduction to Arduino for Scratch Users
There are lots of people who are very comfortable with the Scratch programming environment but want to try something with Arduino to Blink Lights, Sense Buttons, Run Servos or whatever. They may find the C programming environment in Arduino IDE – Sketch, a bit too much of a step.
This instructable draws on the work of the guys at “Citilab” http://seaside.citilab.eu/scratch .
They have created a modified version of Scratch to interface with Arduino.
Using Scratch Programs you can make Arduino Flash Lights, Read Buttons, and do many of the things that you can do with the the regular Arduino environment.
So if you like Scratch and Arduino but are not quite ready for C programming (yet), this is something you can try out.
Flashing LED Experiment
To start we need to wire an LED and Switch to the Arduino (along with some Resistors), as shown in the diagrams below.
We’re using the switch in the second experiment and the LED in both the first and second experiments.
Go ahead and wire it up as shown.
Scratch Program 1: LED Blinking
Startup S4A (Scratch 4 Arduino) and Enter the Scratch program as Shown.
You Should Now See the LED flashing.
If you don’t. Check the wiring.
The equivalent C program (Arduino Sketch) is shown below as well.
Compare the C and the Scratch and see if you can figure out what’s going on.
For more detail: A Gentle Introduction to Arduino for Scratch Users
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic – Simulation – PCB Layout – Gerber Viewer
Cheapest PCB Prototype: Only $2 for 10pcs 10×10cm PCBs, 24 hours Quick Turn, DHL Delivery in 3 Days