pages
home
compiler logo
code compiler
electronics
notes about electronics
laboratory
laboratory
Processing logo
Processing code compiler
Theremino logo
Theremino code compiler
logggin Arduino
accedi o esci

tutorials Arduino

lights Arduino

my first led turns on

led's games

an electronic dice

traffic lights

candle effect

fading effect

red-green-blue 1

red-green-blue 2

7-segment display - Countdown

7-segment display bis

sensors

sensors

Sensor and serial port

sensor PIR

ultrasonic sensor

sound

Theremin

a melody

build a note

switches

buttons

keypad

input via serial port

input via serial port 2

input remote control

input remote control 2

use of variables

custom functions

servos

a robot

a remote-controlled robot

elettronica

mechanics

inglese Italian

handbook

pins

connections

resistors

Scarica Adobe Flash Player

remarkable sketches

remarkable circuits

Arduino pins

error messages

tables

colour's tables

electrical simbols

referenze on-line

reference Arduino

reference Processing

link

www.arduino.cc

fritzing.org/projects

processing.org

links

hardware

base kit

facilitated kits

advanced kits

Theremino

Arduino begins the workshop

review a workshop carried out

my account

info

link

contacts

conto_alla_rovescia

introduction

We have to build a bomb to blow up the school. And we need of a display that marks the countdown. On the 7-segment display numbers do appear at a distance of a second. We need to build them one by one with the various segments.

program

Arduino apri il programma


Arduino inizia il laboratorio

algorithm


attrezzaggio

pin1 led7 Arduino _segmentA
pin2 led7 Arduino _segmentB
pin3˜ led7 Arduino _segmentC
pin4 led7 Arduino _segmentD
pin5˜ led7 Arduino _segmentE
pin6˜ led7 Arduino _segmentF
pin7 led7 Arduino _segmentG

variabili


ciclo




number 9
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH OFF   (0 Volt) switch off _segmentE component
SWITCH ON (5 Volt) switch on _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 8
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH ON (5 Volt) switch on _segmentE component
SWITCH ON (5 Volt) switch on _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 7
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH OFF   (0 Volt) switch off _segmentD component
SWITCH OFF   (0 Volt) switch off _segmentE component
SWITCH OFF   (0 Volt) switch off _segmentF component
SWITCH OFF   (0 Volt) switch off _segmentG component
wait 1000 milliseconds



number 6
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH OFF   (0 Volt) switch off _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH ON (5 Volt) switch on _segmentE component
SWITCH ON (5 Volt) switch on _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 5
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH OFF   (0 Volt) switch off _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH OFF   (0 Volt) switch off _segmentE component
SWITCH ON (5 Volt) switch on _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 4
SWITCH OFF   (0 Volt) switch off _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH OFF   (0 Volt) switch off _segmentD component
SWITCH OFF   (0 Volt) switch off _segmentE component
SWITCH ON (5 Volt) switch on _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 3
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH OFF   (0 Volt) switch off _segmentE component
SWITCH OFF   (0 Volt) switch off _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 2
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH OFF   (0 Volt) switch off _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH ON (5 Volt) switch on _segmentE component
SWITCH OFF   (0 Volt) switch off _segmentF component
SWITCH ON (5 Volt) switch on _segmentG component
wait 1000 milliseconds



number 1
SWITCH OFF   (0 Volt) switch off _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH OFF   (0 Volt) switch off _segmentD component
SWITCH OFF   (0 Volt) switch off _segmentE component
SWITCH OFF   (0 Volt) switch off _segmentF component
SWITCH OFF   (0 Volt) switch off _segmentG component
wait 1000 milliseconds



number 0
SWITCH ON (5 Volt) switch on _segmentA component
SWITCH ON (5 Volt) switch on _segmentB component
SWITCH ON (5 Volt) switch on _segmentC component
SWITCH ON (5 Volt) switch on _segmentD component
SWITCH ON (5 Volt) switch on _segmentE component
SWITCH ON (5 Volt) switch on _segmentF component
SWITCH OFF   (0 Volt) switch off _segmentG component
wait 1000 milliseconds

Arduino code

Arduino

copy/past in Arduino

electrical connections

Arduino
Fritzing here Fritzing's file


indietro torna all'indice avanti esci logout Licenza Creative Commons

Ultima modifica: Agosto 2016