Smart Home Automation Forum
i2c lcd_pcf8574 not working - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A2 (https://www.kincony.com/forum/forumdisplay.php?fid=43)
+--- Thread: i2c lcd_pcf8574 not working (/showthread.php?tid=8322)



i2c lcd_pcf8574 not working - simdollaro - 07-17-2025

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...


RE: i2c lcd_pcf8574 not working - simdollaro - 07-18-2025

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


RE: i2c lcd_pcf8574 not working - simdollaro - 07-18-2025

everythinghs ok now.. sorry for this posts... changed contrast trimmer and all is ok. gread KC868-A2 I love you


RE: i2c lcd_pcf8574 not working - admin - 07-18-2025

ok, good.