MCP23017 port expander controlling LEDs via Arduino I2C

Introduction

This experiment demonstrates how to use the MCP23017 I2C port expander with an Arduino to control multiple LEDs using only two I2C pins.

Materials Required

No Ads Available.

Circuit Diagram

The MCP23017 I2C expander is connected to the Arduino via I2C. The LEDs are connected to the expander's GPIO pins and can be controlled with the Arduino.

Steps for the Experiment

  1. Wire the MCP23017 to the Arduino using the I2C interface (SCL, SDA, VCC, GND).
  2. Connect the LEDs to the GPIO pins of the MCP23017 expander.
  3. Upload a program to the Arduino to control the LEDs through the MCP23017 expander.

Explanation

The MCP23017 allows for the expansion of GPIO pins on the Arduino, allowing you to control multiple LEDs or other devices using only the I2C interface.

Results and Observations

Contact Us

If you have any questions or inquiries, feel free to reach out to us at Microautomation.no@icloud.com .

Follow our Socials for the newest updates!