I have a circuit powered by 12V that accepts an input signal of 0V to 10V. The circuit shall act as a buffer to the signal, with an added LED indicator. In certain circumstances, the circuit itself may not be powered and in this case, it shall pass on the unbuffered signal, and use the power from the signal itself to drive the LED.
This is what I've come up with:
Now it works beautifully both in the simulation and in real life, but I'm wondering whether there is a chance of damaging the opamp. When the opamp is unpowered (Vsupply = 0V), the inverting inputs see a much higher voltage than the supply, and internal clamping diodes will not work. Also, what about the outputs, will they be safe if a voltage is applied?
I thought about current limiting, but I don't really see how I could do that in this situation. I'm open to a different opamp type that will withstand this type of abuse. I know the OPA121 does, but unfortunately it's not available at my chosen PCBA manufacturer.
Is there any change to the circuit that would make it safe with an LM358, or are there other types of opamp that are better suited?