Controlling Multiple LEDs with Arduino | Task 1


In this lesson, we're diving into the world of controlling multiple LEDs. Imagine creating your very own light show right on your Arduino!

You'll use pins 2 to 6 to control five LEDs, one after the other. Any color of LED will work, so pick your favorite.

Our goal is to light them up in sequence and learn how loops can help us write smarter, shorter code to control many things at once.

Look at the diagram below to see how to connect your LEDs. Make sure each LED has a resistor and is connected to one of the pins between 2 and 6.


LED circuit