1LED Light Bar

In this project we’ll flash a row of LEDs back and forth in sequence, sort of like KITT from the 1980s TV series Knight Rider.

Image
Image

PARTS REQUIRED

Arduino board

Breadboard

Jumper wires

8 LEDs

8 220-ohm resistors

HOW IT WORKS

An LED emits light when a small current is passed through it. LEDs are polarized, which means one side is positive and one side is negative. This is because the LED will work only with current flowing in one direction, from positive to negative. The longer leg of the LED is positive and must connect to a positive ...

Get Arduino Project Handbook, Volume II now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.