
Adapted to be as simple as possible by user Krodal Version 2, Juni 2012, Using Arduino 1.0.1 This program (or code that looks like it) To find it you need to upload the sketch called I2C scanner. PCF8574 Wiring Diagram With Arduino or ESP8266 based MCU Board PCF8574 Wiring diagram with arduino PCF8574 Wiring diagram with NodeMCU PCF8574 Wiring diagram with WEMOS PCF8574 With Arduino or ESP8266 based MCU Board CodeĪfter wire the module with Arduino, we need to find the address of the module first. For the red one, you can change the address by switching the little slide switch.Īnd For this blue module, you can change the address by moving the jumper, And for other pins, I think it same as the red one. There are two types that are popular on the market. But this module is used as an IO expander. This is actually the same IC that we used for the I2C LCD backpack. This module can give you 8 more pins for each module. And we also try to use more than one module to a single Arduino board so we got 16 additional pins. We also test the output by blinking LEDs and a relay then test the input of this expander module by reading input from a button and an infrared sensor. I will demonstrate it with Arduino UNO and an EPS8266 board WEMOS. We will learn to add more pins to our Arduino board using the PCF8574 module.

You need more pins for your project to drive something. Imagine you build a project and then you just run out the pins.
