How to make an Arduino custom I2C slave sensor/device

In this video, I’m exploring the idea of having your own I2C slave devices and sensors where a helper Arduino is used just for the sensor and the main controller does all of the control logic.

In my case, the slave I2C device is a dedicated controller for a motor speed controller (AC dimmer) that monitors the AC zero-crossing point and it listens on a specific I2C address for the speed at which the motor should run.

By using two separated Arduino Nanos, I can utilize the interrupt pins on both controllers where the one on the slave device will monitor the zero-crossing signal and the other one can be used for interfacing with the UI through a rotary encoder.

Leave a Comment