Go Down

Topic: connect pushbutton and led using I2C (Read 2 times) previous topic - next topic

tsudakazuki

thank you very much Grumpy_Mike :p

kunalk

hello,
i refere following tutorial for i2c co mmunication in arduino uno
http://garagelab.com/profiles/blogs/tutorial-arduino-i-o-port-expander-with-pcf8574

i write data to pcf8574p is 0, then read data from it but getting 255(11111111)
i dont know how i can do the above tutorial work for me

thanks

Grumpy_Mike

You need a pull up resistor on each of the I2C lines. That tutorial has none.
Do the LEDs change state?

kunalk

hello,
i able to write data on pcf8574p port, but unable to read port data of pcf8574p using wire.h wire library in i2c interface. using arduino uno.

Nick Gammon


Go Up