Page 1 of 1

Unable to get interrupt polling example to work on MCP23017 module

Unread postPosted:Sun Dec 06, 2020 10:07 pm
by elbyman1
I'm trying to get the interrupt polling sample code on the MCP23017 module (DFR0626) page to run. I have the module wired to an Arduino Uno with this wiring: D -> A4, C -> A5, + -> 5V, - -> GND. The button input example is working with this wiring (button is connected to GPA0, and to VCC on the module), except that "Button Press" is printed when the button is open, and nothing printed when the button is closed. When I try to run "Sample Code- Interrupt Polling" with exactly the same wiring, I get no printout at all. I have tried the button on GPA0, GPA1, GPB6 and GPB7 with button connected to VCC, and also with button connected to GND. None of these produce any output. Help!!

Re: Unable to get interrupt polling example to work on MCP23017 module

Unread postPosted:Thu Jan 21, 2021 10:06 am
by nana.wang
Hi, sorry for the late reply.
We are checking it and will feed you back ASAP.

Re: Unable to get interrupt polling example to work on MCP23017 module

Unread postPosted:Thu Jan 21, 2021 10:34 am
by nana.wang
elbyman1 wrote:
Sun Dec 06, 2020 10:07 pm
I'm trying to get the interrupt polling sample code on the MCP23017 module (DFR0626) page to run. I have the module wired to an Arduino Uno with this wiring: D -> A4, C -> A5, + -> 5V, - -> GND. The button input example is working with this wiring (button is connected to GPA0, and to VCC on the module), except that "Button Press" is printed when the button is open, and nothing printed when the button is closed. When I try to run "Sample Code- Interrupt Polling" with exactly the same wiring, I get no printout at all. I have tried the button on GPA0, GPA1, GPB6, and GPB7 with a button connected to VCC, and also with a button connected to GND. None of these produce any output. Help!!
Hi, please try finding codes about Arduino I2C address scanning on the internet.
Then upload it to your Arduino UNO and confirm whether the corresponding address can be detected by the Serial Port.
So that we can confirm whether the module is normal.
Please feel free to contact [email protected] for any inquiries.