Zscef
Páginas: 5 (1076 palabras)
Publicado: 4 de diciembre de 2012
PRESENTADO POR:
CAMILA ANDREA GAMBOA GUERRERO
MARIA JOSE PINILLA BUSTAMANTE
PRESENTADO A:
FEDERICO ALBERTO CASTELLANOS
GRADO: 11-1
ELECTRONICA Y COMUNICACIONES
LICEO NACIONAL
IBAGUE
2012
MONTAJES BASICOS EN ARDUINO
1.
Plano electrónico de los 3 leds secuenciales ascendente:
Plano electrónico de los 7 leds secuenciales ascendente ytambién es el mismo plano de los 7 leds secuenciales ascendente descendente:
pa
Plano electrónico de los 14 leds secuenciales ascendente descendente
2.
3 LED SECUENCIALES ASCENDENTES:
7 LEDS SECUENCIALES ASCENDENTES:
7 LEDS SECUENCIALES ASCENDENTES Y DESCENDENTES:
14 LEDS SECUENCIALES ASCENDIENTE Y DESCENDIENTE:
3.
Codigo o softwarecon el que corren 3 leds secuenciales ascendentes:
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards:
// give it a name:
int redled = 11;//led red
int greenled = 10;//led green
int blueled = 9;//led blue
void setup() {
// initialize the digital pin as an output.
pinMode(11, OUTPUT);
pinMode(10,OUTPUT);
pinMode(9, OUTPUT);
}
void loop() {
digitalWrite(redled, HIGH); // set the LED on
delay(250); // wait for a second
digitalWrite(greenled, HIGH); // set the LED on
delay(250); // wait for a second
digitalWrite(blueled, HIGH); // set the LED on
delay(250); // wait for a second
digitalWrite(redled, LOW); // set the LEDon
delay(250); // wait for a second
digitalWrite(greenled, LOW); // set the LED on
delay(250); // wait for a second
digitalWrite(blueled, LOW); // set the LED on
delay(250); // wait for a second
}
Codigo o software con el que corren 7 leds secuenciales ascendentes:
This example code is in the public domain.
*/
// Pin 13 hasan LED connected on most Arduino boards:
// give it a name:
int redled = 11;//led red
int greenled = 10;//led green
int blueled = 9;//led blue
int yellowled = 8;//led yellow
int pinkled = 7;//led pink
int purpleled = 6;//led purple
int blackled = 5;// led black
void setup() {
// initialize the digital pin as an output.
pinMode(redled, OUTPUT);pinMode(greenled, OUTPUT);
pinMode(blueled, OUTPUT);
pinMode(yellowled, OUTPUT);
pinMode(pinkled, OUTPUT);
pinMode(purpleled, OUTPUT);
pinMode(blackled, OUTPUT);
}
void loop() {
digitalWrite(redled, HIGH); // set the LED on
delay(500); // wait for a second
digitalWrite(greenled, HIGH); // set the LED on
delay(500); // wait for asecond
digitalWrite(blueled, HIGH); // set the LED on
delay(500); // wait for a second
digitalWrite(yellowled, HIGH); // set the LED on
delay(500); // wait for a second
digitalWrite(pinkled, HIGH); // set the LED on
delay(500); // wait for a second
digitalWrite(purpleled, HIGH); // set the LED on
delay(500); // wait fora second
digitalWrite(blackled, HIGH); // set the LED on
delay(500); // wait for a second
digitalWrite(redled, LOW); // set the LED on
delay(500); // wait for a second
digitalWrite(greenled, LOW); // set the LED on
delay(500); // wait for a second
digitalWrite(blueled, LOW); // set the LED on
delay(500); // waitfor a second
digitalWrite(yellowled, LOW); // set the LED on
delay(500); // wait for a second
digitalWrite(pinkled, LOW); // set the LED on
delay(500); // wait for a second
digitalWrite(purpleled, LOW); // set the LED on
delay(500); // wait for a second
digitalWrite(blackled, LOW); // set the LED on
delay(500); //...
Leer documento completo
Regístrate para leer el documento completo.