The best interface I can think of would be:
- Controller with 24V ps
- Arduino with 5 to 12v ps
- both of the above MUST have a common ground.
Setpoint:
- Arduino output "analogout" (I forget the command).
- RC filter on this output. The analog output is really a PWM output and needs to be filtered to become a DC voltage
- An opamp capable of being powered by 32 volts. (24 + some safety margin). Something like an LM324 (aka LM2902)
- Various capacitors on the opamp (+V, maybe a feedback cap to slow down any spikes)
- Set amplifier gain to ~2.5.
- The output of the opamp will be approx 0 to (2.5 x 4)
Feedback:
- Feedback will need a resistive divider with a 0.1µf cap before going into an analog input.