The purpose of this project was to read a variable resistor on pin a4, and display the value (with a nice text) on the LCD display.
I decided to also add a graphical representation by means of a bar in the lower line of the display. Reading the resistor is (by now) a piece of cake, getting it on the LCD display is an entirely different matter.
The LCD display used in this project is manufactured by the Emerging Display Technologies Corporation, model number 162A0 (led types). The LCD has 16 connections, but before soldering wires to all of them it's nice to know that 7, 8, 9 and 10 are not used. By this library anyway. Also nice to know perhaps is that these connections are on the topside of the display. Since I assumed (shouldn't do that, I know) that they were at the bottom side I soldered short wires to them, and now have to learn to read upside down. So if you think the breadboard pictures have a strange angle; they have been rotated 180 degrees...
Pin 3 of the LCD controls the brightness of the letters on the LCD. The data sheet suggests to select the resistors in such a way that the voltage between pins 2 and 3 doesn't drop below 1.5 volts. So a resistor of 10k and a variable resistor of also 10k will do nicely (minimum voltage 2.5 volts). I found the optimum voltage to be 4.35 volts.
Pins 15 and 16 are for the backlight. It really brightens up the place with the selected 10 ohms resistor (the data sheet suggests any value between 6 and 15 ohms). So much so in fact that I placed a push button switch in between.
http://members.home.nl/b.vandam/lonely/pagina24.html