LCD with backlight control
The hello world with two buttons for backlight control
This is the same hello world program for the liquid crystal display. When I build it I haven't a variable resistor, so it was necessary to do it by software with a couple of push buttons.
|
By antonio
Created on May 4, 2010, 19:48
Images
Files
Fritzing Files
Code Files
Links
|
Analogue # Oct. 24, 2011, 8:29 p.m.
Please note! This fritzy is improperly named. Lost in translation, perhaps. The designer is talking about adjusting CONTRAST, by using pins on the Arduino to be his potentiometer. In case you came here for an example of LCD backlight control with the Arduino, please do not attempt to do this directly. It will [slightly] work (even better if you go the PWM route), and it won't damage the Arduino because it is self-protecting, but it is bad design. Backlighting for most LCDs will want more current than any single Arduino pin can source. Some exceed 500mA. Always use a pass transistor/MOSFET to do the heavy lifting, leaving the Arduino pin to easily drive the base/gate.