LCD wont work :(


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Normally the contrast likes things on the "-" side. If you have a pot wire it like the example in the PBP manual. If not just try it going to the zero rail (-).

    And PORTC 0-3 needs to be digital.

    ANSEL = %00000000
    That should turn all ADC off.
    I think...
    If I set Vo (contrast) to GND, I wont even get the black squares at start.

    ANSEL = %00000000 <- I try that, no change.

    If I use a voltmeter on PortC 0-3 all are logic low (0volt) idle. In start before the LCD initailized portC 0-3 are logic high (5volt), is that right?

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Your diagram in post #8 has the contrast pot wrongly wired. Correct the wiring as per the attached snap. Then adjust the pot till you have clean characters on LCD.

    Al.
    Attached Images Attached Images  
    All progress began with an idea

  3. #3
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aratti View Post
    Your diagram in post #8 has the contrast pot wrongly wired. Correct the wiring as per the attached snap. Then adjust the pot till you have clean characters on LCD.

    Al.
    im not using any pot at all. I have just put the Vo to +5volt with resistor between, if thats wrong I wouldnt seen those black squares, right?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Having the contrast wired wrong is the reason you see the black squares.

    Having the contrast going to 5+ is wrong. Sometimes going to (-) will work but the best bet is to use a pot like the manual and Al said. Then it is adjustable.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    I have just put a pot there, and now I either get black squares or nothing

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


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    For a quick contrast setting ... just use the forward voltage of a Si diode ( .5 to .6 v @ 1 mA ) to set Vo ... ( do not work with OLED displays !!! )

    simple and efficient ...

    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 " !!!
    *****************************************

Similar Threads

  1. first project, and yes, doesn`t work
    By bogdan in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 28th April 2009, 06:13
  2. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  3. cant get my Lcd to work using Pic18f452
    By civicgundam in forum General
    Replies: 13
    Last Post: - 7th October 2007, 00:13
  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. Why doesn't my code for 18f452 work on 18f252?
    By senojlr in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 23rd December 2005, 02:42

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