LCD Backlight Proper Wiring


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113

    Default LCD Backlight Proper Wiring

    What would the proper way to wire the LCD backlight to a port and setting that port so that it comes on. Currently I wired the backlight to +5v on the plus side and the minus side of the LCD backlight to portd.0. The LCD backlight is an LED. So to turn the backlight on I set LOW PORTD.0 which I understand and to turn it off I set it HIGH. This method puts +5vdc on the LED at all times. Of course it does not come on until I set portd.0 low which is understandable. I'm just trying to figure if this is standard way to hook something like this up. Can a variable be set to HIGH to end this confusion?
    I'm sure this is a dumb simple question but I'll ask anyway.
    Example:
    _OFF = High
    _ON = LOW
    portd.0=_on
    Thanks
    David

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DavyJones View Post
    What would the proper way to wire the LCD backlight to a port and setting that port so that it comes on. Currently I wired the backlight to +5v on the plus side and the minus side of the LCD backlight to portd.0. The LCD backlight is an LED. So to turn the backlight on I set LOW PORTD.0 which I understand and to turn it off I set it HIGH. This method puts +5vdc on the LED at all times. Of course it does not come on until I set portd.0 low which is understandable. I'm just trying to figure if this is standard way to hook something like this up. Can a variable be set to HIGH to end this confusion?
    I'm sure this is a dumb simple question but I'll ask anyway.
    Example:
    _OFF = High
    _ON = LOW
    portd.0=_on
    Thanks
    David
    Hi David,
    It is not uncommon for devices to be "hot" and the controller provides ground, usually through a transistor (I am thinking back to my days as a mechanic) even those pretty excuse me lights on the top of opieDog's G ride are done that way. What you can do rather than using PORT HIGH to turn it off is tristate the port by TRIS 1 . The downside to this is you now have a noise antenna, so use plenty of bypass filters, caps, choke . . .
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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


    Did you find this post helpful? Yes | No

    Default

    The way you have it wired is fine... providing you have a current limiting Resistor in series somewhere.


    Backlight var PortD.0

    LightON con 0
    LightOFF con 1

    .. ..

    Backlight=LightON

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Some of the LCD backlights I've come across will draw 100ma or more depending on brightness. Big 4x20 displays.

    You might want a transistor in there, since the PIC pin can only sink 25ma.
    <br>
    DT

  5. #5
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default specs on backlight

    Thanks everyone.
    Odd the specs don't say what ma the backlight will draw/require or I am blind, probably blind....

    It just says typical voltage 4.2 to 4.6v

    Without knowing the current it will draw what would you suggest for a limiting resistor value?
    thanks
    David

  6. #6
    Join Date
    Jan 2008
    Location
    Pennsylvania
    Posts
    113


    Did you find this post helpful? Yes | No

    Default Limiting resistor

    I just got off the phone with New Haven display and they said that it is typically going to draw between 120 and 150ma for this backlight. He also said that on the back if R7 has a resistor then I don't need a current limiting resistor just hook up 5vdc to it and I will be fine. So I guess that answers that?
    Thanks
    David

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, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. Easy LCD BackLight
    By Melanie in forum Schematics
    Replies: 0
    Last Post: - 17th October 2004, 13:18

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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