From the course: Learning Arduino: Foundations

Unlock the full course today

Join today to access over 23,200 courses taught by industry experts.

Example: Wiring a digital traffic signal

Example: Wiring a digital traffic signal - Arduino Tutorial

From the course: Learning Arduino: Foundations

Example: Wiring a digital traffic signal

- All right, so now let's use everything we've learned so far in order to wrap up this chapter and use this example where we use Arduino board to control three separate digital interfaces using three LEDs. So I'm going to use the three LEDs to create a simple digital traffic signal and monitoring using serial monitor. So I'm going to connect the red LED to pin 12. The yellow LED to pin 11 and the green LED to pin 10. I'm going to use the same connection as we did in the red one. So resistor and the LED, a resistor, and then LED. So I'm going to go ahead and connect the pin from the Arduino pins. So 12 goes to the red LED, the yellow goes to the 11, and the green one goes to 10. Alright. So one thing now, instead of connecting each individual one to the ground here, what I can do is I can use a common ground is using the two sides of the breadboard. The top sides, if you notice here, they are connected this way…

Contents