blogs

Webpage controlled LEDs using ESP8266 and multiple MCP23017

14 August, 2022 SamkarTech

In this project you will create a webpage controlled LEDs using ESP8266. Two mcp23017 are also integrated in this project to enhance the input and output pins from where you can control extra 32 devices using 32 I/O ports of  two mcp23017.

Bread board connection

Component used in this project.

  • Wemos D1 mini-lite
  • Two- mcp23017
  • LEDs and resistors
  • Jumper wires
  • Breadboard

For this project you need to download the ESPwifi library and mcp23017 library.

  •  download the ESPwifi library
  • download mcp23017 library

As, we are going to use two I2C modules i.e. mcp23017 which has a default address 0*20. So, we need to change the address of one mcp23017 by varying the address pins. click here to know more about interfacing the multiple mcp23017 with arduino.

Connect the SCL and SDA pin of mcp23017 to the SCL and SDA pin of arduino respectively. Connect the VCC and GND pins of mcp23017 to 5V and GND of arduino.Also connect the one led on one mcp23017 and one on another.

For code :-

Get Full code here

Also read

Demo video

Tags

About author

SamkarTech

SamkarTech



0 Comments

No comments yet.


Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *