Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i2c lcd_pcf8574 not working
#1
i got this issue

[22:24:38][C][lcd_pcf8574:024]: PCF8574 LCD Display: 
[22:24:38][C][lcd_pcf8574:024]: Columns: 20, Rows: 4 
[22:24:38][C][lcd_pcf8574:028]: Address: 0x27 
[22:24:38][C][lcd_pcf8574:029]: Update Interval: 0.5s 
[22:24:38][E][lcd_pcf8574:031]: Communication failed 
[22:24:38][E][component:088]: Component display is marked FAILED: 

this my config


esp32:
  board: esp32dev
  framework:
    type: esp-idf
    
...............



i2c:
  sda: GPIO4
  scl: GPIO16
  id: i2c0
  scan: true
  #frequency: 100kHz
display:
  - platform: lcd_pcf8574
    dimensions: 20x4
    i2c_id: i2c0
    address: 0x27
    update_interval: 500ms
    lambda: |-
      it.strftime(0,0, "  %d-%m-%Y %H:%M", id(sntp_time).now());
      it.printf(0,1, "T Est %.1f-T Int %.1f", id(tt_ext).state, id(tt_int).state);
      it.printf(0,2, "GIARD %s  SCALE %s", id(giardino).state  ? "ON" : "OFF" , id(scale).state  ? "ON" : "OFF");
      it.printf(0,3, "GIARD %.0f  SCALE %.0f", id(giardino_work_time).state, id(scale_work_time).state);


--------------

what's wrong?
I already changed more displays , try invert sda/scl, try 3.3v and 5v also...
Reply
#2
found firts problem, the right address is 0x3F... the error now is resolved but in the screen don't see any chars...
have you tested the same hardware before?
regards

found firts problem, the right address is 0x3F... the error now is resolved but in the screen don't see any chars...
have you tested the same hardware before? have to introduce some resistor in the i2c bus?
regards
Reply
#3
everythinghs ok now.. sorry for this posts... changed contrast trimmer and all is ok. gread KC868-A2 I love you
Reply
#4
ok, good.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)