S4A is a Scratch modification that allows for simple programming of the Arduino open source hardware platform. It provides new blocks for managing sensors and actuators connected to Arduino. There is also a sensors report board similar to the PicoBoard one.
The main aim of the project is attracting people to the programming world. The goal is also to provide a high level interface to Arduino programmers with functionalities such as interacting with a set of boards through user events.
The interface
An S4A program to control a light-sensor Theremin, with record and playback capabilities
How to install Scratch 1.4 on Mac OS X. I Bought a $3 2TB USB Drive and Got More Than Just Malware - Duration: 11:18. Jays Tech Vault Recommended for you. How to download scratch for mac and pc DOWNLOAD LINK: Twittter- @pranaviscool135 if this video helped you pls like or sub. This is a Packt Beginners Guide, which means it focuses on practical examples and has a friendly approach, with the opportunity to learn by experiment and play. We work through the project tutorials one block of code at a time, and we periodically pause to reflect on the relationship between our cod.
Arduino objects offer blocks for the basic microcontroller functionalities, analog and digital writes and reads, and also for higher level ones. You can find blocks to manage standard and continuous rotation servomotors:
We would like to show you a description here but the site won’t allow us. This source code release is based on the source code of the official release of Scratch 1.4 with a few changes: the Scratch logo was replaced the default sprite is a generic cat, not the official (copyrighted) Scratch cat the project sharing code was removed. The download consists of a Squeak image and changes file.
In S4A, an Arduino board is represented by a special kind of sprite. The Arduino sprite will automatically find the usb port where the board is connected.
It is possible to connect to multiple boards at the same time by just adding a new Arduino sprite.
Technical details
Supported boards
S4A works with Arduino Diecimila, Duemilanove and Uno. Other boards haven't been tested, but they may also work.
Connectivity
Components have to be connected in a particular way. S4A allows for 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).
You can manage a board wirelessly by attaching an RF module to it, such as Xbee.
S4A allows you to control as many boards as USB ports you have.
Compatibility
Download Scratch 1.4
S4A is backwards compatible with Scratch, so you can open Scratch projects in it. However, you won't be able to share your projects on the Scratch community website because doing so goes against the Scratch terms of use.
Take in account that this compatibility doesn't work both ways, so you won't be able to open an S4A project from within the original Scratch.
Using a PicoBoard along with an Arduino board is also supported.
Scratch 1.4 Mac Download
Protocol
Scratch 1.4 Mac Os
S4A interacts with Arduino by sending the actuator states and receiving sensor states every 75 ms, therefore the pulse width needs to be greater than this time period. The data exchange follows the PicoBoard protocol and needs a specific program (firmware) to be installed in the board. Please refer to the Downloads section for further instructions on how to do so.
Comments are closed.