CHAPTER 6Light Projects

IN THIS CHAPTER WE LOOK AT some more projects based on lights and displays. In particular, we look at how to use multicolor LEDs, seven-segment LEDs, LED matrix displays, and LCD panels.

Project 14Multicolor Light Display

This project uses a high-brightness, three-color LED in combination with a rotary encoder. Turning the rotary encoder changes the color displayed by the LED.

The LED lamp is interesting because it has three LED lights in one four-pin package. The LED has a common-cathode arrangement, meaning that the negative connections of all three LEDs come out of one pin.

If you cannot find a four-pin RGB (red, green, blue) LED, you can use a six-pin device instead. Simply connect the separate anodes together, referring ...

Get 30 Arduino Projects for the Evil Genius, Second Edition, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.