How to make an Arduino custom I2C slave sensor/device

Using an Arduino to create an I2C slave device for a specific sensor or custom device.
Jul 11, 2021 — 1 min read — Arduino

How to make an Arduino custom I2C slave sensor/device

When a software project gets complicated beyond a certain complexity, we tend to separate it into different modules where each module has its own dedicated purpose.

In my latest experiment, I tried to do the same with an Arduino, where I separated the AC dimming module with a dedicated controller and I then integrated it back to the main project with the use of the I2C protocol.


By using an additional Arduino, we definitely increase the cost of the project, but we get the added benefit of releasing some of the used pins so they can be used for other tasks, and we also reduce the work that the main controller needs to complete on each cycle.

You can check the video below for more details and also the project Instructable for all the connection and code instructions.


Tools and materials used in the video:


i2c diy arduino dimmer experiment project basic electronics
You might also enojy this

Garage remote battery replacement

One of the first reasons why a remote stop working is an empty battery. These things are small and do not hold a lot of charge. When the rem...