Hello Guys,
I need to measure the car/ road angle and I have a 3 axis accelerometer.
I am using and arduino Due with an MPU6500.
Do you know of a code that can guide me?
Can I make this work while the car is moving or decelerating ?
Thanks,
Yossi
Hello Guys,
I need to measure the car/ road angle and I have a 3 axis accelerometer.
I am using and arduino Due with an MPU6500.
Do you know of a code that can guide me?
Can I make this work while the car is moving or decelerating ?
Thanks,
Yossi
While moving there will be far too much noise from other movements. When accellerating and decellerating it's just a lot worse.
When stationary you'll be able to measure the inclination of the sensor towards the normal easily, and you'll be able to find lots of example codes out there that can do just that.
Thanks wvmarle,
Do you have any idea were I can find a sample code since I have looked and didn't find anything?
I will try then to measure while driving with averaging to see if that will clear some of the noise.
pcyossi:
Do you have any idea were I can find a sample code since I have looked and didn't find anything?
Then look harder. If you didn't find anything, you didn't seriously look for it.
Can I make this work while the car is moving or decelerating ?
If the car is accelerating, decelerating, or going around a curve, the angle that you measure will be wrong, even if you can get around the noise problem.
The accelerometer cannot distinguish between the force due to gravity and other external forces.