+ Reply to Thread
Page 5 of 7 FirstFirst ... 34567 LastLast
Results 41 to 50 of 63

Thread: PID Controller

  1. #41
    Wire Noob Splatman's Avatar
    Join Date
    Mar 2008
    Posts
    3

    Default Re: PID Controller

    Any chance of getting an Adv Dupe of the platform shown in the video near the start of the thread?

  2. #42
    Wire Noob siberx's Avatar
    Join Date
    Oct 2008
    Posts
    1

    Default Re: PID Controller

    First, let me say this is a pretty nifty piece of hardware - I've been using homebrew discrete PD controllers for some time in gmod to stabilize a number of different contraptions, but found that the extra complexity of producing a full PID was rarely worth the effort and chips required to do it. This thing puts it in one small fast package, so hurrah for that.

    While I've been able to tune the thing to converge and maintain a desired setpoint very easily, I've been running into problems when trying to smoothly adjust the setpoint of the system and have the PID track that change. I basically have a second circuit that allows me to alter the setpoint smoothly at a certain number of units per second, and invariably any time I attempt to change the setpoint the system will increasingly oscillate until I stop altering the setpoint, at which point the system converges almost immediately back to a stable value.

    Perhaps the PID circuit is not well tuned to this and I should add a feed-forward to compensate for the setpoint shift, but anybody have any other suggestions that are simpler than this?

  3. #43
    Wirererer tuusita's Avatar
    Join Date
    Jul 2007
    Posts
    101

    Default Re: PID Controller

    Quote Originally Posted by siberx View Post
    While I've been able to tune the thing to converge and maintain a desired setpoint very easily, I've been running into problems when trying to smoothly adjust the setpoint of the system and have the PID track that change. I basically have a second circuit that allows me to alter the setpoint smoothly at a certain number of units per second, and invariably any time I attempt to change the setpoint the system will increasingly oscillate until I stop altering the setpoint, at which point the system converges almost immediately back to a stable value.

    Perhaps the PID circuit is not well tuned to this and I should add a feed-forward to compensate for the setpoint shift, but anybody have any other suggestions that are simpler than this?
    Having the same setpoint-oscillation problem. A solution or an upgraded PID would be nice.

  4. #44
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: PID Controller

    Excellent! Any thoughts about making an automatic tuner? The Ziegler-Nichols method is easy enough to implement if you can detect when it starts oscillating steadily.

  5. #45
    Wire Amateur Kirk's Avatar
    Join Date
    Feb 2008
    Location
    The Netherlands
    Posts
    60

    Default Re: PID Controller

    Oh man, you win.

    I haven't played GMod in a while and when I got back to it I figured I'd update everything. Finding this is a treat. I've been using custom PID expression gates but this is just so much easier
    Quote Originally Posted by LuaPineapple
    WTF does it mean "unable to read int expected int but got int"?

  6. #46
    GMech Developer InfectiousFight's Avatar
    Join Date
    Jun 2007
    Location
    Houston, TX
    Posts
    537

    Default Re: PID Controller

    Man, this sounds just like my Modified Delta Equation (delta equation, accumulation output instead of absolute). Good to see this functionality spread more, it's incredibly useful.

  7. #47
    Wire Sofaking Bobsymalone's Avatar
    Join Date
    Jul 2008
    Posts
    770

    Default Re: PID Controller

    Quote Originally Posted by InfectiousFight View Post
    Man, this sounds just like my Modified Delta Equation (delta equation, accumulation output instead of absolute). Good to see this functionality spread more, it's incredibly useful.
    I use your equation all the time since I read your thread about that plane, it's awesome. I'm sure PID controllers are too, but they're kind of big. I prefer everything to be done by a small minichip.

  8. #48
    Wire Sofaking Fizyk's Avatar
    Join Date
    Jun 2008
    Location
    Łomianki, Poland
    Posts
    740
    Blog Entries
    1

    Default Re: PID Controller

    Ok, despite my poor Lua skills I was able to eliminate the bug which caused the PID controller to go crazy when SetPoint was changing. I also added multiplying the I part by dt - it should make it possible to use I gain values higher than 0.001

    In the attachment - modified init.lua file.
    Attached Files Attached Files

    My programs: BIOS - Alcyone - Calculator - Notepad - Movie Player
    My tutorials: applyTorque - Quaternions - PID controllers
    Some other things I made: FT Chip - RK4 Solar System

  9. #49
    Wirererer Qjet's Avatar
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    319

    Default Re: PID Controller

    super delta? :O

    [ame="http://ca.youtube.com/watch?v=FHFzUVdLyMA"]YouTube - Delta in WireMod[/ame]

    Sorry for bringing this up It's just I find it relevant <.X
    Last edited by Qjet; 01-25-2009 at 05:08 PM.

  10. #50
    Wire Sofaking ahref's Avatar
    Join Date
    Jul 2008
    Posts
    520

    Default Re: PID Controller

    old stuff is old. PID is much more cooler. if you can stand the tweaking. 30 mins and my stuff still just spazzes out. but i get the concept.

    so in short PID is much better L

+ Reply to Thread
Page 5 of 7 FirstFirst ... 34567 LastLast

LinkBacks (?)

  1. 01-27-2010, 11:36 AM

Similar Threads

  1. Turret with Adv. Pod Controller and Cam Controller?
    By Jaded Misanthrope in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 07-21-2008, 11:47 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots