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

2 Online
0 Member And 2 Guest
Today Visits : 883
Yesterday Visits : 4047
All Visits : 288061

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


+1 vote



I have followed your tutorial ( 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?



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 by (33.8k points)