8
submitted 11 months ago* (last edited 11 months ago) by ch00f@lemmy.world to c/ece@lemmy.world

I'm working on implementing the PID compensator on the top of page 20 here. I've already got a circuit working, but it oscillates a ton, and I was hoping to tune it with a better strategy than just guess and check.

The datasheet doesn't go into a lot of detail on how it's supposed to work, but I found a whitepaper that covers single-stage PID compensators in more detail here.

I've got this compensator working, I've modeled it in spice and the poles and zeroes show up where they should, but I have no idea how to actually tune it to my system.

My understanding is that I need to fit the equation (3) on the second link to the form kp + kds + ki/s, but it's an algebraic nightmare.

What I'm hoping for is some derivation of the PID constants in terms of the components in my system. Then I can work on one of the many tuning methods. The datasheet even assigns names to components implying that they're responsible for setting one of the constants (Cd and Rd for derivative term for example), but I'm fairly certain they can't be completely isolated like that.

Also, if the answer is just that I need to re-learn how to do partial fractions, I'm okay with that.

you are viewing a single comment's thread
view the rest of the comments
[-] piranhaphish@lemmy.world 2 points 11 months ago

If you can run the algorithm online, then the Ziegler-Nichols method has given me decent results.

this post was submitted on 07 Nov 2023
8 points (100.0% liked)

Electrical and Computer Engineering

695 readers
1 users here now

Electrical and computer engineering (ECE) community, for professionals and learners. Discuss ECE related topics here, for instance digital design, signal processing, circuit analysis, electromagnetics, microelectronics, power electronics, RF electronics, etc.

founded 1 year ago
MODERATORS