Hi,
I'm attempting to design an analog input for a specific purpose.
The requirements are as follows:
- It can handle 0-48V.
- During normal operation the input voltage will be close to the the middle of the range span
- When deviating from the normal value, the input voltage will go either to ground or to rail voltage (disregarding any noise)
- Frequency of input change is less than 1Hz
- Protection against over voltage on the inside is needed
To accommodate this I've been thinking about a circuit like in the image. The potentiometer functions as a voltage divider and I can set it to a level where the current voltage range (0-5V, 0-12V, 0-24V or 0-48V) represents 0-3.3V on the output with protective clamping thanks to the zener diode. The 1M resistor represents the high impedance ADC.
Am I missing something that will prevent this from working in practice? The incoming voltage may have some noise (long cables in a house) so I need to add some lowpass/highpass filters too and I'd appreciate any hints on this.
Right know the output has a range of 0-3.3V, but it may be that I need to go down to 0-1V which makes the span much narrower which in turn will make it much more sensitive to noise. How should I handle such a case?
Is there a better way to scale 0-48V down two a voltage measurable by a uC? Can an Op Amp be configured to use negative gain (I tried but did't get it to work)?
Thanks!
PS:
For those wanting to try this circuit in a simulator, load this piece of text at
http://www.falstad.com/circuit/$ 1 0.000005 8.281975887399955 56 5 43
z 128 272 128 208 1 0.805904783 3.3
172 -128 128 -176 128 0 6 44.64 48 0 0 0.5 Voltage
g 128 288 128 336 0
w 128 288 128 272 0
r 48 160 128 160 0 1000
174 -80 128 -32 192 0 10000 0.9356000000000001 Resistance
w 128 160 128 208 0
w -128 128 -80 128 0
g -80 240 -80 256 0
w -80 240 -80 192 0
w 48 160 -32 160 0
r 160 160 208 160 0 1000000
w 128 160 160 160 0
O 208 160 240 160 0
x 147 246 196 249 4 24 3.3V
o 13 64 0 4098 5 0.1 0 1