scratch for arduino
Arduino objects offer blocks for the basic microcontroller functionalities, analog and digital writes and reads, and also for higher level ones. You can find a block to manage Parallax continuous rotation servomotors.
Creating Arduino objects is available in 3 different ways as in the Scratch environment. You can choose between creating a new connection or using an already created one. This feature allows Arduino virtual objects work collaboratively using the same connection (the physical object). The Arduino object will find the usb port where the board is connected.
S4A interacts with Arduino sending actuators state and receiving sensors state every 75 ms, therefore the width pulse has to be greater than this time period. This information exchange is done using the PicoBoard protocol and there has to be a specific program (called firmware) in the board. You´ll find instructions to upload it through the Arduino environment.
It works with Arduino Diecimila, Duemilanove and Uno versions, maybe it works with others but we haven´t tested them yet. You can also manage a wireless board if you add a RF module such as Xbee. An important feature is that you can make an interactive project involving as many boards as USB ports you have.
On the other hand, the input/output configuration feature is being developed, so now the components have to be connected in a determined way. The configuration offers 6 analog inputs (analog pins), 2 digital inputs (digital pins 2 and 3), 3 analog outputs (digital pins 5, 6 and 9), 3 digital outputs (pins 10, 11 and 13) and 4 special outputs to connect Parallax continuous rotation servomotors (digital pins 4, 7, 8 and 12).
S4A has been developed by Marina conde, Victor Casado, Joan Güell, Jose García and Jordi Delgado with the help of the Citilab Smalltalk Programming Group and of collaborators like Jorge Gómez, instructor at Training Center Padre Piquer from Madrid. Please reports bugs or suggestions to: email@example.com.
We will soon upload the documentation and project examples that will be available from the file menu in future versions.
Please visit our downloads section to get the last version of S4A and firmware and watch some demonstration videos.