MPR121 Capacitive touch hat: IRQ pin 37 (GPIO 26)

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
glucose36
 
Posts: 2
Joined: Fri Jul 23, 2021 1:52 pm

MPR121 Capacitive touch hat: IRQ pin 37 (GPIO 26)

Post by glucose36 »

Hey

I just got a Capacitive touch hat (this one exactly) and I realized a bit late that it uses the pin 37 (GPIO 26) for IRQ.
That information is not shown on pinout.xyz, and I had to dig down to the bottom of this page to discover the use of this pin by this HAT.

The thing is that I already use GPIO 26 for another purpose, and I would like to know if I can re-route the IRQ to another pin (for example by breaking the highlighted bridge on the PCB and re-wiring it), or if I can simply get rid of it, as it does not seem necessary (see examples with Arduino or non-raspberry boards).

In advance, thanks!

Glucose

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: MPR121 Capacitive touch hat: IRQ pin 37 (GPIO 26)

Post by adafruit_support_carter »

Yep, I think you generally understand the options. The MPR121 IRQ pin is routed to #26 by default. You can cut the trace here to remove that:
caphat_irq.jpg
caphat_irq.jpg (148.96 KiB) Viewed 62 times
If you wanted to re-route it, you could use the solder pad next to the jumper to wire the IRQ line somewhere else. Or, you can just not use the IRQ feature and simply poll the MPR121 for any touch events.

User avatar
glucose36
 
Posts: 2
Joined: Fri Jul 23, 2021 1:52 pm

Re: MPR121 Capacitive touch hat: IRQ pin 37 (GPIO 26)

Post by glucose36 »

Just tried that a few hours earlier and it worked as expected. Went here to say so and saw your message.
Thanks for your answer and picture!

I my case IRQ is not necessary as I check for touches only a few specific time with a CPU-friendly time period (about 0.1s).

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”