xreef / PCF8574_library

PCF8574 library. i2c digital expander for Arduino, Raspberry Pi Pico and rp2040 boards, esp32, SMT32 and ESP8266. Can read write digital values with only 2 wire. Very simple to use and encoder support.
Other
216 stars 62 forks source link

Strange issue #10

Closed RadioDJ closed 5 years ago

RadioDJ commented 5 years ago

Hi. I have a strange behavier. I have put all to output with led connected and it works, but when I start up my project all the leds are flashing 8 time with just a small light. Not full lightning. This only happend when I put power to it the first time. If I disconnect the power and then put the power back it does the same thing. All other things is working well. Have I done something wrong??

xreef commented 5 years ago

Hi, can you put here the code and schema. I start a personal blog, if you have troubleshooting to put here, you can try to put the data here https://www.mischianti.org/forum/forum/xreef-pcf8574_library/ . Bye

RadioDJ commented 5 years ago

The code I tested with is the BlinkOnPin. The schema is that I found on your page. I'm using a PCF8574P.

This is not closed yet.

RadioDJ commented 5 years ago

The code I tested with is the BlinkOnPin. The schema is that I found on your page. I'm using a PCF8574P.

xreef commented 5 years ago

Can you try with external power source please?

RadioDJ commented 5 years ago

I have now tried with external power and it works much better. Only one flash is coming. Before I tried with several computers, but all of them flash on all ports 8 times. With external only 1 time. I have tried with only 1 port active but the same result. 8 times with usb and 1 time with external.

xreef commented 5 years ago

Try add a 10uF capacitor to the power source, without external power source also. Keep in touch.

RadioDJ commented 5 years ago

Already tried that. No difference. Same problem. Tried with up to 220u.

xreef commented 5 years ago

It's possibile that the IC don't have sufficient ampete to control all device, pcf have very low amperage, normally It's control trsnsistor.

RadioDJ commented 5 years ago

In that case I wonder. I have the same problem when I'm using only 1 led. How do you initiate the pcf? Do you initiate all the pins at once or one pin at the time? Or is there anything else in the startup that can do this?

The only time the problem is shown, is at power up. After everything is alright, I can light all the led without any problem.

xreef commented 5 years ago

The pins are initialized all to low with one write. Than start working with digitalWrite.

xreef commented 5 years ago

Inactivity

RadioDJ commented 5 years ago

Hi. I have checked it out put I can't figure out what it is. I shall try some more things otherwise I must except this behavier.