O'Reilly logo

30 Arduino Projects for the Evil Genius, Second Edition, 2nd Edition by Simon Monk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required