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

rgb1

introduction

We generate random values for red yellow and blue. We will see the different colors.

program

Arduino apri il programma


Arduino inizia il laboratorio

algorithm


attrezzaggio

pin3˜ ledRGB_blu_ Arduino _RGBblue1
pin5˜ ledRGB_verde_ Arduino _RGBgreen1
pin6˜ ledRGB_rosso_ Arduino _RGBred1

variabili

a = 0
b = 0
c = 0

ciclo

annotation: random colors
dado Arduino the variable a becames equal to a casual number included between 0 e 255
dado Arduino the variable b becames equal to a casual number included between 0 e 255
dado Arduino the variable c becames equal to a casual number included between 0 e 255
MODULATION _RGBred1 component to the value: a
MODULATION _RGBgreen1 component to the value: b
MODULATION _RGBblue1 component to the value: c
wait 500 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