View Full Version : 16x2 LCD

Robot Freak
04-23-2008, 10:39 PM

Just bought a 16x2 LCD screen, the datasheet can be found here. (http://www.dickbest.nl/documentatie/CG046-3007-01-SPA01_RoHS.pdf)
I connected the Vss to ground
Vdd to 5v
Vo to 5v
RS to pin16
R/W to pin 17
E to pin18
DB4..7 to pin11..8
LED+ to 5v
LED- to ground

After using this (http://obex.parallax.com/objects/106/) object, the 5v voltage regulator was getting warm, the LCD didn't show anything. (backlight went on)

So I decided it would be a good idea to ask here for some help.
Am I connecting it wrong or do I have to use an other object?

Kind regards,
Robot Freak

04-23-2008, 10:47 PM
Just a guess, but you probably need ~1k resistors between the Prop pins the device since it's at 5V and the prop is 3.3V...

Robot Freak
04-23-2008, 10:52 PM
It is working!
I connected Vo to ground and added a resistor for the LED backlight.
Regulators are cold now.

Is it recommended to use resistors on the data pins?
For what are they necessary?

Kind regards,
Robot Freak

Mike Green
04-23-2008, 11:02 PM
For a start, the LCD is a 5V device and the Propeller is a 3.3V device. The DBxx pins can become outputs and the higher logic supply voltage can damage the Propeller. You need at least 100 Ohm resistors in series with DBxx pins from the LCD to protect the Propeller.

Double check your connections and set up a potentiometer to provide an adjustable contrast voltage. The 5V may be too high. A 10K pot between 5V and ground with the wiper connected to the Vo pin would work.

The Propeller runs off 3.3V, not 5V. If you connect an I/O pin to a source of more than 3.3V (actually 3.9V), there are protective diodes to the Propeller's Vdd and Vss supplies that will conduct. If the amount of current conducted is too large, the Vdd supply will actually shift due to on-chip resistances and the Propeller can be damaged if Vdd rises too much. In addition, the diodes and possibly the conductors on the chip and to the chip can melt if there's too much current. The resistors limit that current to something the chip can handle (<50mA typically).

Post Edited (Mike Green) : 4/23/2008 4:09:53 PM GMT

04-23-2008, 11:32 PM
Now that I think about it, you probably only need resistors for those Prop pins being used as inputs... Maybe for your LCD there are no inputs to the Prop, all the pins are outputs to the LCD. In that case, you don't need the resistors...

Robot Freak
04-24-2008, 01:38 AM
The LCD object only uses the outa register, so it isn't supposed to use the pins as inputs.
So the resistors are not necessary.

Thanks for the replies!

Erik Friesen
04-24-2008, 02:55 AM
Some 150 to 300 ohm resistors can't hurt. The ks0108 chip for example doesn't seem to work right without some resistors inline.

04-24-2008, 04:06 AM
IMHO it is always a good idea to add resistors for a 5V device.
The LCD object does indeed use OUTA but if you don't issue the correct command and/or suffer a corrupted data stream it is possible for the LCD to switch to 'output' mode.
I speak from experience http://forums.parallax.com/images/smilies/blush.gif


PropGFX Forums (http://www.propgfx.co.uk/forum) - The home of the Hybrid Development System and PropGFX Lite