ESP32 and MCP23017 interrupt help


Dear all,

I am uncertain about how to use the interrupt pins A and B of the MCP23017. I would like to use it for Arduino or ESP. Kindly look at my schematic and comment where went wrong.

Thanks.

INTA must not be connected to your button. INTA is an Output set by the MCP23017. Your button must be connected to an input pin of MCP23017.
And of course the MCP must be connected to the I2C interface of the controller.

The button output connects to example GPIO 0 of MCP23017. The INTA of MCP23017 connects to example GPIO 33 of ESP32. MCP23017 SDA and SCL connect to I2C of ESP32. Is correct?

Yes, that should work. Don't forget the pullups at SDA and SCL and all Gnd connected together.

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.