Presentation
Presentation
Presentation
What is programming?
Make an algorithm to do something in a specific language programming.
Algorithm: a procedure or formula for solving a problem. Programming language: artificial language designed to communicate instructions to a machine.
It also involves the process of designing, writing, testing, debugging, and maintaining the source code of a computer program.
The sketch made with the Arduino IDE is loaded to the board and stored in the microcontroller. More info at: http://arduino.cc/
What is Scratch?
It's an open source and educational software focused mainly for children, designed by the Lifelong Kindergarten group at MIT, and implemented in Smalltalk (Squeak). The programming instructions are pieces that have to be stick each other in an order to form blocks and make a coherent program, just like a puzzle. More info and downloads at: http://scratch.mit.edu/
What is S4A?
Scratch for Arduino (S4A) is a modified version of Scratch ready for communication with Arduino boards. An Arduino sketch (S4AFirmware) has to be loaded to the board to work properly with S4A. Both the installer and firmware can be downloaded from our website: http://seaside.citilab.eu
1 x 10 k resistor
1 x 220 resistor
NOTE: The value of the resistance rise or drop in one direction or the other depending on how you connect the power pins.
Ex. 4: Semaphore
In this exercise we'll try to simulate the operation of a traffic light, those which have a button to facilitate the passage of pedestrians. The goal is to simulate the behavior of these lights with a simple program.
What we need: 1 x Arduino 1 x Protoboard 1 x Switch 2 x LEDs (red and green) 1 x LED RGB 4 x 220 resistors 1 x 10k resistor
Remember that we must use PWM outputs (5, 6 and 9) instead of digital (as in the previous exercise).
The goal is to use two sensors on the same board, and assign one to each player. In addition, we can incorporate a button to start the game, LEDs that light every time the players score a point, and so on...