BMA423 Accelerometer- How to get Linear acceleration /gravity compensation

Hello Everyone,

I am using BMA423 with ESP32. I am trying to get the linear acceleration out of it. But i am struggling to find my way, since i am a newbie with the sensor, and it is not quite commercial as MPU models. I would appreciate anyhelp.

Thanks in Advance

@jremington could you help in this ?

For informed help, please read and follow the instructions in the "How to get the best out of the forum" post, linked at the head of every forum category.

i changed the headline, i am not sure if there is something i should change more. the code i am just reading the normal raw acceleration data. if you have any thoughts i happy to know. thanks for your reply

That is just an accelerometer. To compensate for gravity, you need to know the 3D orientation of the accelerometer to within about 0.1 degree accuracy, then subtract off the calculated gravity vector from the measured total acceleration.

This won't work with consumer grade sensors. One incomplete explanation of the problem can be found here: Using Accelerometers to Estimate Position and Velocity | CH Robotics

@jremington what i am in particular need to do, is to sense that there is a motion in a specific axis. i don't care the accuracy of the result.
the gravity compensation i want to do it, since my hand is not perfect ( i will move the hardware(smart watch) with my hands, so i don't want to get a value just because i titled my hand a bit.

I do not want to get position. and i can give up getting the velocity if this will lead to alot of hassle.

The best you can do is to sense acceleration. If you can figure out how to determine directly from the acceleration values whether the motion of interest is taking place, the problem is solved.

This has nothing to do with yaw values. If you want informed help, you will need to provide much more information about your project.

It is in a T-Watch 2020

@jremington as @claude_j_greengrass mentioned the accelerometer is integrated in a smartwatch ( [T-Watch 2020]), I am trying to capture the movement of my hands in the different axis, so I can control the movement of another hardware (a robot)

Have fun! Let us know if you get it to work satisfactorily.

@jremington Thanks!. but how can i at least remove the effect of tilting ?

I don't know what you mean by "the effect of tilting".

the compensation of angles,so that my hands shakings will not or produce values in the axis. or that by moving in the x axis, no values in y will appear due to my unbalanced hand

Sorry, I have no idea.

@rogerClark could you help?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.