3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino RGB LED Lamp + 4bit LCD Display

Step 2Circut Connections

Circut Connections
General Info & Tips

- 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 StepDownload PDFView All StepsNext Step »
28 comments
Jun 4, 2010. 3:14 PMraikoug says:
Hi, i use this lcd http://www.sparkfun.com/commerce/product_info.php?products_id=9052 but I really can't see anything write on... maybe is a bit different couse of white on black... i'm a bit new.. (I use an arduino 2009, the leds with pot and bott work fine) can you hlp me please? thanks
Jun 4, 2010. 5:55 PMraikoug says:
nono... now work... but I don't have clear writes... it give me strange signs: "?" "/" "o" arrows and a think a jap letter... what is going on? :D thanks
Jun 5, 2010. 4:12 PMraikoug says:
I'm really happy of existence of people like you... thanks for all your work! than... I can see the words... but.. aren't the words i should see.. i see strange simbols.. I saw the datasheet at page 5 of my lcd and I found that all pins are the same (only but of 15 and 16 that I have to hookup, they'r the back ground... but that was really easy). now... the problem i that the db pins (the ones responsable of the word mixing I suppose) are exactly the sames as your... and not only... i tried to see the arduino.cc libraries manual.. i hooked them to see only the lcd.. and when I start it... it gives me this strange letters... I've a video: (made by a nokia) http://www.megaupload.com/?d=MLLFUHML thanks for all!!
Jun 6, 2010. 3:41 PMraikoug says:
omg... I saw another wonderfull thing of my lcd (that i suppose to be broken...) I restart the arduino i load the program but nothing... everything work but the lcd.. for I don't know why in the world... I unplud the arduno 11 and 12 from the lcd... than I plug them (casually) to 3-4 ... and it starts writing nonsense characters... and the strangest thing is that If i unplug those 2 pins anfter all this... lcd still write the same things!!! I wish it isn't my poor arduino board...
Jun 6, 2010. 5:38 PMraikoug says:
it's not the lcd... I tried with another lcd and the same history.. strnag symbols... :( what the hell :(
Jun 7, 2010. 3:46 PMraikoug says:
i'll try as soon as possible! if it will works I will love you!! :P
Jun 8, 2010. 7:46 AMraikoug says:
nthing.. the pin was right. is there something wrong in the db positions... it's really strange.. :(
Jun 10, 2010. 2:31 PMraikoug says:
I've done it!!! finally, with a 3° lcd I made it!! IT WORKS!!! Thanks a lot for all help you gave me! you are a friend ;) See you soon ^^
Jun 11, 2010. 12:48 PMraikoug says:
I sure will!! ;) thanks a lot!
Jun 9, 2010. 6:21 PMraikoug says:
Nothing... I tried but it is always the same, and I tried a lot of combinations!! (i tried the liquid cristal libraries with his connection... but I can't compile couse of and error (I used the examples codes..) so I can't test the connections :( )
Dec 1, 2009. 3:41 AMmicha-uhl says:
Hallo,
when I press the button, the power shorts! The red and yellow wire on the resistor are to change!
michael
Oct 23, 2009. 8:51 AMgoodspeed52002 says:
hey silerbyte.
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
Oct 26, 2009. 8:46 AMgoodspeed52002 says:
looks pretty cool. would you be willing to help me with my project. i wanna controll these lights.

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.

Oct 14, 2009. 10:31 AMgoodspeed52002 says:
i really want to build this project. but it seems rather difficult todo. i have never used arduino borad before and dont know alot about ledsor programming in c. where did you learn how to do all this stuff?
Feb 8, 2009. 2:57 AMjgueydan says:
Great Project! Noticed your schematic only shows connection of 1 RGB LED. Do you have the other 2 just connected in parallel? Want to make sure as I don't know how much current you can sink to the Arduino. Thanks
Feb 10, 2009. 3:07 PMjgueydan says:
I don't see the transistor in the circuit diagram...which one did you use?

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!
13
Followers
1
Author:silverbyte