Skip to main content
Share Your Experience: Take the 2024 Developer Survey
2 of 4
Link PID loop to wiki page that seems to match. Remove signature.
user avatar
user avatar

programming PID loops in C

I'm an electrical engineer that was kind of thrust into the digital world and learning as I go. I'm programming a TI processor to do a PID loop, and since I cannot post a picture to this message because I'm "new", I'll describe it:

Negative feedback op-amp, with non-inverting terminal grounded. Input through negative terminal. The feedback loop is an RE series circuit in parallel with a resistor and all that in parallel with a cap.

Anyone have any idea how to convert this circuit to C code?? I'm a bit out of my element on this and could use the help... Thanks.

Jedi Engineer
  • 237
  • 1
  • 2
  • 4