×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PID tuning question for throttle actuator

PID tuning question for throttle actuator

PID tuning question for throttle actuator

(OP)
I have a DC motor attached to the throttle of a continuously variable transmission fed by an engine that always runs at the same speed.

I measure the output speed and compare to the set speed. I use the difference as the error in a PID system that has an output of the PWM duty cycle going to the motor.

I have the system running fairly well but I find that I'm always below my setpoint because the throttle has a very light return-to-zero springiness to it.

How can I adjust my PID controller to account for this spring return? I would suspect that an increase "I" should do it.

Second question:
There is a bad hysteresis in this system. It seems that the amount of throttle required to get the machine to begin moving is high enough to get it to overshoot my setpoint horribly. This often causes wild fluctuations where this overshoot starts causing oscillation.

A high "I" value (the possible solution to the above problem) is going to make this problem even worse. As i ramp up the PID to get the machine to start it will be building up a large "I" and will continue to increase the throttle even as it is passing the setpoint!

Thanks,
Matt

RE: PID tuning question for throttle actuator

You have two classic servo problems 1) a feedback sensor system that is under damped and a "Stiction" deadband.

This is not an elegant solution but you could try adding a mechanical viscous damper across the throttle return spring.  The should 1) kill the oscillations from the throttle position sensor and 2) slow down the servo response enough to allow the integral term time to unwind to stop the overshoot.

RE: PID tuning question for throttle actuator

(OP)
sreid, I appreciate your input. I think that I need to clarify something, though. It is not the throttle actuator that is oscillating wildly - it is the transmissions output speed.
I actually have very fine control over the throttle position - if it does oscilate it is very small and settles in a fraction of a second.
I actually described my system incorrectly - the transmission output speed error is used to determine a change in throttle position, not PWM. The position is then fed into another PID that outputs PWM.

So the throttle is always going where I want it, but the machine response is to not move till the throttle position is way too high, then "I" takes over and it continues to overshoot, then oscillate horribly.

Would a "D" term, properly tuned, cause the controller to back off when the machine's speed begins to rise? (unfortunately, i don't get my hands on this machine very often, i'm programming at my desk).

RE: PID tuning question for throttle actuator

Derivative action can also be called "Electronic Damping" so it's worth a try.

RE: PID tuning question for throttle actuator

(OP)
I just wish i had some better datalogging on this thing so I could try to "excel tune" it. I'll play with it and see where some D tuning gets me. I suppose I'll first tune the P and I according to changes in speed after the initial start has already been overcome, then tune D to prevent the initial overshoot on startup. Sound like a reasonable game plan?

(I've been playing occasionally with PID for a couple years, but it is usually rather straight forward, not series-PID controllers with hysteresis)

Thanks for your help, sreid.

RE: PID tuning question for throttle actuator

The most common control on small generator sets is proportional plus offset.
For 1800 RPM nominal speed, the offset and proportional are set for 1854 RPM no load and 1800 RPM at full load.
No integral. No derivative. You may chose to use some integral for mission critical or slow changing applications.
First get the system working with just offset and proportional.
These settings work well for millions of gen sets.

Bill
--------------------
"Why not the best?"
Jimmy Carter

RE: PID tuning question for throttle actuator

Hello mgeerts:

Why is it necessary for the second PID - the throttle position / PWM loop? Does the throttle position simply need translated to PWM output, or am  I missing something?    

RE: PID tuning question for throttle actuator

(OP)
PWM output determines the torque generated by the throttle motor. It is a very rapidly changing system and therefor can use very tight controls to snap the throttle to exactly where i want it quickly.

The system speed changes very slowly, so it has its own PID that takes in speed and puts out throttle position.

RE: PID tuning question for throttle actuator

Does your controller have "Offset"?

Bill
--------------------
"Why not the best?"
Jimmy Carter

RE: PID tuning question for throttle actuator

(OP)
No, actually. How does that fit into the equation?

RE: PID tuning question for throttle actuator

That's back to standard PID theory.  If you just have P control the controller's authority is the difference between the setpoint and the output - which is the error.  As the error diminishes the authority does too.  This guarantees that the output will NEVER reach the setpoint.

So you get really fast, simple control, but it never actually reaches the setpoint...

Enter the offset. You essentially lie about where the setpoint is. You artificially add to the setpoint so right when the authority runs out the output is at the originally desired setpoint.  It's simple and generally effective.

You setup up the P control to be snappy and stable while not actually caring about where it lands.  Once it's working well you add an offset to the desired setpoint that lifts the output speed to your actual desired value.

Keith Cress
kcress - http://www.flaminsystems.com

RE: PID tuning question for throttle actuator

(OP)
Sounds easy enough, I suppose. I will add that to my list of things to try - probably at the top of that list.

Thanks for all of your help, everybody.

RE: PID tuning question for throttle actuator

Get back to us as we love to hear about results.

Keith Cress
kcress - http://www.flaminsystems.com

RE: PID tuning question for throttle actuator

(OP)
I won't even have my hands on the machine for a week and I don't know if i'll be able to start PID tuning as new circuit boards need testing. I'll get back when i can, though!

RE: PID tuning question for throttle actuator

You said it much better than I could Keith.
Thanks

Bill
--------------------
"Why not the best?"
Jimmy Carter

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources