PCF8574M/TR not working

Hi

I've been working on a project in which I'm using a PCF8574 IO expander to read some buttons. When i run the I2C scanner program on the arduino it finds the chip on 0X20, but when I try to use a library to red the buttons the library fails to find the chip and when i bypass the code that stops the program from continuing after failing to find the chip i get random data. And yes I checked the I2C address in the code.
here is the link to the chip I'm using

Try without the library. PCF8574 is so easy to use, not sure what the benefit of a library is.

Post an annotated schematic showing exactly how you have wired this. Be sure to show all parts and connections.

After some research I managed to write some code that made it work I'm still uploading the schematic if anyone needs it for some reason
Schematic_halospa-hack_2024-02-27.pdf (139.3 KB)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.