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
Read next

Exploring a failed filtration pump timer

Electronics fail and very often they fail because of reasons that are not that obvious. Sometimes they fail controllably, where a component...

You might also enojy this

Wire loop buzzer game

In this post, I will show you how I build a wire loop buzzer game for my kids. The wire loop game is made with an open circuit wire loo...