I got assigned a project to port code from 32 bit arm to 8bit avr which was done without sacrificing performance. Next step is to customise hardware that's not needed and also switch from 5v to 3.3v.
Lcd that they are using is NHD-C0220AZ-FSW-FTW from Newhaven display. Its chip on glass. Reading the schematic provided for the project I found a diode connected to contrast pin 2 of LCD.
http://www.newhavendisplay.com/specs/NHD-C0220AZ-FSW-FTW.pdf link to datasheet.
Attached is the part of that schematic with diode.
In datasheet I cant find anything about that plus I never ever used a diode with any lcd on contrast pin was either pot or after determining the value either a fixed 1 resistor or a divider with 2 fixed resistors or sometimes directly to GND.
From datasheet:
pin 2 V5 Adj. Power Supply Supply Voltage for Contrast (approx. 0.6V).
Supply for LCD (contrast) (VDD - V5) 4.1(min) 4.4(typ) 4.7(max)V
this is all the information available in datasheet about that pin and sample circuit with pot.
If that pin is connected to 10K pot or fixed resistor or directly to GND nothing is visible on LCD i.e. its impossible to calibrate contrast.
When I`m putting diode (Schottky in my case) everything is working.
Experiment was done to eliminate all circuitry leaving only lcd and supply voltage + Arduino with lcd sample code.
Whats the purpose of that diode?
Thanks.