This is my entry to the Sparkfun Microcontroller contest so if you think it's good, please vote!!(voting starts the 14th feb). Thanks!!
Once everything is set-up, you will be able to control the color of the RBG's from your computer, using the Processing program, and also see the output color in the program( it ain't perfect but it's handy if you want this for remote lighting)
Below is a screenshot of the Processing executing. By clicking (and/or holding) on the up and down arrows, you can change the color levels of each of the colors in the RGB.
Remove these ads by
Signing UpStep 1: Equipment
http://arduino.cc/en/Main/Softwar e and http://processing.org/download/
An Arduino(make sure it has PWM outputs, which is all/most)
RGB Led's
Resistors(100x2 ,180x1)
Jumper wires
Breadboard
USB cable(for the Arduino)
If you are using more than one RGB, you may need to calculate the different values for the resistors. Follow this tutorial http://www.sparkfun.com/tutorials/219 or use this site http://led.linear1.org/led.wiz to calculate the required resistances.







































Visit Our Store »
Go Pro Today »




my computer keeps saving it as .tmp and i cant change it.
Display 0 does not exist, using the default display instead.
Mar 28 18:02:48 yingxis-MacBook-Pro.local java[16626] : CGContextGetCTM: invalid context 0x0
Mar 28 18:02:48 yingxis-MacBook-Pro.local java[16626] : CGContextSetBaseCTM: invalid context 0x0
Mar 28 18:02:48 yingxis-MacBook-Pro.local java[16626] : CGContextGetCTM: invalid context 0x0
Mar 28 18:02:48 yingxis-MacBook-Pro.local java[16626] : CGContextSetBaseCTM: invalid context 0x0
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.2pre2
[0] "/dev/tty.usbserial-A6005kTq"
[1] "/dev/cu.usbserial-A6005kTq"
[2] "/dev/tty.Bluetooth-PDA-Sync"
[3] "/dev/cu.Bluetooth-PDA-Sync"
[4] "/dev/tty.Bluetooth-Modem"
[5] "/dev/cu.Bluetooth-Modem"
java.lang.NullPointerException
at java.io.DataInputStream.readInt(DataInputStream.java:370)
at processing.core.PFont.(PFont.java:319)
at processing.core.PApplet.loadFont(PApplet.java:4199)
at sketch_130328b.draw(sketch_130328b.java:66)
at processing.core.PApplet.handleDraw(PApplet.java:1631)
at processing.core.PApplet.run(PApplet.java:1530)
at java.lang.Thread.run(Thread.java:680)
Invalid memory access of location 0xb20c4b70 eip=0x547f290c
I used an older version of processing but i don't think the code would need much or any editing to run on 1.5.1......As i said, it looks like an install problem. Lemme know if that works
in the text for over the arrow buttons:
text(s, 30, 100, 40, 20);
the end 20 needs to be 30 or else only the blue shows up. great program though
I not noticed any probs with it......but i'll have a look over the next few days and get back to you :-)
i would recommend using 9,10,11 since they are next to each other.
just a thought
good stuff
Your right.....I never thought of that. I started at 3 and went for the next PWM pins.
saying it cannot load this font AngsanaNew-25.vlw
then this line is highlighted
font = loadFont("AngsanaNew-25.vlw"); // import the font(tools->create)