I'm looking for an opamp "voltage clamping" circuit with a +/-12V input and a 0/+5V output.
I mean :
When input < 0V = output stays at 0V
When 0V < input < +5V = output 0 to +5V
When input > +5V = output stays at +5V
Thank you for your help !
I'm looking for an opamp "voltage clamping" circuit with a +/-12V input and a 0/+5V output.
I mean :
When input < 0V = output stays at 0V
When 0V < input < +5V = output 0 to +5V
When input > +5V = output stays at +5V
Thank you for your help !
I assume here that you want the 0-5v signal to be processed by an A/D. If you want to protect the input then use a device such as the TLV6001 to buffer the input signals.
A simple circuit such as this will provide accurate translation of the 0-5v signal for any application.
simulate this circuit – Schematic created using CircuitLab
The TLV6001 is rated for rail-rail operation and so allows the full range of MCU or A/D input ...in addition it is rated to carry 10mA in the input protection diodes. This would allow the configuration above to withstand voltages of +/-200 V on the input resistor R2 (providing your resistors are rated for this voltage).
Since the TLV600 is powered by the MCU +5 V supply it cannot produce an output voltage above 5 V or below 0 V, so the input is accurately clamped WITHOUT impacting the A/D range at all. You must make sure that your MCU solution is always drawing a minimum current greater than your expected protection current (this is only an issue if you put things into a sleep state).
Here is the textbook example: Note however, that each opamp is either in saturation (there's a huge differential voltage on inputs when no need for an opamp to clamp) or it tracks its inputs precisely (when it clamps). Therefore, you'll need opamps that are able to switch fast and without ringing from saturation to tracking.
simulate this circuit – Schematic created using CircuitLab
This should work. If you really need to use an op amp, you could buffer the output.