Arduino as I2C client

Hi, There are examples about connecting arduino to an I2C chips. What I need is to code arduino to behave like a I2C client. Is there any example?

Regards, Nuri Erginer

Hi Nuri, if you haven't already done so, have a look at the Wire library example sketches distributed with Arduino.

The I2C ends are usually referred to as master and slave, what is it you want your Arduino to do?

What I want to code is a rotary encoder counter. It will count the encoder pulse and send to a master ic via I2C when requested

Regards, Nuri Erginer

Have a look at the slave_sender example sketch. You would need to flesh out the requestEvent() function to send the encoder count.