Page 1 of 1

mcp23017 is not working properly

Posted: Wed Nov 03, 2021 8:54 am
by man9495
Hi Folks!!
Hope you all are doing well!!!

I am using GPIO extender(mcp23017) with esp32. With that GPIO extender, I have attached some relays to it.

Functionality:- Whenever the hardware gets interrupt, relay with respect to that interrupt turned on.

Issue:-But in between sometimes, automatically all the relays get turned on even without any interrupt.
Even in the software, all the relays will never get turned on at same time. But still sometimes in between all the relays gets turned on without any interrupt.

Library used:- https://github.com/adafruit/Adafruit-MC ... no-Library

Components using:-
1) esp32 devkit
2) esp-idf 4.0.1

Thanks in advance! :) :)

Re: mcp23017 is not working properly

Posted: Fri Nov 05, 2021 5:02 am
by username
Do you have a schematic of how you wired your relays to the mcp23017 ?
Sounds like the mcp23017 might be resetting.

Re: mcp23017 is not working properly

Posted: Tue Apr 18, 2023 1:17 am
by Bourri
Hello,
I am having the exact same issue with the esp32 and mcp23017, after some commands, it becomes irresponsive and sometimes, all the relays related to it activate at the same time, which i find a very strange behaviour,

I changed all the hardware with a new one, nothing has changed.

Did you find the issue ?

Thank you in advance