I’m excited to share my project — the RGB LED Traffic Light made using Arduino. This project simulates a real traffic signal system using an RGB LED. An RGB LED is a special type of light that can produce any color by combining the three primary colors: red, green, and blue. The LED has four pins — one for each color and one for the common ground (cathode).
In my project, I connected the red pin to digital pin 9, the green pin to pin 10, and the blue pin (which I used for yellow) to pin 11 on the Arduino board. In the code, I set up each pin as an output and programmed the LED to display different colors in sequence.
The program starts with the red light (pin 9) on for 5 seconds, signaling “stop.” Next, it shows the yellow light for 2 seconds, created by mixing red and green at specific brightness levels. I adjusted the color values so the yellow would appear correctly — not too green or too bright. Finally, the green light (pin 10) turns on for 5 seconds, signaling “go.”
This loop repeats continuously, just like a real traffic signal. I designed and tested the circuit in Tinkercad, which made it easy to simulate and troubleshoot connections before building the real version.
Through this project, I learned how to use RGB LEDs, set up Arduino pins, and adjust color brightness using code. It was a great way to combine creativity with coding and electronics.