How to Remove Uploaded Code From Arduino

About S4A

S4A is a Scratch modification that allows for elementary 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 lath 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 loftier level interface to Arduino programmers with functionalities such as interacting with a prepare of boards through user events.

The interface

An S4A program to command a lite-sensor Theremin, with tape and playback capabilities

Arduino objects offering blocks for the basic microcontroller functionalities, analog and digital writes and reads, and as well for college level ones. You can find blocks to manage standard and continuous rotation servomotors:

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

Information technology 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 exist connected in a particular way. S4A allows for 6 analog inputs (analog pins), ii digital inputs (digital pins 2 and 3), 3 analog outputs (digital pins v, 6 and nine), iii digital outputs (pins ten, 11 and 13) and iv special outputs to connect Parallax continuous rotation servomotors (digital pins 4, seven, 8 and 12).

You can manage a board wirelessly by attaching an RF module to it, such as Xbee.

S4A allows you to command as many boards as USB ports you accept.

Compatibility

S4A is backwards uniform with Scratch, and then 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.

Accept in business relationship that this compatibility doesn't piece of work both ways, so y'all won't exist able to open an S4A project from within the original Scratch.

Using a PicoBoard along with an Arduino board is besides supported.

Protocol

S4A interacts with Arduino by sending the actuator states and receiving sensor states every 75 ms, therefore the pulse width needs to exist greater than this fourth dimension period. The data exchange follows the PicoBoard protocol and needs a specific program (firmware) to be installed in the board. Delight refer to the Downloads department for further instructions on how to do then.

Documentation and Examples

Here yous'll find all the documentation, videos, examples and exercices we have created.

Workshop

A zip file with complete materials and exercices for a workshop can exist downloaded here:

Elisava Workshop Materials 2011

These materials were created and used by our team in an actual S4A grade at the Elisava School of Blueprint (Barcelona) in 2011.

Basic Examples

Here yous'll find basic S4A examples, complete with the Arduino schematics and an .sb Scratch project file for yous to download.

Push button and LED

A simple instance showing how to trigger an LED by pushing a button.

Lawmaking

RGB LED

Using an RGB LED from Scratch.

Lawmaking

Button, LED and keeping state

An LED that switches state when we push a button.

Code

Photoresistor and LED

Using the input of a photoresistor sensor to trigger an LED.

Code

Videos

Some of the post-obit demos are in Catalan or Spanish, but the images pretty much speak for themselves. Some of the videos accept English subtitles likewise.

Full-featured Robot

A robot with a rotative camera, altitude sensors and a remote control. It uses 2 arduino boards (remote command + robot), an XBee wireless module, 3 IR sensors, a camera module and three servomotors.

S4A Workshop Introduction

This video serves every bit an introduction for the S4A workshops given at Citilab, merely you'll discover a couple of demos of what tin be achieved with our software.

Exercices

Music: A theremin-like instrument

Domotics: A blind drape controller

Robotics: A keyboard-driven machine

For Developers

S4A Protocol Specs

Android

Hello Scratch for Arduino!

Nosotros have developed a uncomplicated Android application that tin communicate with S4A through HTTP by ways of the remote sensors protocol in Scratch. You can download it hither or by scanning the QR code below:

To use information technology, follow the instructions below:

  • In S4A, enable remote sensors (right click on whatsoever "Sensors" block)
  • In HiS4A (Android), type the local network IP of the PC where S4A is running (you tin can find that out through Edit > Show IP address), plus the prefix (only needed if you are connecting from more than one Android client)
  • The buttons represent to messages and the touchpad and slider to remote sensors
Of import! Both S4A as HiS4A must be connected to the same local network!

HTTP API

The Android application uses a very simple protocol nosotros developed on meridian of the Scratch HTTP message protocol, so it is also possible to interact to S4A from a browser or any other network enabled application.

You will outset need to enable the remote sensors option in S4A (correct click on any "Sensors" cake).

