Let's Make Robots!

Accelerometer as a Inclination (pitch) sensor

Hello everybody!

I'm an robotics hobbist an I'm planning to put some sensors and a microcontroller to a RC Car to log some status data.

First sensing will be reading pitch angle when RC car is running uphill and downhil using a 3-axis accelerometer. I've read some documentation on how to do this and a little bit confused, my question is:

How to convert accelerometer values to angles when RC Car is moving? I'm only interested in inclination angle, pitch.

 

Thanks in advance!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
airuno2l's picture

Thanks for your response PaulJD,

I haven't tried moving accelerometer yet because I'm testing on my workbench, obtained values are correct when no motion is present, but as I've read, when accelerometer is in motion, some accelerations afect output values so angles obtained when car is in motion should not be correct.

My question is Can I obtain inclination of my RC Car using one acceleromter when it's moving? or should I use another  kind of sensor?

Thank you very much!

 

PaulJD's picture

what happens if you continue to convert and record while moving, the same as not moving?

you could average multiple readings to smooth out vibration or other noise (last 5 samples?).

problem are you concerned about, created by moving?

Thanks for your response PaulJD,

I haven't tried moving accelerometer yet because I'm testing on my workbench, obtained values are correct when no motion is present, but as I've read, when accelerometer is in motion, some accelerations afect output values so angles obtained when car is in motion should not be correct.

My question is Can I obtain inclination of my RC Car using one acceleromter when it's moving? or should I use another  kind of sensor?

Thank you very much!