how to control the contrast of GLCD


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default how to control the contrast of GLCD

    Hi Guys , can someone point me toward a link to info on how the pic can control of the contrast on a glcd

    the glcd uses a internal gen -10.5v on Vo , with a 10k pot to Vcc ( 5v) , wiper connected to Vlcd

    regards

    sheldon



    [IMG]
    DG-24064-09 _ P234.pdf

    [/IMG]

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    Hi Sheldon,
    What's the voltage at VLcd when you have good contrast? If the voltage is positive then you can drive it directly with the PIC using HPWM and a simple filter. It won't be that easy if the voltage is actually negative, which I suspect it is. But in that case you may look into replacing the mechanical pot with a SPI or I2C controlled potentiometer chip. I'd double check that the datasheet for the pot-chip regarding min/max voltage.

    /Henrik.

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    thanks hendric the voltage is about -6.0 to -7.5v on the wiper relative to ground for visual of the chrs ,

    is there a way to just switch on/ off a mosfet which is connected from the GLCD negative output ( Vo) to the VLCD pin and adjust the voltage applied depending on the time the Mosfet is on using PWM ? ????

  4. #4
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    Hi Sheldon,

    You obviously can't achieve a negative voltage directly from the PIC so you will need some external circuitry (including a negative supply greater than -7.5V).
    It should be possible to drive an inverting op-amp, with a gain of say 2, via Henrik's filtered PWM signal such a positive input will result in a negative voltage at the GLCD contrast pin.

    Just a thought...

    Cheers
    Barry
    VK2XBP

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    pwm through an opto coupler would be easy, driving things on the neg bus from the positive side are awkward opto's make life easy

  6. #6
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    the glcd generates the negative supply so using an opto transistor connected to the negative Vo output of the glcd to the glcd VLCD input ( contrast control ) is possible , not sure how linear an opto fet would be to adjust the voltage for the contrast though ,
    I had looked at a digital pot , but seems that the voltage cant be negative on the resistor divider network , in respect to the chips supply vdd and grd rails.

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    Hello,

    Maybe something like this using a pnp in a open collector configuration. Much like we control a 12v relay with a NPN and a 5v mcu. Set the PWM to 50% duty and adjust the contrast pot to good level. Now you should have a +/- contrast changing the duty. Basic idea only. Might want to add a resistor and cap to the pwm line to smooth it out.


    Name:  NegContrast.png
Views: 5508
Size:  4.4 KB

  8. #8
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    Hi Mark , thats would be worth a try , i am thinking perhaps reverse in the transistor control to the negative voltage , as it appear that to see the char on the screen the pot is biased toward the negative supply , if that works why is it i cant find an example on the web doing this ???

  9. #9


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    Hi Longpole,

    You can't switch the negative voltage without a voltage translator. It is approximately -10v below the pic ground vss.
    Think of the contrast pot as a simple voltage divider connected between +5v and -10v or 15v total.

    Using a pnp and pwm you can adjust the positive node of the voltage divider up or down by 5 volts. This in turn moves the center point of the voltage divider (Vlcd) up or down. It can be in negative voltage range as long as the pot is adjusted towords the -10v end. So in theory it should control the contrast. Hope you can make it work.

  10. #10
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: how to control the contrast of GLCD

    ill try it on the weekend see how effective it is

Similar Threads

  1. Easy LCD Contrast
    By Melanie in forum Schematics
    Replies: 8
    Last Post: - 6th January 2015, 00:46
  2. Samsung 5'' GLCD 320x240 on sale, who knows control it?
    By HYETİK in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th April 2009, 21:38
  3. LCD contrast
    By Demon in forum General
    Replies: 3
    Last Post: - 21st March 2009, 16:19
  4. Controlling LCD contrast?
    By jblackann in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th December 2006, 02:31
  5. How to change contrast LCD?
    By MCU Destroyer in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd July 2005, 13:16

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