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

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

Arduino http://imago.techtop.it/v/Robot/robofriend-02.jpg.html

program

Arduino apri il programma


Arduino inizia il laboratorio

algorithm


attrezzaggio

pin13 servo Arduino _head
pin3˜ servo Arduino _left_arm
pin5˜ servo Arduino _right_arm
pin10˜ ledrosso Arduino _left_eye
pin11˜ ledrosso Arduino _right_eye

variabili

A = 0
B = 0

ciclo

annotation: eyes on
SWITCH ON (5 Volt) switch on _left_eye component
SWITCH ON (5 Volt) switch on _right_eye component
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) switch off _left_eye component
SWITCH OFF   (0 Volt) switch off _right_eye component
wait 300 milliseconds
SWITCH ON (5 Volt) switch on _left_eye component
SWITCH ON (5 Volt) switch on _right_eye component
wait 300 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