Ben Cantrick (mackys) wrote,
Ben Cantrick
mackys

  • Mood:

Making a PID controller out of an op-amp.




So you've probably seen this story about the table that keeps a ball in the center by using a touch-screen to sense where the ball is and tilt the table accordingly.

In the Reddit comments for the story, someone linked to the PID Controller page at Wikipedia, and wow has that thing gone uphill since the last time I looked at it.

The most interesting thing I learned by reading the (new version of) the page came from an off-site link to a PDF file about the control system for a little self-controlling helicopter project. It turns out (page 22) you can build a PID controller from an op-amp, two resistors, and two capacitors. You do have to do some math on the resistances and capacitances to calculate Kp, Ki and Kd. But even so, what a cool little trick!



OpAmps - is there anything they can't do?
Tags: notes to self, reddit
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 6 comments