MPU-6050 angle readings under mechanical vibrations

Hello,
I'm in process of making a quadcopter. At this point I encountered a problem with MPU-6050 angle calculation.
When quadcopter is stationary with motors in off state and I'm tilting it, angle readings in all 3 axis is good, but when motors  are in on state, readings starts to jump all over the place and can even differ from real value by 20 degrees.
I assume this effect is due to mechanical vibrations caused by motors. I include pictures of quadcopter

3691298993?profile=original

and MPU-6050 board mounting

3691299311?profile=original

also  a graphs of angle readings of MPU-6050 in X axis using Kalman filter, complementary filter and MPU-6050 DMP (Kalman and complementary filter implementations as well as processing code for graphs is from Kristian Lauszus GitHub https://github.com/Lauszus , DMP used with Jeff Rowberg library from https://github.com/jrowberg).

3691299373?profile=original

Recently I connected second MPU to different microcontroller, so it would not be connected electrically with a quadcopter and mounted MPU on board with two sponges from both sides of MPU. Results were pretty much the same. So now I really know that noise (at least majority of noise) isn't related with electrical switching noise from motors.

Maybe someone had similar issues and could help me.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • PCB material (FR-4) is very flexible, in my case I use MPU-6050 module soldered just on one side, if I would solder just MPU-6050 IC directly on PCB, vibrations should have less influence to MPU because of smaller common area and better mounting.

    As far as I know InvenseSensors for a long time didn't made info about DMP available for everyone, you needed to make a contract with them to acquire information how to use DMP. Jeff Rowberg arduino library is somewhat reverse engineered implementation of how to use DMP, you should look up his library source code, it has some useful commentary. However some time ago InvenseSensors published separate guide how to use DMP, I will upload files that I got.

    Also if you didn't know there is detailed explanation about PID library here and a nice online simulator.

    DMP.zip

    Improving the Beginner's PID - Introduction
  • Nice to hear that you managed to increase accuracy. Even though quite complicated way :-)

    Anyway I will try if Tarantula vibration causes same MPU-6050 noise . Tarantula does not have any kind of anti-vibration mounting. But maybe its body is not as stiff as you PCB.

    Regarding MPU-6050. I am looking into datasheet and I am not able to figure out how DMP affects data from sensors. Or how can I enable it. They mention that there is an output register from DMP or it can push data into FIFO. But I do not see any DMP out register. And it is not clear if data written to FIFO are same sensor data or data processed by DMP.

    Thanks for link to PID library. I am trying to add altitude hold mode to my drone. I ordered MPU-9250 board that has pressure sensor too. I am going to add electronics to transmitter, not to drone itself (easier). I am thinking that I will be controlling voltage on thorttle potentiometer by a PID logic depending on altitude/pressure sensor data.

  • 3702281104?profile=original3702281039?profile=originalValues in all cases is combined gyro and acc.

    I managed to lessen vibrations influence. Firstly I made and glued some supports from copper clad on quadcopter legs, then desoldered MPU-6050 from PCB and soldered it again with flexible wires and mounted MPU-6050 on "Moon Gel Drum Dampeners" I found on ebay, it helped a lot. Now I get max 3 degree fluctuations in angle calculation on low PWM. Pictures of quadcopter and graphs during the same test as in original post with Kalman filter is below. I managed to stabilize quadcopter on one axis with 2 motors on. I used B. Beauregards Arduino PID library, here is a link to the video:

    https://www.youtube.com/watch?v=nQLR8DWjOVo

  • Hi,

    I have just started playing with MPU-6050. Once I have draft program ready that at least displays MPU values I will try to put it on my Tarantula X6 drone to see if result is same. Tarantula has similar brushed motors as you drone has.

    Your values are from gyro?

    What was result when you second MPU was not mounted on the board? I mean when it was close to drone but not mounted. Still same noise?

    Rado

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…