Trybotics Logo

NANO I2C IO Expander © CC0

DESCRIPTION

In my Fablab, we are working on the design of a four-channel programmable electrical power strip. We have built it around an ESP8266, and we need to measure four analog signals to calculate power consumption on each channel.

The ESP8266 has only one analog input, so we decided to add an ADC on the I2C bus of the ESP. We start to search for a breakout board with such component. We have found some reference as Adafruit ADS1115 or some with an MCP4725, for example. I often use Arduino Nano on my project and I thought it might be interesting to use a Nano V3 as an I2C slave to provide some analog inputs plus some supplementary digital I/O. This little board is very cheap, especially on the Chinese market place. So I searched on the web to find a existing library that can do this job (I am little lazy) and I didn't find it so I do it myself!

I provide here the result of this work.

Description:

Ard nano
Arduino Nano R3
×1
12002 04
Breadboard (generic)
not necessary but useful to test the result.
×1
D1 mini
Espressif Wemos D1 Mini
As I2C host controleur
×1
09590 01
LED (generic)
to test digital output
×1
08377 02 l
Resistor 330 ohm
To protect the LED
×1

Description:

Description:

In my Fablab, we are working on the design of a four-channel programmable electrical power strip. We have built it around an ESP8266, and we need to measure four analog signals to calculate power consumption on each channel.

The ESP8266 has only one analog input, so we decided to add an ADC on the I2C bus of the ESP. We start to search for a breakout board with such component. We have found some reference as Adafruit ADS1115 or some with an MCP4725, for example. I often use Arduino Nano on my project and I thought it might be interesting to use a Nano V3 as an I2C slave to provide some analog inputs plus some supplementary digital I/O. This little board is very cheap, especially on the Chinese market place. So I searched on the web to find a existing library that can do this job (I am little lazy) and I didn't find it so I do it myself!

I provide here the result of this work.

Description:

The github of the project
Provide all you need, source code of course for the nano and large amount of documentation. It also contain a ARDUINO library to use in the esp or other host. I tested it with an ARDUINO 2560

Description:

Fritzing schematic
Very simple ! Don't show led or other controlled io components.
esp8266andnano_gaC6pyOVzs.fzz


YOU MIGHT ALSO LIKE