For my head mouse project which is based on the voice recognition module V3.1 for left click, double click, right click operations, I am facing a problem. When I just use the MPU 6050 accelerometer and gyroscope for nose movement, the mouse cursor moves smoothly. But when I integrate it with the voice recognition module, the cursor starts to drift. My code is given below:
I have been using an arduino pro micro for this project. Please help. I have calibrated my MPU6050 , so it does not drift while working alone. But after integration with voice recog module (including calibration) , the drifting problem returns.