Connect with us

16 x 2 alphanumeric LCD display is not working

Discussion in 'Microcontrollers, Programming and IoT' started by shindehari, Nov 3, 2018.

  1. shindehari

    shindehari

    11
    1
    May 19, 2014
    Hi,

    I have successfully tested the 16x4 LCD display with my C code. I was trying to use the same code for 16x2 LCD display and it is not working. I am using same hardware for 16x2 and 16x4 LCD display.

    Please let me know is there anything need to be changed for 16x2 LCD display.
     
  2. BobK

    BobK

    7,380
    1,559
    Jan 5, 2010
    Not working is not very descriptive.

    Bob
     
  3. Harald Kapp

    Harald Kapp Moderator Moderator

    8,687
    1,691
    Nov 17, 2011
    That's not possible. a 2 line display has hardware differebt from a 4 line display.
    Let us at least know the types (part numbers) of your displays .
     
  4. kellys_eye

    kellys_eye

    4,289
    1,143
    Jun 25, 2010
    The 2 and 4-line displays are via the same pinout connector but use different (Additional) registers for the different lines in use.

    The OP may simply have failed to readjust the contrast setting for the different devices.
     
  5. shindehari

    shindehari

    11
    1
    May 19, 2014
    Thanks for the reply,

    Please find attached display connector hardware for LCD display.

    LCD display model number is LCD1602
     

    Attached Files:

  6. BobK

    BobK

    7,380
    1,559
    Jan 5, 2010
    Are you using the busy signal or using delays between commands? If the latter, up the delays a bit and see if it works any better.

    Bob
     
  7. hexreader

    hexreader

    99
    16
    Apr 21, 2011
    I reckon kellys_eye hit the nail on the head.

    Pin 3 should be connected to a contrast control pot, not left open.
     
  8. kellys_eye

    kellys_eye

    4,289
    1,143
    Jun 25, 2010
    Your wiring diagram shows pin 3 as unconnected. This should have a variable DC voltage (from the wiper of a 10k pot connected across the 5V supply) to allow adjustment of the screen contrast.

    It's a simple fit and ESSENTIAL for correct operation.

    Hmmmph - typing on a tablet is sssllloooowwwwww!
     
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.