MPR121 With the MKR 1010

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rbrambila
 
Posts: 2
Joined: Thu Sep 20, 2018 2:03 pm

MPR121 With the MKR 1010

Post by rbrambila »

Hello,

I'm trying to port over a simple touch sensor project from the Uno to a new MKR WIFI 1010 I just bought and can't seem to get it to work. I'm guessing the issue is with the compatibility of the MPR121 library and my new board. Whenever I include the MPR121 library in a simple serial write or led blink sketch, I lose my COM port and it seems to crash the board.

Any workarounds or other library I can use to interface with the MPR121 12-key Cap Touch Sensor on my MKR 1010?

Best,
Roberto

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: MPR121 With the MKR 1010

Post by Franklin97355 »

What code are you trying to compile and what errors are you getting when you compile and upload?

User avatar
rbrambila
 
Posts: 2
Joined: Thu Sep 20, 2018 2:03 pm

Re: MPR121 With the MKR 1010

Post by rbrambila »

Figured it out... My issue was that A) I had a ported/modified MPR121 library I was reusing (not the latest, official Adafruit repo) and B) I had to swap out some definitions for bit-shifting. I'm now able to re-build my sketch and it's reading the sensor values.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: MPR121 With the MKR 1010

Post by Franklin97355 »

Thanks for posting your solution.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”