I don't know the exact theory behind this, but it works fine. And how to merge both signal? We will use a technique called complementary filter. If you look at the graphic the gyro data continuous increase, this is called drift and the accelerometer data change a lot at a small time. So why we gonna use two sensor instead one? To take the advantage of both sensor properties. ![]() But why we have to do this? Because the gyro give us the angular rate, so a simple way to get the angle is have the angular rate multiplied by the time To measure the angle using an accelerometer we have to sense the gravity in each axis of the accelerometer, what it means, the projection of the gravity acceleration on each direction of the sensor give us an idea about the angle. ![]() To measure the angle using the gyro we have to integrate the signal. ![]() From both sensor we can measure the angle but using two distinct technique.
0 Comments
Leave a Reply. |