1 10k Potentiometer
Remove these ads by
Signing UpStep 1: Connecting the Jumper Wires
The first step we need to do is connect the pins to the LCD. For those interested, you can find the datasheet here.
I got my LCD from sparkfun, and you can buy one here.
As I mentioned before, you only need to connect 10 pins. Solder jumpers to these wires:
Pin 1 - Ground
Pin 2 - +5V
Pin 3 - Contrast Adjustment
Pin 4 - H/L Register Select
Pin 5 - H/L Read/Write
Pin 6 - H/L Enable
Pin 11 - DB4
Pin 12 - DB5
Pin 13 - DB6
Pin 14 - DB7
As shown in the picture below:
Pin 1 to GND
Pin 2 to 5V
Pin 3 to wiper
Pin 4 to Arduino pin 12
Pin 5 to GND
Pin 6 to Arduino pin 11
Pin 11 to Arduino pin 5
Pin 12 to pin 4
Pin 13 to pin 3
Pin 14 to pin 2
Because we will only be writing, pin 5 will be dropped to ground to show that there will be no reading. For those who wish to use the backlight, connect LCD pin 16 to GND and LCD pin 15 to +4.2V.
Connect one side of the pot to GND, the opposite to %v, and the center to LCD pin 3. Now you're in business.






































Visit Our Store »
Go Pro Today »




now i am facing a problem i am newbie to arduino and want to use lcd as output ( actually i want to print different numbers when different tactical switches are pressed ) please help me.
THANKS
I was able to get everything running smoothly on my ATmega328 (Arduino Uno) and a TM204A-1 LCD screen I got from Amazon. I thought I would be spending days learning how to figure this out, but after soldering the DIP pins on the LCD I was able to get this up in 30 minutes!
I made a slight adjustment by connecting pins 15 and 16 as "The nerdling" mentioned, in order to get the backlight working. I connected pin 15 of the LCD to pin 13 on my Arduino, and made sure to open the pin (13) via IDE programming. Naturally, pin 16 went to the same ground as the rest.
I also used a mini breadboard for the LCD (the red one) to make things easier.
See the attached photo for my setup.
I tried everything but I am still getting those black boxes when I set my potentiometer high.
(P.S. The boxes are GOOD, its supposed to happen)
Pin 3 to wiper ?????
Connect either end to +5v and ground, and wiper will be the middle pin
like i hav avr for atmel micro controllers.
plz help!!
if any one could help me i would really appreciate it
i connected them into 5v with a 140Ω resistor
if your wondering how i got the ohm sighn i used character map in windows
Good writeup!