PIDs for mini quad - please help

Hi all,

I've built a ZMR250 based on mini APM 3.1. I'm using Multistar 2206 2150kv motors with Afro 12A ESCs and 6x2 carbon props. All the components are linked below.

The mini quad is flyable with stock PIDs and it actually loiters, RTHs, ... really well, here is a loiter example:
http://youtu.be/E4UVh4dDf4U

These are the stock PIDs, which I use:
http://www.michaelransburg.com/pids/pids.png

As expected, the problems start to appear in normal flight (stabilize mode), since I suppose the stock PIDs are intended for a much bigger quad. The resulting unsmooth flight behaviour with stock PIDs can be seen in this video:
http://youtu.be/Gx5zVWF2AIQ

I have, so far, no experience in tuning PIDs, but I'm eager to learn in order to get smooth flight. I have tried autotune which resulted in catastrophic PIDs turning the quad unflyable - I had to rebuild the GPS tower because of the resulting crash when trying to fly with the autotune PIDs - which is why I want to learn how to tune the PIDs manually. I would really appreciate any tips on the meaning of the different PIDs and any help in getting my PIDs right for my mini quad would be really really appreciated.

Many thanks and all the best,
Michael

ps: Here is the eqipment which I used:
ZMR250: http://www.banggood.com/H250-ZMR250-250mm-Carbon-Fiber-Mini-Quadcopter-Multicopter-Frame-Kit-p-933185.html
Mini APM 3.1: http://www.banggood.com/MiniAPM-V3_1-Flight-Controller-With-GPS-Module-p-941834.html
Motors & ESCs: http://www.hobbyking.com/hobbyking/store/uh_viewitem.asp?idproduct=66977&aff=1514
Props: http://rctimer.com/product-1180.html

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

Join diydrones

Email me when people reply –

Replies

  • Hi Ray,

    Is their a chance you could share you PID settings please. I tried Auto tune and setting manually, but still not flying very good in slightest wind. I am interested in IMAX and FILT settings.

    Regards

    Henry

    Ray Gamero said:

    one thing i noticed after building a new 250 with pixhawk is that I needed to change my INS filters from 20hz to 40 hz.  made a huge difference.

  • one thing i noticed after building a new 250 with pixhawk is that I needed to change my INS filters from 20hz to 40 hz.  made a huge difference.

  • This ist one of the best tuning guides I know: http://diydrones.com/forum/topics/arducopter-tuning-guide. Even if it refers to a very old Arducopter version, it is still valid for rate roll/pitch tuning.

    • have a hoverthings 260 with APM. With stock PIDs it flys just ok. Tried autotune but it would not engage or it would quit part way through. Decided to search for some 'example' PIDs on a 250 or 260 that folks have had success with. Came across the above screenshot fro Raphh and a few others. When I try to input these into mission planner it seems the min range for rate roll P will not allow numbers that low. Has there been a change in mission planner min/max settings? Perhaps what used to be known as 0.0420 is now some other number?

      Screenshot_2015-07-13-21-10-08.jpg

      • I had the same issue with my build. I could not set the p value any lower. But you can do it. Go to the full parameter list and manually enter the value for p and then click on write parameters. This was the only way I could do it. It will work. I got rid of the wobble by doing this.
  • On the PID tuning page in Mission Planner. Unlock the roll and pitch, separating them -leave the pitch alone, and then reduce the rate P for roll until the rocking gets under control a little at a time each test.

    Cheers

    • Many thanks Mike!

      • Based on getting my mates and mine new 200mm quad design flying  today the P and D at least will be a lot lower that default. We actually gave up on the reducing gain approach and increased form zero...starting with D, holding in hand increase until it felt like it was damping the quad as it was moved by hand, then upping P till it felt like it it reacted to the stick ok, then upping I. Then test hopping and tuning. This should get yyou to a docile setting that will fly rather than it hovering but then starting to oscilated and flip after using the pitch/Roll stick.

  • I just built a 260 quad and watched this video to help me tune mine. I am using a mini apm and mine did not look good when i used the defaults. After a manual tune it flies a lot better.

    http://youtu.be/LtocGBngSrA
    • Many thanks Dave, that is an awesome and easy to understand video!

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @a1k0n: Did I get rid of hand-tuned parameters? Yes. Am I still hand-tuning more parameters? Also yes. I have a few knobs to address the…
yesterday
DIY Robocars via Twitter
RT @a1k0n: I'm not going to spoil it, but (after charging the battery) this works way better than it has any right to. The car is now faste…
yesterday
DIY Robocars via Twitter
RT @a1k0n: Decided to just see what happens if I run the sim-trained neural net on the car, with some safety rails around max throttle slew…
Monday
DIY Robocars via Twitter
Saturday
DIY Robocars via Twitter
RT @SmallpixelCar: @a1k0n @diyrobocars I learned from this. This is my speed profile. Looks like I am too conservative on the right side of…
Saturday
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars Dot color is speed; brighter is faster. Yeah, it has less room to explore in the tighter part, and t…
Saturday
DIY Robocars via Twitter
RT @a1k0n: I'm gonna try to do proper offline reinforcement learning for @diyrobocars and throw away all my manual parameter tuning for the…
Friday
DIY Robocars via Twitter
RT @circuitlaunch: DIY Robocars & Brazilian BBQ - Sat 10/1. Our track combines hairpin curves with an intersection for max danger. Take tha…
Sep 22
DIY Robocars via Twitter
RT @SmallpixelCar: Had an great test today on @RAMS_RC_Club track. However the car starts to drift at 40mph. Some experts recommended to ch…
Sep 11
DIY Robocars via Twitter
RT @gclue_akira: 世界最速 チームtamiyaのaiカー https://t.co/1Qq2zOeftG
Sep 10
DIY Robocars via Twitter
RT @DanielChiaJH: Always a good time working on my @diyrobocars car at @circuitlaunch. Still got some work to do if I’m to beat @a1k0n howe…
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: My new speed profile for @RAMS_RC_Club track https://t.co/RtLb7TcgIJ
Sep 10
DIY Robocars via Twitter
RT @SmallpixelCar: Practiced at @RAMS_RC_Club today with my new @ARRMARC car https://t.co/AEu2hCx89T
Aug 28
DIY Robocars via Twitter
Aug 24
DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
More…