Hi,
who could help me connecting this Display to arduino?
Thanks
Juergen
Hi,
who could help me connecting this Display to arduino?
Thanks
Juergen
All of the information you need is on this page, including the code:
Obviously you need to use the pin numbers from your datasheet and not the ones in the tutorial for connection info.
For the Led backlight, since 4.2V is not a standard value (not 5V ) , you can use the LED backlight current
(about 14 mA) to calculate the value for a dropping resistor to drop the 5V to 4.2V
R (dropping) = [(Vin-VLoad)/ (I load) = (5V-4.2V)/(0.014A) = 0.8V/0.014A= 57.1 ohms = approx 62 ohm (MIN) to 82 ohms (MAX)
p (in Watts) = I x E = 0.014A x 0.8V = 0.0112 W = approx 12 mW (1/4 W resistor ok)
Contrast (Vo/LCD Drive) should be connected to the wiper of a 10k Potentiometer connected accross +5V & GND, with the
wiper voltage set to 0.3 -0.8Vdc. If you don't have a pot you can use a 10k resistor in series with a 1 k resistor with the 10k
resistor connected to +5V dc and the 1 k resistor connected to GND . The point in the middle where the two resistors connect
should be 0.3Vdc to 0.5V dc, which you connect to Vo (contrast pin).
FYI, in the Tutorial RW-NOT is tied to ground because you are never going to be reading from the display..
You can try IDE "File\Examples\liquidcrystal\Examples\Liquidcrystal\HelloWorld" to load the example or copy and paste it
from the link above.
The one thing your datasheet doesn't contain is the format (CHARACTERS,LINES) .
Is it (16,2),(20,4) or what ?
This will be important once you get it displaying text to configure it for the right characters per line.
It is not critical at this point.
You can deal with it once your display is working.