Urahara
Member
Hi
Am trying to control the backlight of a 20x2 LCD character module with a PIC pin. The main purpose behind it is to conserve battery power, with the PIC switching the backlight off before going to sleep after a period of inactivity.
Have googled and found something like this as attached. My questions :
1) Is this how this works :
- During normal activity, I will output a "1" to pin C2 to turn on the LCD backlight.
- I don't have to output a "0" to pin C2 to turn off the backlight since the PIC will effectively not output anything to the pin (hence a "0") when it goes to sleep. When it wakes up, it goes back to the earlier state (ie a "1") and turns on the backlight. Is this correct?
2) Researching on the net led me to believe a MOSFET would be a better choice? Why? And what would be the (cheaper?) equivalent of the 2N2222 if so?
Your comments appreciated. Thks!
Am trying to control the backlight of a 20x2 LCD character module with a PIC pin. The main purpose behind it is to conserve battery power, with the PIC switching the backlight off before going to sleep after a period of inactivity.
Have googled and found something like this as attached. My questions :
1) Is this how this works :
- During normal activity, I will output a "1" to pin C2 to turn on the LCD backlight.
- I don't have to output a "0" to pin C2 to turn off the backlight since the PIC will effectively not output anything to the pin (hence a "0") when it goes to sleep. When it wakes up, it goes back to the earlier state (ie a "1") and turns on the backlight. Is this correct?
2) Researching on the net led me to believe a MOSFET would be a better choice? Why? And what would be the (cheaper?) equivalent of the 2N2222 if so?
Your comments appreciated. Thks!