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

7segmenti

introduzione

Numbers appear on the 7-segment display. We need to build them one by one with the various segments.
Arduino
Arduino

programma

Arduino apri il programma


Arduino inizia il laboratorio

algoritmo


attrezzaggio

pin1 ledblu Arduino _segA
pin2 ledblu Arduino _segB
pin3˜ ledblu Arduino _segC
pin4 ledblu Arduino _segD
pin5˜ ledblu Arduino _segE
pin6˜ ledblu Arduino _segF
pin7 ledblu Arduino _segG
pin0 ledblu Arduino _punto

variabili

X = 0

ciclo

SWITCH OFF   (0 Volt) switch off _segA component
SWITCH OFF   (0 Volt) switch off _segB component
SWITCH OFF   (0 Volt) switch off _segC component
SWITCH OFF   (0 Volt) switch off _segD component
SWITCH OFF   (0 Volt) switch off _segE component
SWITCH OFF   (0 Volt) switch off _segF component
SWITCH OFF   (0 Volt) switch off _segG component
USB Arduino write the serial input on variable X
IF HAPPENS THAT X is equal to 1
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segC component
IF HAPPENS THAT X is equal to 3
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segG component
SWITCH ON (5 Volt) switch on _segC component
SWITCH ON (5 Volt) switch on _segD component
IF HAPPENS THAT X is equal to 4
SWITCH ON (5 Volt) switch on _segF component
SWITCH ON (5 Volt) switch on _segG component
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segC component
IF HAPPENS THAT X is equal to 5
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segF component
SWITCH ON (5 Volt) switch on _segG component
SWITCH ON (5 Volt) switch on _segC component
SWITCH ON (5 Volt) switch on _segD component
IF HAPPENS THAT X is equal to 6
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segF component
SWITCH ON (5 Volt) switch on _segG component
SWITCH ON (5 Volt) switch on _segC component
SWITCH ON (5 Volt) switch on _segD component
SWITCH ON (5 Volt) switch on _segE component
IF HAPPENS THAT X is equal to 7
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segC component
IF HAPPENS THAT X is equal to 8
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segC component
SWITCH ON (5 Volt) switch on _segD component
SWITCH ON (5 Volt) switch on _segE component
SWITCH ON (5 Volt) switch on _segF component
SWITCH ON (5 Volt) switch on _segG component
IF HAPPENS THAT X is equal to 9
SWITCH ON (5 Volt) switch on _segF component
SWITCH ON (5 Volt) switch on _segG component
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segC component
SWITCH ON (5 Volt) switch on _segD component
IF HAPPENS THAT X is equal to 0
SWITCH ON (5 Volt) switch on _segA component
SWITCH ON (5 Volt) switch on _segB component
SWITCH ON (5 Volt) switch on _segC component
SWITCH ON (5 Volt) switch on _segD component
SWITCH ON (5 Volt) switch on _segE component
SWITCH ON (5 Volt) switch on _segF component
wait 500 milliseconds

codice arduino

Arduino

copia/incolla in Arduino

collegamenti elettrici

Arduino
Fritzing qui il file Fritzing


indietro torna all'indice avanti esci logout Licenza Creative Commons

Ultima modifica: Agosto 2016