MMA8451 Problem reading values on Z-Uno chip

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
TheRafal
 
Posts: 5
Joined: Sat Oct 24, 2020 2:33 am

MMA8451 Problem reading values on Z-Uno chip

Post by TheRafal »

Hi, i made a new post because i can't replay to my old one.

I've a Z-uno based system that use the MMA8451 component. But since i use the MMA8451 with the Zuno, it doesn't retrieve the good values, like that :

Code: Select all

    22:37:32.189 -> X: 962 Y: -6339 Z: 2561
    22:37:32.236 -> X: -62 Y: -6083 Z: 3073
    22:37:32.284 -> X: 962 Y: -7107 Z: 3073
    22:37:32.284 -> X: -62 Y: -5571 Z: 2817
    22:37:32.331 -> X: 962 Y: -5827 Z: 2817
    22:37:32.380 -> X: -62 Y: -6595 Z: 2817
    22:37:32.380 -> X: 962 Y: -5571 Z: 3841
    22:37:32.429 -> X: -62 Y: -6595 Z: 2817
    22:37:32.429 -> X: 962 Y: -6851 Z: 2817
    22:37:32.476 -> X: -62 Y: -6851 Z: 3841
    22:37:32.524 -> X: 962 Y: -5827 Z: 2561
    22:37:32.524 -> X: -62 Y: -6851 Z: 3585
    22:37:32.570 -> X: 962 Y: -6083 Z: 3841
    22:37:32.570 -> X: -62 Y: -5827 Z: 3329
    22:37:32.618 -> X: 962 Y: -6083 Z: 2561
    22:37:32.667 -> X: 962 Y: -6083 Z: 2561
The problem is the bit to bit conversion made here https://github.com/adafruit/Adafruit_MM ... 1.cpp#L177, maybe a problem with the significant byte ?

My circuit is simple on a dev board, Z-uno, MMA8451, thats all ^^ some wire also of course ^^

The CPU is special for Z-Uno and use SDCC compiler

If someone of the Adafruit team can help me to debug this and make the 8451 compatible with the Zuno.

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

Return to “Other Arduino products from Adafruit”