I have an opamp circuit with +/-12V supplies and a desired output range of 0-5V.
It is possible if a user plugs the wrong thing into the input of this circuit for the Opamp to put out up to 7.5V.
If wanted to make sure that the Opamp output never goes beyond 5V would I connect the output of the opamp to current limiting resistor and then to the anode of of a schottky diode and the cathode of the schottky is connected to a 5V reference voltage?
I think this is called clamping.
At the same point I can also connect another shottky to ground so that the voltage never goes below zero as well.
On this circuit there are no 5V rails (just +/-12V) so I would need the reference voltage instead.
The output of this circuit will interface to the "Expression Pedal Input" of audio fx processors.
This is a high impedence input that expects 0-5v but I have no idea what kind of over voltage protection will be present there and I want to make sure my device is safe for many different fx processors.
If you wanted to avoid generating a 5V reference, you could use a 5.1V zener diode to ground. The zener also acts as a normal diode in the reverse direction so it would clamp any negative voltages to about -0.7V, which likely is adequate to protect the fx processor. You might also add a resistor (say 10kΩ) in series with the output to the processor to limit the current.