Escáner Cultural

REVISTA VIRTUAL DE ARTE CONTEMPORÁNEO Y NUEVAS TENDENCIAS

ISSN 0719-4757
Share this

Inicio de Usuario

Suscríbete!

Formulario para suscribirse

*Pinche y complete los datos para recibir en su e-mail cada número nuevo de nuestra revista.

Responder al comentario

ARDUINO

Utilizando los ejemplos básicos que vienen incluídos en Software Arduino

_realizar ejercicio:

Examples _basics_blink

fade

_digital_tone melod

Todos con 1 y 4 leds, en serie y paralelo, cada uno.

Anotar diferencias entre ambas conexiones y docuemntar.

1.-soldar 3 leds en serie sin protoboard y cablear a arduino (que le da poder)

2.-soldar 3 leds en paralelo sin protoboard y cablear a arduino (que le da poder)

Desarrollo:

BLINK


3 leds en serie alimentados con 5 volts

 


4 leds en paralelo, con resistencias de 330 ohms c/u. Leds Azules, 3,8 volts aprox.

Código Blink

/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.

This example code is in the public domain.
*/

void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(13, OUTPUT);
}

void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED off
delay(1000); // wait for a second
}

Resultado: Se prende y apaga el led según programación.

------------------------------------------------------------

FADING


en serie


en paralelo

Código Fading

Prender y apagar lentamente los leds

/*
Fading

This example shows how to fade an LED using the analogWrite() function.

The circuit:
* LED attached from digital pin 9 to ground.

Created 1 Nov 2008
By David A. Mellis
Modified 17 June 2009
By Tom Igoe

http://arduino.cc/en/Tutorial/Fading

This example code is in the public domain.

*/


int ledPin = 9; // LED connected to digital pin 9

void setup() {
// nothing happens in setup
}

void loop() {
// fade in from min to max in increments of 5 points:
for(int fadeValue = 0 ; fadeValue <= 255; fadeValue +=5) {
// sets the value (range from 0 to 255):
analogWrite(ledPin, fadeValue);
// wait for 30 milliseconds to see the dimming effect
delay(30);
}

// fade out from max to min in increments of 5 points:
for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) {
// sets the value (range from 0 to 255):
analogWrite(ledPin, fadeValue);
// wait for 30 milliseconds to see the dimming effect
delay(30);
}
}

.......................................................

_digital_tone melody


en serie


en paralelo

 

Anotaciones, la diferencia principal entre poner los leds en serie o en paralelo es el nivel de voltaje que necesitan.

Poner 4 leds en serie es fácil, porque arduino nos da 5 V en los pin 13/9/8, como los leds  usados son de 3 v, se protegen con una resistencia de 330 ohms cada uno. Y funciona perfecto. 

En cambio al ponerlos en serie, al intentar poner 4 simplemente no se prenden, busqué los leds que necesitan menos volts, los rojos, 1,8 v. Y los puse en una serie de 3 leds. Ahí se prendieron, no con su máxima intensidad, pero al menos me permitieron verificar que la programación funcionaba bien.

 

http://www.revista.escaner.cl/node/5470

Responder

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

Más información sobre opciones de formato

CAPTCHA
Esta pregunta es para verificar que eres human@, completa el espacio con los signos de la imagen.
10 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
By submitting this form, you accept the Mollom privacy policy.