pages
home
compiler
code compiler
electronics
notes about electronics
laboratory
laboratory
Processing
Processing code compiler
Theremino
Theremino code compiler
logggin
accedi o esci
tutorials Arduino
lights
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
Italian
handbook
pins
connections
resistors
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
begins the workshop
review a workshop carried out
my account
info
link
contacts
variable
introduction
using the variables
program
apri il programma
inizia il laboratorio
algorithm
attrezzaggio
pin13
_led_13
variabili
min
=
50
max
=
2000
delay
=
1000
increment
=
10
ciclo
IF HAPPENS THAT
delay
is greater than
max
or IF
delay
is less than
min
the variable
increment
multiplies per
-1
the variable
delay
incremented by
increment
SWITCH ON (5 Volt)
_led_13
wait
delay
milliseconds
SWITCH OFF (0 Volt)
_led_13
wait
delay
milliseconds
Arduino code
//programma: variable //******* pin ******** //******* declare ******** int min=50;//declares the variable int max=2000;//declares the variable int delay=1000;//declares the variable int increment=10;//declares the variable const int pin_led_13=13;//pin of _led_13 //********** setup ********** void setup(){ pinMode(pin_led_13,OUTPUT); } //********** loop ********** void loop() { if(delay>max || delay
copy/past in Arduino
electrical connections
here Fritzing's file
logout
Ultima modifica: Agosto 2016