I have IMU (Pololu) sensor connected to arduino nano and python file reads the measurements from it. and the task is :
1- remove the gravity.
2- Track the motion of the sensor along 2 axes. Use python turtle to visualise the change in position. If the accelerometer is attached to the breadboard, use the Y and Z axes.
Use the canvas_move_to ( x_mm , y_mm ) function to set the position of the sensor in the gui. Can you think of two reasons why the result is bad?
I attached python file and arduino code
How can I solve this task ??
IMU python code.pdf (31 KB)
Arduino code.pdf (33.7 KB)