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!)
-Some Small Pliers to bend the resistor and LED leads.
Step 1: Bending the Leads (=
Step 2: Constructing the Circuit!
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.
Step 3: PR0GR4M1NG!
downloadable from: http://arduino.cc/en/Main/Software
Once youve uploaded that to the board you will need to download processing in preperation for the next step: http://www.processing.org/download/
Step 4: Libraries
These libraries include:
once installed you will need to download a program called touch osc editor from here: http://hexler.net/software/touchosc
scroll right down to the bottom,its near there.
i have included a link to a premade one and it includes buttons, toggles,flahers and faders. when you press one of these it sends out a message that processing will look for and read. te processing sketch attached will also be set up to read those messages so theres no hard work for you (=. open the touch osc editor file and click the sync button then go onto your idevice , in touch osc select layout-add-and select the host that comes up. make sure your idevice and pc are on the same network.
the basic draw funcions and fader code was made by harryking, on youtube, i have extended it: check him out on youtube (=
download the files here: http://www.mediafire.com/?iosmsvmq4dsyb7p
Step 5: Almost There!
Step 6: TroubleShooting!
if you get exception errors, make sure your arduino is plugged in
if you get nothing being mirrored make sure your ip and port are correct and your firewall is not locking it.
and if you are not having fun, then go away :P
any other errors please comment. (=