0% found this document useful (0 votes)
45 views

Research Topic Scratch For Arduino (S4A)

This document provides information about using Scratch for Arduino (S4A). S4A allows simple programming of an Arduino board from the Scratch programming environment. It discusses that the S4A firmware currently only supports the Arduino UNO board and proposes researching developing firmware for other Arduino boards like the Due and Leonardo. It also provides instructions for installing the S4A firmware onto an Arduino UNO board and connecting it to Scratch to begin programming. Finally, it introduces some basic programming concepts like conditional statements, while loops, for loops, and using a push-button switch as a digital input.

Uploaded by

Trungpv Pham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

Research Topic Scratch For Arduino (S4A)

This document provides information about using Scratch for Arduino (S4A). S4A allows simple programming of an Arduino board from the Scratch programming environment. It discusses that the S4A firmware currently only supports the Arduino UNO board and proposes researching developing firmware for other Arduino boards like the Due and Leonardo. It also provides instructions for installing the S4A firmware onto an Arduino UNO board and connecting it to Scratch to begin programming. Finally, it introduces some basic programming concepts like conditional statements, while loops, for loops, and using a push-button switch as a digital input.

Uploaded by

Trungpv Pham
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 12

Research Topic

Scratch For Arduino (S4A)


Introduction:
The scratch for arduino is an interesting open-source
that developed for kids easily to approach the
engineering world.
The arduino firmware is only for arduino UNO version
meanwhile there are lots of Arduino versions.
Research require:
Developing one or more than one firmware for other
arduino versions such as: DUE Arduino or Leonado
Arduino, to let the scratch be able to control those
Arduino boards.
You may need to custom not only the Arduino
firmware source but also the Scratch source
Scratch Meet
Arduino UNO
Scratch is a project of the Lifelong
Kindergarten Group at the MITMedia Lab.
S4A is a Scratch modification that allows for
simple programming of the Arduino
Installing and Running S4A
(S4A is already installed on the lab computers but you
must still install the firmware.)
Download The S4A firmware from here
Connect your Arduino board to a USB port in your computer
Open the Arduino IDE
Open the firmware file (S4AFirmware15.ino) in the Arduino IDE
In the Tools menu, select the board version and the serial port
Load the firmware into your board using Tools > Upload
Open the S4A program


Scratch for Arduino
Arduino UNO
Try It out
Conditional Statement

if (someCondition) {
// do stuff if the condition is true
} else {
// do stuff if the condition is false
}

modelect.wordpress.com
while Loop
while(expression){
statement(s);
}

www.toves.org
Example
int var = 0;
while (var < 200) {
// do 200 times
var = var + 1;
}

for loop
martin-thoma.com
www.visualcplusdotnet.com
Digital Input (introducing the
switch)
Create the circuit above and then run
File -> Examples -> Digital -> Button
push-button switch
www.ladyada.net/

You might also like