Announcement

Collapse
No announcement yet.

P and i Gain???? Can someone explain?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • P and i Gain???? Can someone explain?

    This is probably a stupid question but can anyone explain, What the p and i gain is? And how changing them on my Scorpion commander 130a opto esc will effect how it works?

    I've always just left them in factory settings in the past, simply because i dont know what they do.


  • #2
    GOV (P Gain) = POWER GAIN: 1 to 11 (SOFT to HARD), DEFAULT: 5*


    SB (I Gain) = CURRENT GAIN: 1 to 8 (INSENSITIVE to SENSITIVE), DEFAULT: 5*
    1x EGS, TREX 450 PRO DFC & 130X. DX9 radio. No idea what i am doing trying to fly

    Comment


    • #3
      It is part of PID control. Control systems use PID control theory to operate. It stands for Proportional, Integral, Derivative.

      Its a bitch to try and explain lol.

      The 'P' or proportional band, is basically a controller output (reaction) which is directly proportional to the size of a deviation. So in the case of a speed controller, say you have a governor enabled to maintain a headspeed at 2500rpm, the ESC detects a change to 2450rpm, you have a deviation of 50rpm, therefore the ESC needs to send an output to counter this error, the larger the deviation, the larger the signal needed.

      Increasing or decreasing the proportional aspect changes how much of a corrective signal is given, higher settings will cause the control loop to react with a larger corrective signal which makes it more aggressive, it will eliminate the deviation quickly but may over shoot and go too far. So in the example of our speed controller it counters our 50rpm error but by too much and now the rpm is 2525rpm, 25rpm too much.

      When this occurs you will get oscillations, much like when you set the gain on your tail too high. Setting the proportional gain too low, causes the control loop to respond less aggressively and ends up being sluggish, if too low it may never counter the error entirely, at all. The idea is to modulate the output to an ideal situation where the control loop isnt constantly over shooting but is reacting quick enough to counter change.

      Integral is there to pick up the downfalls of proportional control. When you have just proportional control, you experience an offset from your set signal (2500rpm). it doesnt really take into account time. Proportional mainly looks at the size of deviations/errors. Integral control sends an output signal proportional to the amount of time the deviation is present, counting the offset you get from the proportional side of things.

      So ideally you need both P and I to control (countering the size and time of deviations)

      I think this makes sense? Its late, its probably not the best way to explain it. The best way to show how the control loop works graphically.
      Matt

      Comment


      • #4
        Many thanks for the replies guys

        Been out this morning and upped the P gain from 5 to 7 and it made the world of difference

        Comment

        Working...
        X