I'm working on a project where I wanted to measure the lean angle of motorbikes while turning or doing any other angle changes. Here, I'm struggling with the reference point. I mean if I upload the code and start the system, it shows XYZ - Roll pitch yaw angles are nearly zero. When I "START" the device they are zero, which means in any direction, if I start the device, it takes it as a reference point. I think you got my point. Is there any way (by using complex maths or different sensors or whatever) that I can set the sea water level(or global flat reference) as my starting point/reference point... HOPE you will reply me
The 6050 is an accelerometer, showing acceleration, not angles, as I've got it.
Have a look at this DroneBotWorkshop video about using the MPU6050 as a "level."
Please follow the forum rules and post the code, using code tags. See the "How to get the best out of this forum" for instructions.
This sounds like your code is measuring rate of change rather than absolute position.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.