Message Specification

Circulate a bulletin:
http://[IP]:42001/circulate=[message-name]

Send the value of a remote sensor (for instance, the client's accelerometer, mouse position, etc):
http://[IP]:42001/sensor-update=[sensor-name]=[value]

Update an S4A variable:
http://[IP]:42001/vars-update=[variable-proper noun]=[value]

Test web awarding

If you lot want to see the HTTP API in action, you lot can practice and so from our examination webapp:

Hi S4A! from the Web

Using the example web application:

  • S4A variables whose proper noun starts with a plus sign (i.e. +playerName) are visible and modifiable from the web client
  • S4A variables whose name starts with a minus sign (i.east. -playerScore) are merely visible (not modifiable) from the spider web client
  • S4A variables whose name doesn't start ether with a minus or plus sign are not visible from the web client
  • S4A messages whose name starts with a plus sign (i.east. +startGame) are visible from the web customer
  • S4A letters whose name doesn't offset with a plus sign are not visible from the spider web client

Changelog

Version 1.half-dozen

    S4A:

  • Fixed effect on block watchers when displaying %t instead the sensor name
  • Fixed issue when analog input error not disappearing
  • Fixed issues when creating new Arduino object and selecting an existing connection (thank you to Vaner Anampa, Erik Bartmann and many more than for reporting this bug)
  • Changed default pins and their order on Arduino blocks (every bit before)
  • Merged servo blocks, now pins eight, 7 and four can be used for standard and CR servomotors.
  • Added HTTP block (GET method) every bit requested by IMI ("Institut Municipal d'Informatica") of Barcelona
  • Updated some translation files. Thanks to:
    • Frederique Pinson - French (fr.po)
    • Miguel Bouzada - Galician (gl.po)
    • Fabio Albanese - Italian (it.po)
    • Sungkuk Lim - Korean (ko.po)
    • Jan Van den Bergh - Dutch (nl.po)
    • Vadim Litvenko - Russian (ru.po)
    • Johan Solve - Swedish (sv.po)

    Firmware:

  • Refactored reset pins
  • Merged code for standard and CR servos
  • Merged patch for Leonardo from Peter Mueller (many thanks for this!)

Version 1.5

  • Stock-still object standoff problems (Arduino and non-Arduino)
  • Fixed problems related to persistent message fault when stopping and resuming connection with the lath
  • Changed indexed primitives to named ones for ameliorate compatibility with new Squeak VMs (thanks to Miriam Ruiz for the patch)
  • Inverse pivot 12 from standard servo to normal digital output
  • Changed default pivot at digital on/off blocks from 13 to ten
  • Added reset actuators cake
  • Improved Catalan and Spanish translations

Version 1.4

  • Added full compatibility with HTTP protocol (POST AND GET), you can now send letters to S4A and watch/modify variable values from an Internet browser (among other things). See Android section.
  • Added a "check for updates" option in "Help" menu, from now on there is no need to visit website to check for new versions
  • Language is now detected upon first launch (when Scratch.ini file doesn't exist). Also saved in same file if changed from linguistic communication menu
  • Serial port where a board is continued opens correctly when S4A is launched
  • Fixed problems in Windows version, in which championship bar didn't show the name and version of S4A when launched

Version 1.3

  • Fixed compatibility with Arduino UNO on Linux (thanks to Jorge Gómez). Yous will need to load the new firmware, as well updating the bootloader in some boards
  • Changed the sensor board names and their corresponding Arduino blocks to evidence real pin numbers
  • Added server commands to "Edit" menu to manage network communication over sockets
  • Added compatibility for Android apps (HiS4A)
  • Improved Catalan and Castilian translations
  • Lots of bugfixes

Download and Install

Installing S4A requires y'all to install software both in your PC and your Arduino board. Here you'll find the detailed steps to get it up and running.

Installing S4A into your computer

S4A works in the three major consumer operating systems. Download and install the i that fits your configuration:

  • Windows
  • Mac
  • Linux (Debian)
  • Linux (Fedora) (version i.5)
  • Raspbian (Debian for RaspberryPi) (version 1.v)

Installing the Firmware into your Arduino

This firmware is a piece of software you demand to install into your Arduino board to be able to communicate with it from S4A.

  • Download and install the Arduino surround past following the instructions on http://arduino.cc/en/Master/Software. Accept in account Arduino Uno requires at least version 0022.
  • Download our firmware from hither
  • Connect your Arduino board to a USB port in your computer
  • Open the firmware file (S4AFirmware16.ino) from the Arduino surround
  • In the Tools menu, select the board version and the serial port where the board is connected
  • Load the firmware into your lath through File > Upload

Arduino drivers

If you are a Microsoft Windows user, you may need to install the Arduino drivers into your computer:

Arduino drivers for Microsoft Windows

For Developers

S4A is gratis software distributed under an MIT license.

Since Scratch is actually a Squeak Smalltalk prototype, all of its code is actually shipped with the final user version itself. To access it, just shift + left click on the S4A "File" menu and select "Get out User Mode". You're now in front of a archetype Squeak 2.8 image, and take admission to a Browser, Workspace and all tools y'all're used to.

All the same, in the final user version some lawmaking has been compiled and you lot'll be missing several variable and bulletin argument names, which is why nosotros are too providing yous with a clean source lawmaking epitome for developers, downloadable here:

S4A Developer Edition

Alternative download site

Since our VPS provider may sometimes be down, nosotros've set up an alternative location for all files, including erstwhile versions:

S4A Dropbox binder

S4A Kit

Coming Soon!

As a response to requests by the S4A community, several of our students, and users around the globe, we are developing a series of kits that will provide the necessary hardware to get started with S4A, with preinstalled firmware and documentation.

These kits volition come in incremental upgrades, so that you won't demand to pay for components y'all don't require for your project.

Stay tuned!

Frequently Asked Questions

General questions

Can the S4A firmware damage the board?

In fact, our "firmware" is but similar whatsoever other Arduino sketch, and then in that location is no hazard at all. Of course, you can upload other sketches to the board and then upload the S4A firmware again when needed.

Can the S4A programs exist pushed into the Arduino board?

There is currently no way to compile lawmaking into Arduino binaries. Information technology must be said that S4A was conceived as an improvement of the older versions of Scratch (the ones that were developed in Smalltalk), to make learning how to program real-world objects easier to everyone, especially to children, past dealing with these real objects in the same fashion they'd deal with Scratch "normal objects", so they can interact between them. In other words, it was not made to programme the board directly, but to help larn programming and electronics at the same time.

Still, if what yous want is to only get rid of the USB cable, we recommend you use a wireless device like XBee.

Can I alter the pinout configuration?

Unfortunately, no. Pin configuration is hardcoded both in the firmware and in the source lawmaking of S4A, and the style S4A is made does non allow to change source code "on the fly". So, until we detect a meliorate way or enhance the communication protocol betwixt the board and the program, the just way to customize the pinout is by changing both S4A source code and the firmware. There is a Spanish unofficial guide available here (thanks to Borja Pérez).

Which boards does S4A support?

S4A works with Arduino Diecimila, Duemilanove and Uno. Other boards oasis't been tested, only they may also work.

Will S4A work on my PC?

S4A works on the iii major consumer operating systems: Microsoft Windows, GNU/Linux and MacOS. And so yes, it will nigh probably work on your PC.

Installation troubleshooting

I can't install it on 64-bit Ubuntu/Debian

The Debian version of S4A is packaged only for i386 systems. To get it working in a 64-bit version, you demand to follow the following steps (in a last, as root):

Fist of all, enable i386 packages and install ia32-libs

dpkg --add-architecture i386
apt-get update
apt-get install ia32-libs

Then install S4A:

dpkg -i --strength-architecture S4A16.deb

I'yard having issues trying to install it on MacOS

Since MacOS ten.8 (Mount Lion), Gatekeeper is prepare by default to allow downloaded applications only from "Mac App Store and identified developers". To install S4A, you'll demand to modify this option to "Anywhere".

More than info here.

Board connection troubleshooting

I've continued the board and S4A does not detect it

Brand sure you take uploaded the latest S4A firmware to the board before starting S4A. To do this you lot'll need the official Arduino IDE.

Please follow the instructions on the Downloads department in this website.

Been in that location, washed that. Board nevertheless non detected

This is a common known issue in Windows operating systems. Try stopping the connection with the board (correct-click on sensor board in S4A), unplugging the USB cable, plugging it again and restarting the connection. If the plan still does non detect the board, there may exist a conflicting series COM port causing S4A to hang when trying to open up it. To avert this, try opening information technology directly (correct-click on sensor board and select serial port) or changing the assigned Arduino COM port through the Windows Device Manager. For more help on this issue, delight visit this guide.

The Team

S4A has been developed at Citilab by the Edutec Research Group, with the help of the Smalltalk.cat programming group and of collaborators like Jorge Gómez, who leads the hardware and software educational project at Miscela.

Marina Conde

Marina Conde got her bachelor caste in Computer Science in the Technical University of Catalonia (UPC) in 2009, and graduated every bit a Calculator Engineer in 2012 in the same academy.

While working at Citilab, she developed her first terminal thesis, which consisted in building a framework to work with Arduino boards from within the Pharo Smalltalk environment. Afterwards on, she used this projection equally the footing on which S4A was written.

Víctor Casado

Víctor chose to study Computer science in the Autonomous University of Barcelona (UAB), but afterward two years he switched to the Castelldefels Schoolhouse of Applied science (EPSC) to course the technical degree on telecommunications.

While there, he had the opportunity to enter Citilab through an internship, where he later developed S4A, his final thesis.

Joan Güell

Joan is a biologist who, in his early years, worked in the field of ecology. The need to clarify the generated information and collected data drove his approach to computing. He enrolled to his first programming course in 1975, when computers where still programmed past means of punch cards.

His main piece of work in Citilab has been related to the field of training in 2 areas: educational activity programming with Scratch, peculiarly to children, and educational activity calculator skills to early adult citizens.

Jose García

Jose studied advanced telecommunications applied science, but started working at a publishing firm before completing his degree. During his time at the company, he worked on programming a wide diverseness of applications.

At Citilab, he discovered Scratch and Smalltalk, taking upwards role of his programming piece of work once more. After on, he joined different projects that aim to found closer contact betwixt users and programming. He currently leads the Technological Education Research team Edutec.

Bernat Romagosa

In 2009, Bernat graduated as a technical engineer in Computer Scientific discipline at the Open up University of Catalonia (UOC). He learned Smalltalk at a form given past Jordi Delgado at Citilab in 2008, where he was afterward hired to build an online programming schoolhouse.

Since so, he's been involved in several programming projects in Citilab, including a social knowledge management system and different educational applications.

Jordi Delgado

Jordi is an associate professor at the Software Departament of the Technical University of Catalonia (Universitat Politècnica de Catalunya). He belongs to the enquiry group LARCA and teaches at the Barcelona School of Computer science.

He spends most of his time divulging, spreading the discussion of and programming in Smalltalk, an amazing programming linguistic communication that, you know, everyone should exist using. He is a member of the board of the European Smalltalk Users Grouping (ESUG) and he leads the Smalltalk.true cat local group.

Contact Us

You can reach u.s.a. at scratch@citilab.european union to written report bugs or for whatsoever suggestions yous may have.

feldmanwoundescous.blogspot.com

Source: http://s4a.cat/

0 Response to "How to Remove Uploaded Code From Arduino"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel