Controlling LCD B/L


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    The backlight of an LCD generally cannot be controlled through the digital interface.

    You will need a FET (I use an FDC610) with the source connected to GND, the drain connected to the backlight (-) terminal, and the backlight (+) terminal connected to 5V. Your LCD may require a 5 ohm .5W resistor between the (+) terminal and 5V to limit the backlight current (check the datasheet).

    Connect a 10K resistor between the FET gate and GND and also connect
    the gate to a PIC output pin. Whenever you want to turn on the backlight, bring the output pin high.
    Charles Linquist

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

  3. #3
    Join Date
    Jan 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Hi Melanie,
    Do I have to use pwm for lcd lihgt ?

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink Which Goal ???

    Hi,

    As I do not understand your comments and variables ( Turkish ??? )

    One good question would be :

    What do you want to do ???

    - on/off control ??
    - dimmer ??

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Well, you don't have to use PWM... but if you do, then you will have control over the Brightness and will be able to adjust for your own comfort level. If you have two PWM channels available, then you can do the same thing for your LCD's Contrast. Search the forum for Easy Contrast if you want to do that.

    If you just want to turn your LCD's Backlight ON/OFF then any I/O Channel will do, but you must know how much current the Backlight will require... if it requires more than 25mA, then you need an external Driver of some sort.

  6. #6
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    If you just hook things up like I describe above (using an N-channel, logic-level FET driver) all you have to do is set the pin to "1" to turn the backlight ON, and set it to "0" to turn it off.

    PWM is not required unless - as Melanie says, you want to control the brightness of the backlight. And I have never seen a backlight that takes less than 200 mA.
    You will not be able to drive the backlight directly from a PIC pin.
    Charles Linquist

  7. #7
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Actually Charles, the 'Cool Blue' displays take about 20-25mA to give you more than adequate illumination (as they only have a single high-intensity white LED performing the Backlight - rather than a whole bank of Yellow or Green LEDs). You can drive those directly from a PIC pin... and they've been around for about five/six years now...

    See post #12 here...

    http://www.picbasic.co.uk/forum/show...ight=cool+blue

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 20:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 20:54
  3. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 12:43
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 15:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts