- #1
Rx7man
- 425
- 189
- TL;DR Summary
- looking for ideas for an analog PID loop
Once again I'm looking at a project that is challenging my engineering limits!
I have a type of metering device that has an electromagnetic coil that actuates it, it's designed to be relatively linear motion depending on amperage applied through it, and it has a variable resistor as a sensor for the actual position. It should be able to respond to changes in inputs quickly, which is one reason I'm considering to at least have part of it analog (Perhaps just a P-D loop, the integral could be software controlled)
I know it's possible to do everything in software, but if I can save processor power and code simplicity with a couple op-amps, I think it's a good move.
The microcontroller will either be a 3.3 or 5V unit (probably 3.3 because of processing power)
I found this image which may work with some minor modifications (supply rails would be 0 and +5V or +12V)
the second part is the output stage, wondering what sort of transistor and design would be well suited for it..there will be a low side current sense resistor, and low side switching would definitely simplify things.. I think 10A peak current is a reasonable starting point (I'm getting more detailed specs soon hopefully)
Here's a sketch of the physical portion, sorry for the terrible artistry
Block diagram of the electrical side of it
I have a type of metering device that has an electromagnetic coil that actuates it, it's designed to be relatively linear motion depending on amperage applied through it, and it has a variable resistor as a sensor for the actual position. It should be able to respond to changes in inputs quickly, which is one reason I'm considering to at least have part of it analog (Perhaps just a P-D loop, the integral could be software controlled)
I know it's possible to do everything in software, but if I can save processor power and code simplicity with a couple op-amps, I think it's a good move.
The microcontroller will either be a 3.3 or 5V unit (probably 3.3 because of processing power)
I found this image which may work with some minor modifications (supply rails would be 0 and +5V or +12V)
the second part is the output stage, wondering what sort of transistor and design would be well suited for it..there will be a low side current sense resistor, and low side switching would definitely simplify things.. I think 10A peak current is a reasonable starting point (I'm getting more detailed specs soon hopefully)
Here's a sketch of the physical portion, sorry for the terrible artistry
Block diagram of the electrical side of it