Description
LED Traffic Lights Signal Module / Digital Signal Output Traffic Light Module
A 5V LED Traffic Light Signal Module is a ready-to-use module designed to simulate a real traffic light, typically used in electronics projects and educational setups. It usually has Red, Yellow, and Green LEDs mounted on a small PCB, often labelled and arranged vertically like real traffic lights.
Technical Specifications:
-
Operating Voltage: 5V DC
-
LED Colours: Red, Yellow (Amber), Green
-
Interface Pins: 4-pin header: R, Y, G, GND
-
Compatibility: Arduino, ESP8266, ESP32, Raspberry Pi, etc.
-
Control Type: Digital (LOW = OFF, HIGH = ON)
-
Current Consumption: ~20mA per LED (with built-in resistors)
- Resistors: Built-in current limiting resistors (~220–330Ω)
Pinouts:
Connection with Arduino:
Module |
Arduino UNO |
R |
2 |
Y |
3 |
G |
4 |
GND |
GND |
Sample code:
int redPin = 2;
int yellowPin = 3;
int greenPin = 4;
void setup() {
pinMode(redPin, OUTPUT);
pinMode(yellowPin, OUTPUT);
pinMode(greenPin, OUTPUT);
}
void loop() {
// Red ON
digitalWrite(redPin, HIGH);
delay(3000);
digitalWrite(redPin, LOW);
// Green ON
digitalWrite(greenPin, HIGH);
delay(3000);
digitalWrite(greenPin, LOW);
// Yellow ON
digitalWrite(yellowPin, HIGH);
delay(1000);
digitalWrite(yellowPin, LOW);
}