Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AntiBotCaptcha has a deprecated constructor in /homepages/8/d680172117/htdocs/QA/qa-plugin/q2a-captcha-antibot-master/AntiBotCaptcha.php on line 22
PID Controller for Quadcopter - Electronoobs Q&A

Welcome to Electronoobs Q&A, where you can ask questions and receive answers from other members of the community.


PCBWay Ad

Categories


+1 vote

Hello,

 

I have followed your tutorial (http://www.electronoobs.com/eng_robotica_tut6.php) to stabilize one axis of a quadcopter. I built a test stand like you did. Overall everything works fine but for some reason the MPU seams to return values around 0 whenever it vibrates. So, if I hold the MPU in my hand and imitate the movements of the wooden stick everything is fine. But whenever I mount the MPU directly to the board I starts to return only 0 (This seems to have something to the vibrations of the motors, as it does not happen when the motors are off.). Does anyone have experience which such a problem? Does someone know a solution?

Thanks

BlvckBat

PS: Thank you for the awesome tutorials @electronoobs. :)

asked in Arduino by (130 points)

1 Answer

0 votes
There might be interference from the motors magnetic field or also vibrations. Try using short wires or the MPU soldered to a PCB in order to decrease noise. Keep up!
answered ago by (30.8k points)
...