+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 3
    Points: 1,444, Level: 8

    Join Date
    Aug 2015
    Posts
    162
    Helped
    7 / 7
    Points
    1,444
    Level
    8

    16x2 LCD damage? Hitachi HD44780 driver swapped pins

    Hey
    I have been connecting an LCD to Arduino but I made a mistake:
    Code:
    /*
      LiquidCrystal Library - Custom Characters
    
     Demonstrates how to add custom characters on an LCD  display.
     The LiquidCrystal library works with all LCD displays that are
     compatible with the  Hitachi HD44780 driver. There are many of
     them out there, and you can usually tell them by the 16-pin interface.
    
     This sketch prints "I  Arduino!" and a little dancing man
     to the LCD.
    
      The circuit:
     * LCD RS pin to digital pin 12
     * LCD Enable pin to digital pin 11
     * LCD D4 pin to digital pin 5
     * LCD D5 pin to digital pin 4
     * LCD D6 pin to digital pin 3
     * LCD D7 pin to digital pin 2
     * LCD R/W pin to ground
     * 10K potentiometer:
     * ends to +5V and ground
     * wiper to LCD VO pin (pin 3)
     * 10K poterntiometer on pin A0
     
     created 21 Mar 2011
     by Tom Igoe
     modified 11 Nov 2013
     by Scott Fitzgerald
     
     Based on Adafruit's example at
     https://github.com/adafruit/SPI_VFD/blob/master/examples/createChar/createChar.pde
    
     This example code is in the public domain.
     http://www.arduino.cc/en/Tutorial/LiquidCrystal
    
     Also useful:
     http://icontexto.com/charactercreator/
    
     */
    I have swapped D6 with D7 and now LCD is showing only rectangles.
    Is it damaged for good or is there a way to fix it? I don't know, maybe reset it somehow or idk... thanks in advbvance!

    •   AltAdvertisement

        
       

  2. #2
    Full Member level 4
    Points: 2,136, Level: 10
    xenos's Avatar
    Join Date
    May 2015
    Location
    127.0.0.1
    Posts
    212
    Helped
    82 / 82
    Points
    2,136
    Level
    10

    Re: 16x2 LCD damage? Hitachi HD44780 driver swapped pins

    No damage can be done by only swaping data pins.
    Eighter you need contrast voltage trimmer adjusted or you have a code error (most probably).
    Do you have one line of squares or two?


    1 members found this post helpful.

    •   AltAdvertisement

        
       

  3. #3
    Full Member level 3
    Points: 1,444, Level: 8

    Join Date
    Aug 2015
    Posts
    162
    Helped
    7 / 7
    Points
    1,444
    Level
    8

    Re: 16x2 LCD damage? Hitachi HD44780 driver swapped pins

    There was a bad solder point which stopped contacting EXACLY AT THE TIME I've swapped the pins.
    Topic is closed, but thanks for clarification.

    I had one line of scquare.s



--[[ ]]--