Circuit Theory

The Arduino controls the tricolor pattern that is sent to the RGB LED, as shown in Example 10-1. The RGB LED sequence or pattern is started with a short press of the mini pushbutton switch. Within the sketch is a counter that plays the pattern for a set number of times (in this case, three times). The replay… Continue reading Circuit Theory

Upload the Magic Light Bulb Sketch

With the Magic Light Bulb circuit built on the MakerShield, it’s time to upload the sketch. Example 10-1 operates the RGB LEDs using a mini pushbutton switch. Here are the steps you’ll need to follow: The Arduino will sequence the RGB LED tricolor pattern three times. Figure 10-3 shows the Magic Light Bulb in action. Figure 10-3. The Magic Light Bulb running through… Continue reading Upload the Magic Light Bulb Sketch

Introduction

Pushbutton Multicolor Flasher Here’s a cool trick you can play on a friend using the Arduino and an RGB LED. Build an RGB flasher with a mini pushbutton switch on an Arduino MakerShield. Show your friend the MakerShield and tell him the mini light bulb is magical and it can produce three colors: red, green, and… Continue reading Introduction