Categorías

Ref. AKC-108.MD9113

Módulo de semáforo led 10mm 5v para arduino y raspberry

Stock: 245  
Ref. AKC-108.MD9113
Precio (IVA inc.) 0,75 €
Unidades ≥ 5 ≥ 10 ≥ 15 ≥ 20
DescuentoDescuentoprecio-3%-0,082,70-5%-0,142,64-7%-0,192,59-10%-0,282,50
whatsappSi tienes dudas envíanos un WhatsApp
Pago Seguro

Envío Rápido
en 14h o 24/48h

Pago Seguro
Tarjeta, Bizum...

Garantía
Calidad asegurada

Especialistas
Consulta tus dudas

Especificaciones

Introducción

Cuando aprenda el microcontrolador, normalmente puede usar tres LED, a saber, rojo, verde y amarillo para simular el parpadeo del semáforo a través de una conexión externa. Así que diseñamos especialmente este módulo que es muy conveniente para el cableado, y en el módulo puede ver el LED rojo, amarillo y verde. Este módulo es totalmente compatible con el microcontrolador Arduino y el sistema raspberry pi.





Especificación

Voltaje de trabajo: 5VDC

Tipo de interfaz: digital
SAMPLE CODE
int redled =5; // initialize digital pin 5.
int yellowled =4; // initialize digital pin 4.
int greenled =3; // initialize digital pin 3.
void setup()
{
pinMode(redled, OUTPUT);// set the pin with red LED as “output”
pinMode(yellowled, OUTPUT); // set the pin with yellow LED as “output”
pinMode(greenled, OUTPUT); // set the pin with green LED as “output”
}
void loop()
{
digitalWrite(greenled, HIGH);//// turn on green LED
delay(5000);// wait 5 seconds
digitalWrite(greenled, LOW); // turn off green LED
for(int i=0;i {
delay(500);// wait 0.5 seconds
digitalWrite(yellowled, HIGH);// turn on yellow LED
delay(500);// wait 0.5 seconds
digitalWrite(yellowled, LOW);// turn off yellow LED
}
delay(500);// wait 0.5 seconds
digitalWrite(redled, HIGH);// turn on red LED
delay(5000);// wait 5 seconds
digitalWrite(redled, LOW);// turn off red LED
}
OTROS PRODUCTOS RELACIONADOS