📜 ⬆️ ⬇️

Scratch for Arduino makes Arduino programming more visual



Windows / Mac / Linux: Arduino programming is not that difficult, but if you are looking for something more visual, then Scratch for Arduino ( S4A ) is exactly what you were looking for. She uses MIT's Scratch as a basis for teaching children (or just beginners) Arduino programming.
The idea is to provide you with a more visual programming language, so that you understand better how it works. Even if you are a professional in Arduino programming, then even you will be interested to work with this program. This is a great program to start programming Arduino so that you can figure out how to work with it.
The program interface is as follows:


')


Arduino basic microcontrollers are represented as functional blocks; analog and digital recording and reading, as well as more high-level things. Here you can find blocks to control the standard and continuous rotation of the servomotor:



In S4A, the Arduino board is a special kind of sprite. The Arduino sprite will automatically find the USB port to which the board is connected.
It is possible to connect to several boards at the same time, just add a new Arduino sprite.

Technical details


Supported Boards

S4A works with Arduino Diecimila, Duemilanove and Uno. Other cards have not been tested, but they can also work.

Connection

Components must be connected in a specific way. The S4A supports 6 analog inputs (analog contacts), 2 digital inputs (digital contacts 2 and 3), 3 analog outputs (digital contacts 5, 6 and 9), 3 digital outputs (pins 10, 11 and 13) and 4 special outputs for connect the servomotor (digital contacts 4, 7, 8 and 12).
You can control the card by attaching a wireless RF module, such as Xbee, to it. S4A also allows you to control the board via the USB port.

Compatibility

S4A is backward compatible with Scratch , so you can open Scratch projects in it. However, you will not be able to share your projects on the Scratch community website, as this goes against the terms of use of Scratch . Keep in mind that this compatibility does not work in both directions, so you cannot open the S4A project using the original Scratch . Using the PicoBoard card with Arduino is also supported.

Workshop

The full archive of materials and exercises can be downloaded from here.

Here are some videos about the capabilities of this program:
Full-featured robot. Robot with rotating camera, distance sensor and remote control. To do this, use two Arduino boards (remote control + robot), an XBee wireless module, three infrared sensors, a camera module and three servomotors



S4A introductory workshop

Source: https://habr.com/ru/post/196752/


All Articles