pages
compiler
electronics
laboratory
Processing
Theremino
logggin
robot
introduction
Let's buid with paper and cardboard (or wood and metal) a robot. Then we use servos for the arms and the head and a pair of LEDs for the eyes.
Let's have fun to animate
http://imago.techtop.it/v/Robot/robofriend-02.jpg.html
program
algorithm
attrezzaggio
pin13 _head
pin3˜ _left_arm
pin5˜ _right_arm
pin10˜ _left_eye
pin11˜ _right_eye
variabili
A = 0
B = 0
ciclo
annotation: eyes on
SWITCH ON (5 Volt)
_left_eye
SWITCH ON (5 Volt)
_right_eye
annotation: see on the right
ROTATE
_head angle:
170
annotation: on the left
ROTATE
_head angle:
10
annotation: in front of you
ROTATE
_head angle:
90
wait
2000 milliseconds
annotation: hye
REPEAT
3 times
annotation: up the arm
ROTATE
_right_arm angle:
170
wait
100 milliseconds
annotation: down
ROTATE
_right_arm angle:
150
wait
100 milliseconds
annotation: lampeggia gli occhi
REPEAT
7 times
SWITCH OFF (0 Volt)
_left_eye
SWITCH OFF (0 Volt)
_right_eye
wait
300 milliseconds
SWITCH ON (5 Volt)
_left_eye
SWITCH ON (5 Volt)
_right_eye
wait
300 milliseconds
Arduino code
electrical connections