Step 2Circut Connections
- make sure LCD (RW / PIN5) is hooked to ground.
Theres a mistake in the diagram I made below, it shows LCD PIN 6 is attached to GROUND.... thats wrong, LCD PIN5 is supposed to be attached to ground
- When testing LCD use POT to figure out proper resistence for LCD CONTRAST. You may think LCD isn't working when in actuality the contrast is just to low and you cannot see anything.
- NOT ALL LCD's are made the same. Refer to your LCD specs (google model # of LCD) for pinouts. (DB0-DB7, RegisterSelect , ReadWrite, Enabled, etc)
- RGB PINs needs a proper resistors for each color. The resistor is determined by the amount of voltage each color requires.
Eaxmple:
R = 2.8 - 3.2 volts = 82ohm (recommended)
G = 3.2 - 3.5 volt = 68ohm (recommended)
B = 3.2 - 3.5 volt = 68ohm (recommended)
use following URL to determine resistance for each color. LED series/parallel array wizard
Component Info
Potentiometer (POT) = 120ohm
LCD Contrast resistor = 22 ohm
push button resistor = 2.2 Kohm
LCD Connections
Arduino (GND) = LCD (PIN 1) = Ground
Arduino (5V) = LCD (PIN 2) = Power Supply
Arduino (PIN 2) = LCD (PIN 6) = Enable Signal
Arduino (PIN 7) = LCD (PIN 11) = DB4
Arduino (PIN 8) = LCD (PIN 12) = DB5
Arduino (PIN 9) = LCD (PIN 13) = DB6
Arduino (PIN 10) = LCD (PIN 14) = DB7
Arduino (PIN 11) = LCD (PIN 4) = Register Select
Arduino (PIN 12) = LCD (PIN 5) = Read / Write
RGB LED Connections
Arduino (PIN 3) = LED R = 2.8 - 3.2 volts = 82ohm (recommended)
Arduino (PIN 5) = LED G = 3.2 - 3.5 volts = 68ohm (recommended)
Arduino (PIN 6) = LED B = 3.2 - 3.5 volts = 68ohm (recommended)
Arduino (GND) = LED GND
Button & Pot Connections
Arduino (ANALOG PIN 2) = POT (wiper : usually in the middle, depends on pot)
Arduino (PIN 4) = PushButton (make sure to use 2.2Kohm or higher resistor)
| « Previous Step | Download PDFView All Steps | Next Step » |







































when I press the button, the power shorts! The red and yellow wire on the resistor are to change!
michael
This is how the button should be hooked up.
http://www.arduino.cc/en/Tutorial/Button
Thanks for noticing and reporting.
Cheers
thanks for the info im learning alot and it makes sense. i wanna make the exact same project as you did but with a wireless remote or connect it to and xbee which would could also be comunicated to a web page via php or java and you could ulimatly control it through a web browser. any thoughts on that
I would have to research that a little, but i know it can be done... Theres a router called the FONERA (i bought one) that i can communicate with the arduino through serial port. I would be able to connect through wifi and basically surf pages extract data and so forth..
In anycase you can definitely do what you want with a little research, all u need to do is be able to get those RGB values to the function, and the arduino will control the LED color for you.
how you do that is up to you, im sure you'll find tons of people trying to do similar projects.
cheers
Joe
http://www.tradekey.com/product_view/id/1058216.htm - or something simllar to it. they are going to be hidden my krown molding to light up a ceiling. and i want to be able to contoll then with my laptop or iphone over the network. also it would be nice to create chanels so i can controll certain secetions at once.
http://www.youtube.com/watch?v=UIp0n0mHteo
Once you get that, you would be able to control the LED pretty easily with my code, don't bother getting an LCD and using the 4Bit LCD portion of it.
Everything I leanred off the Ardunio can be found EVERYHWHERE on the internet, its the MOST POPULOR programming circuit board out there, and is growing exponentinally...
the best places to get information is
www.youtube.com & www.arduino.cc
on www.arduino.cc theres TONS and TONS of code examples... its the best place to start, thats where i got most of my code and learned the most!
cheers
Joe
http://led.linear1.org/led.wiz
I use a transistor that can handle upto 1amp of current. The LED's pull a total of 60mAh R=20mAh, G=20mAh, B=20mAh. I should be able to power 16LEDS at the same time (thats with all RGB ON) you could power more LEDS since the hue color only has 2 colors turned on at the same time.
http://wulfden.org/TheShoppe/freeduino/rbbb.shtml