How to control LED's with Processing and Arduino

How to control LED\
The other day I was confronted with an interesting problem, I needed to control a series of lights from an interaction on a computer screen and it had to be as inexpensive as possible.  I instantly thought of an Arduino.  It had everything that I needed, more than enough I/O, an integrated USB and its only $30.  To communicate with the Arduino I decided to use Processing.  The two work really well together because of Arduino's close family relation to Processing.
 
Remove these adsRemove these ads by Signing Up
 

Step 1The Materials

The Materials
Its time to gather all of the bits and pieces necessary to make this happen:

The Software:

Processing - can be found at www.processing.org
Arduino - Can be found at www.arduino.cc

The Hardware:
Arduino USB board (I used the Diecimila, because that's what I had)
8x LEDs of your choice
8x 330ohm resistors
Break away headers
single sided copper clad
Ferric Chloride
tiny drill bit
USB cable


« Previous StepDownload PDFView All StepsNext Step »
13 comments
Jan 29, 2012. 2:19 PMmohamed100 says:
Thanks for this and i have a question on that :
can i controller in RC car using this method of controlling ?
Jan 16, 2012. 6:34 PMlmperkins says:
Thanks, this was really helpful. I set it up on a breadboard rather than making a custom pcb and it worked great. My first successful us of Processing.
Apr 26, 2011. 6:29 AMknobcheese says:
Thanks - worked for me :)

p.s. LEDs is the plural of LED - so no apostrophe
Feb 24, 2010. 4:49 PMrk24 says:
 I want to control the leds from internet...

can you do that?

:S please 
Jun 13, 2010. 10:10 AMCoding Kid says:
Yes, but you would need a ethernet of wifly shield.
Oct 17, 2009. 11:02 AMjman 31 says:
Neat project. I downloaded the pdf file and when I printed it some of the traces are touching. Is there any chance you could post your Eagle files so that I could clean it up a little bit?
Oct 17, 2009. 1:37 PMjman 31 says:
Hey man thanks for the effort, but for some reason neither the board or schematic files is working. If it's not to much trouble could you have a look at that. Thanks again!
Oct 11, 2010. 3:17 PMjman 31 says:
Sorry, it must be on my end. Every time I download it it is saving it as a .tmp file. I see what you are doing so I will just recreate it in Eagle.

Thanks
Jman
Oct 24, 2009. 2:34 PMjman 31 says:
This worked perfectly for me! I was able to get the right serial input by following your instructions and it worked great. I am just starting to learn about programmable IC's and this was a good easy learning curve.

I did have to make my own Eagle file as I was never able to upload your, and your PDF was coming out with traces touching for me. I am going to try to upload my PDF in case anyone had the same problem as me. Mine is made with the copper side down though.

http://www.italentshare.com/storage/PICs/LEDShield.pdf
Oct 17, 2009. 2:25 AMfrollard says:
Nifty gizmo!

I always think that using 8 pins to control 8 leds is overkill...but so is using a shift register to use 3 pins instead of 8 :D

Great little learning chunk!

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
5
Followers
1
Author:SammyDestruction