Pages: [1]   Go Down
Author Topic: Turn LCD Backlight on/off  (Read 2452 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey.

I would like to turn the backlight of an LCD Display on and off (ideally the arduino itself should be able to do this, and not some button or so). It's not supposed to fade, a simple on and off would be enough. How can I do this?

Also: Do I actually need a potentiometer? Or could I do it in some other way? (As I don't wan't to adjust the contrast or so while the arduino is running)


greetings
vIiRuS
Logged

0
Offline Offline
Faraday Member
**
Karma: 13
Posts: 2857
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can just use a transistor like 2N2222 or a logic-level MOSFET. Instead of connecting the cathode of the backlight to ground connect it to the collector of the 2N2222, then emitter to ground. Connect an Arduino digital output to the base through a 220-ohm resistor (not a critical value).

--
The Flexible MIDI Shield: MIDI IN/OUT, stacking headers, your choice of I/O pins
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 513
Posts: 31524
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This project does just that with the LCD back light:-
http://www.thebox.myzen.co.uk/Hardware/Dice_Game.html
Logged

Pages: [1]   Go Up
Jump to: