Instructables
Picture of Control An RGB LED With Your iDevice!
IMG_0551.JPG
IMG_0552.PNG
In this tutorial, you will learn how to control and RGB LED with your iDevice (Ipod, Iphone, Ipad) using "TouchOSC" and processing along with the oscp5 library.

You Will Need:
-An RGB LED, Common Cathode (Negative)
-An Arduino Or Arduino Clone
-3x 220Ohm Resistors
-A Breadboard/Prototyping Hardrware
-Some Nice Wires, Prefferably Color Coded (Red, Green, Blue and White For Ground)
-touch osc-app-5$ (Its Is Worth It!)

Optional:
-Some Small Pliers to bend the resistor and LED leads.

Step 1: Bending The Leads (=

Picture of Bending The Leads (=
IMG_0546.JPG
Before We start wiring up the circuit you will want to bend the led and resistor leads to fit your prototyping hardware. The resistor leads will simply be bend downwards in parralel, as shown in photos and the leds will be bent to fit all 4 leads into the breadboard or prototyping hardware you have used.

Step 2: Constructing the Circuit!

Picture of Constructing the Circuit!
IMG_0551.JPG
The Circuit is Simple if you have ever connected an led before, the common lead, the longest, will be connected to ground and the remaining connections will go through a resistor into 9,10 and 11 PWM pins, (pulse-width-modulation)
PWM is basically flashing the led so fast that the human eye sees it as steadily on just at a lower birightness, different brightnesses are achieved by changing the ratio of which the led is on then off. the pins 9,10 and 11 are simply pulse width modulation compatible.
The very shortest lead (red) will go thorugh a resistor to pin 11, The 2nd shortest (green) will go to pin 10 and finally the blue (remaining lead) will go to pin 9. and incase you havent already wired up the longest lead- it is the negative of each led, this must go to a ground labbleled hole on the arduino.
 
Remove these adsRemove these ads by Signing Up
Hey, I tried it but nothing happens and sometimes a black box with 3 rgb bars shows up but i can´t do anything with it. Do you have any idea of what the problem might be?
Thanks
zane20062 (author)  bloodblaster1 year ago
the black background and rgb bars are normal, are you saying that when you change the slider on the idevice, nothing happens?? if so make sure your ip in touch osc is the same as the one shown in the black bar in processing when you start it up, apply the same to the outgoing port which if you are using my examples is 8000. also make sure your firewall is not blocking the signals , disable it temporarily maybe? also thankyou for trying my instructable (=
Also you cannot interact with it n the computer you must interact with it on the touch osc app.