Matrix Portal Accelerometer/I2C Stopping

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
BiomimicryCafe
 
Posts: 2
Joined: Thu Jul 29, 2021 6:33 pm

Matrix Portal Accelerometer/I2C Stopping

Post by BiomimicryCafe »

hello all.

I've been working on a project involving a multifunctional led matrix embedded into a backpack.
I have a Neokey 1x4 module attached to the Stemma QT connector on the Adafruit Matrix Portal. The error I'm dealing with relates to the Matrix Portal's inbuilt accelerometer and I2C bus; If I upload a sketch to the Matrix Portal that uses either only the accelerometer or only the Neokey, everything works as intended. however, if I upload a sketch that uses both of these modules at the same time, the entire program stops at seemingly random intervals. I added a test function that sends a message to the serial monitor every time the main loop finishes and even that stops when the program crashes.
The display matrix is a 64x64 RGB LED Matrix.
The current power source for testing is a M1 Mac Mini.

A copy of my (rather messy) code is attached. (Arduino)

I'm wondering if this has something to do with my code, or damaged hardware, or something else entirely?

Any help is appreciated.
Regards, Roan/Bio.
Attachments

[The extension ino has been deactivated and can no longer be displayed.]


User avatar
BiomimicryCafe
 
Posts: 2
Joined: Thu Jul 29, 2021 6:33 pm

Re: Matrix Portal Accelerometer/I2C Stopping

Post by BiomimicryCafe »

SOLVED?
Hello all.
Update:
I couple days ago, I got an external I2C Lis3dh module.
I tried hooking it up to this project and altering the code to use it. The project has stopped crashing; I ran it for 30 min to test it.
I’m not sure what the original cause of the problem was or why this fixed it.
Regards,
-Roan/Bio

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

Return to “General Project help”