Find all your DIY electronics in the MakerShed. 3D Printing, Kits, Arduino, Raspberry Pi, Books & more!

android arduino led strip lights Control RGB LEDs with this Android Arduino Combo Circuit

Connect a multicolor LED strip to your smartphone to make a touch-controlled light show! You can attach the color-changing LEDs to the underside of a coffee table, your bike, or anything else you think needs a bit more color.

With our latest Weekend Project we’ll show you how to combine an Arduino, a simple solderless breadboard circuit, and your Android device (which must be compatible with USB host mode) to control a strip of full-color RGB LEDs. We call this project Android-Arduino LED Strip Lights.

image04 Control RGB LEDs with this Android Arduino Combo Circuit

The flexi-strip of 60 LEDs in our project can draw a maximum 1.2A when the LEDs are at full brightness. However, the Arduino’s digital pins are only capable of 40mA of DC output. Using a driver circuit built on a solderless breadboard, with the aid of one TIP31 NPN transistor per color, Pulse Width Modulation (PWM) will allow us to draw maximum brightness from our LEDs and color mix using a touchscreen app for Android.

android ledsc Control RGB LEDs with this Android Arduino Combo Circuit

According to this Arduino Reference Board, PWM is available on pins 3, 5, 6, 9, 10, and 11 of ATmega328-based Arduinos. In the code above you can see we have declared pin 9 for red, pin 10 for green, and pin 11 for blue. For example purposes you can see we have also adjusted the maximum duty cycles to adjust for any color balancing issues.

Watch the video below to see this project in action. If you design a novel use for this project, transfer the breadboard circuit to your own homemade PCB, or otherwise have questions about the Arduino sketch code, leave a comment on the project page and someone will follow-up. And as always, have fun!

Nick Normal

I’m an artist & maker. A lifelong biblioholic, and advocate for all-things geekathon. Home is Long Island City, Queens, which I consider the greatest place on Earth. 5-year former Resident of Flux Factory, co-organizer for World Maker Faire (NYC), and blogger all over the net. Howdy!


Related
blog comments powered by Disqus

Related Supplies at Maker Shed

Follow

Get every new post delivered to your Inbox.

Join 26,454 other followers