RobTillaart / PCF8575

Arduino library for PCF8575 - 16 channel I2C IO expander
MIT License
74 stars 10 forks source link

One off my board isn't run #36

Closed pierrotm777 closed 9 months ago

pierrotm777 commented 9 months ago

Hello again Rob,

I have a curious issue with one off my two board. Several boards exist, a red or a blue. The blue has a level converter from 5v to 3,3v but i use the pin VDD for the 5V. The red has no level converter and no pull-up. I have added two 10k resistors. I use this code for check my two board. BURC_16Switchs_Test2.zip The blue is running very well but not the red. The isConnect return me OK for the two boards. Do you know this difference ? Thanks for your help.

Pierre

RobTillaart commented 9 months ago

Try lower the pull ups to 4k7 or even 2k2.

RobTillaart commented 9 months ago

learn all you need to know about i2c and more - https://www.gammon.com.au/i2c

pierrotm777 commented 9 months ago

Hello Rob, I have replaced the 10k by 2 4.7k with the same issue. Now, if i add a pull-up on the P0 pin, this pin is usable as input. Does exist a way for setup the pins as input with pull-up ?

RobTillaart commented 9 months ago

Not that I know, The detailed behaviour of the chip is described in the datasheet, furthermore you need to check the schema of your board to understand how the chip is used. That can be different per board.

RobTillaart commented 9 months ago

Any progress to report?

pierrotm777 commented 9 months ago

Hello Rob,

Yes, i have found that my pcf8575 red board is a PCF8575C version. In input mode, it need 16 pull-up and that solve my issue with this component. Without pull-up, the input are always set to a low state.

Thanks again for your help:-)

And I wish you a Happy New Year 2024.

Pierre

RobTillaart commented 9 months ago

Thanks for reporting back, That is a good insight to start the new year!
I'll make a not of it in the readme file so it will pop up in a next release (not planned).

And I wish you a Happy New Year 2024.

Same to you!

RobTillaart commented 9 months ago

Q: do you have a link to a datasheet of the PCF8575C ? found only an old one from 1999 Philips

pierrotm777 commented 9 months ago

No sorry. I have just find some links about pcf857c witch need pull-up.

munkerench commented 4 months ago

Oddly found the data sheet here https://www.nxp.com/docs/en/data-sheet/PCF8575C.pdf

pierrotm777 commented 4 months ago

Thank you for your find

RobTillaart commented 4 months ago

Added the datasheets PCF8575 and PCF8575C to this repo