I'd like to know if I understand acclerometera correctly

Hi,

I’m currently looking at buy a magnetometer and an accelerometer for my robot. But first, I’d like to know if I understand the concept correctly.

The accel would help me determine the tilt of my robot from front to back and right-left. I could then detect what kind of terrain it is on.

This would based on the fact that the y axis should always show 1g. And depending on the tilt, this value would be split over multiple axis.

But if the robot is moving, then I will see other accelerations on the axis so I will no longer be able to compute the tilt. Correct?

Also,
If I know the tilt, then I should be able to get an accurate magneto reading by projecting the 3 axis values of the magneto onto a plane that would be at parallel to the ground by using the angle of the tilt I got from the accellerometer. Is that how that works?

1 Like

HI @pskdn290 ,

Have you considered using IMU sensor which has an integrated accelerometer, gyroscope, and magnetometer.

For example this one: https://www.robotshop.com/products/bno055-9-dof-absolute-orientation-imu-module

BNO055 is a 9-axis sensor with an integrated accelerometer, gyroscope, and magnetometer. The accelerometer measures acceleration, the gyroscope measures angular velocity, and the magnetometer measures the magnetic field along x-, y-, and z-axis.

I guess if you are using this IMU sensor you don’t have to worry about calculations if the robot is moving or not, or similar?