LCD SR3W not working Arduino uno

Issue #70 closed
Anonymous created an issue

Hi

Ive tryed to upgrade an old project with the new licuidcrystal lib

i'm using the schematic shonw here http://playground.arduino.cc/Code/LCD3wires

the only output i'm able to get is some garbaje scrolling

Ive changed the library to my pin setup

LiquidCrystal_SR3W_4094.cpp

#define EN 3  // Enable bit
#define RW 2  // Read/Write bit
#define RS 1  // Register select bit

#define D4 4
#define D5 5
#define D6 6
#define D7 7

here is a link to the chip used http://www.nxp.com/documents/data_sheet/HEF4094B.pdf

in 4 bit mode i can get it working

ty

Comments (10)

  1. TurBoss

    ok figured that i need to setup my pin config in the constructor in the arcuino code not in the lib hehehe

    but can't get any output will investigate harder

    #define   STROBE 12
    #define   DATA 11
    #define   CLOCK 10
    
    LiquidCrystal_SR3W lcd(DATA, CLOCK, STROBE, 1, 2, 3, 4, 5, 6, 7);
    
    LCD *screen = &lcd;
    
  2. Francisco Malpartida repo owner

    As you've mentioned you should be calling the constructor to use the library, not hack the code within it. To do so you will have to use:

       LiquidCrystal_SR3W(uint8_t data, uint8_t clk, uint8_t strobe, 
                          uint8_t En, uint8_t Rw, uint8_t Rs, 
                          uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7 );
    

    where data, clk and strobe should be mapped onto the pins of your controller which will control the data, clock and strobe pins of the shift register. The rest of the pins, you will have to configure them to map your shift register pins to the LCD. So if IO1 in the shift register is connected to En in the LCD, the En value should be 1 in the call above. If IO2 of the shift register is connected to R/W of your LCD, you should put a value of 2 in the call above.

  3. TurBoss

    my lcd is a chinnese copy of the hd44780 (they said compatible XD) because the original was broken (very cracked xD)

    well thank you so much

    will investigate

  4. Log in to comment