Traffic light
Hello everyone! My project is an RGB traffic light system controlled by two switches. I based my project on a traffic light because it can show different colors depending on the switch positions. I used a Raspberry Pi Pico, two switches, and an RGB LED. Switch one is connected to pin 7, switch two to pin 6, and the RGB LED uses pins 18, 17, and 16 for red, green, and blue. When both switches are on, the LED turns red. When only switch one is on, it turns green. When only switch two is on, it turns blue. When both are off, it turns white.
Attend our in-person Robotics & Math