Hey, i've built an inclinometer using an MMA8452 accelerometer. And it works.
But, i would now like to add the ability to zero out the device and measure the difference in tilt from that point.
I first read the values of roll and pitch from the desired position and then subtract that from any new measurement.
As expected this creates issues when the zeroing point is close to the 180 degree mark. Is there a way to make something like this work with only one accelerometer?
attached are the equations i am using
thanks
But, i would now like to add the ability to zero out the device and measure the difference in tilt from that point.
I first read the values of roll and pitch from the desired position and then subtract that from any new measurement.
As expected this creates issues when the zeroing point is close to the 180 degree mark. Is there a way to make something like this work with only one accelerometer?
attached are the equations i am using
thanks
Attachments
-
10.9 KB Views: 27