Ok so i have found several posts about protecting adc pins from over/undervoltage and such is my issue here. My case is a bit different.
I would like to use an arduino essentially as a voltmeter/ to monitor voltage. From what i have researched online i have found 3 possible solutions.
1) voltage clamp shottkey diodes with current limiting resistors.
2) op amp circuit with a MOSFET in the feedback that reduces the gain as the input voltage passes the upper extreme for the ADC pin (5v max).
3) Zener diodes which have little effect on accuracy but seem a bit sloppy with the breakdown voltage curve and "standard" values seem to be slightly out of my range.
I read the first things are to assess the inputs. I would like to have different selectable scales say 0-2.5v, 0-5v, 0-10v, 0-20v, 0-100v, and if possible 0-200V. The math for these conversions is already taken care of in code. I have a 11 position rotary switch to select this, or possibly rotate though the scales using a pushbutton and some code maybe? Is it safe to assume i need a separate resistor/shottkey diode setup for each scale? I have some 10k 10 turn trimmer pots that i could use as dividers before the shottkey diodes. Current isnt really a big thing here i just need enough to get the voltage through.
Now we all know how important it is that the ADC pins do not exceed the +5v. (I believe that the datasheet on arduinos say it may exceed this by just a hair but its not much 100mV if I remember correctly). If you guys would be so kind I would like some input as to how to go about this. Im pretty sure that at the cost of some accuracy i can map the ADC value (or maybe it was to change the Analog reference voltage? Ill have to go back and check) but im pretty sure this means instead of having 0-5v translate to 0-1023 adc, I can change it so that maybe 0-4.75v would be 0-1023 adc. I dont know if that is of use to what im trying to apply here it seems like its heading in the opposite direction.
Any thoughts?
***Not so relevant info:
The arduino is also connected to a T6963c controlled GLCD and it displays the voltage and plots a line similar to a oscope (just much much slower). It has a variable speed, records peak voltage, and will soon have a button to pause and im working on possibly adding some serial goodies to make it talk to a PC. but im getting ahead of myself here lol. This is not for anything important its more me trying to build something that is a useful tool for me for monitoring voltage and get some use out of these cool little arduinos hahaha. I also own a Due which has 0-3.3V max ADC ins with a 10bit resolution (0-4096) which would prove more accurate but more strict protection is required. So thats also possibly of use.
I would like to use an arduino essentially as a voltmeter/ to monitor voltage. From what i have researched online i have found 3 possible solutions.
1) voltage clamp shottkey diodes with current limiting resistors.
2) op amp circuit with a MOSFET in the feedback that reduces the gain as the input voltage passes the upper extreme for the ADC pin (5v max).
3) Zener diodes which have little effect on accuracy but seem a bit sloppy with the breakdown voltage curve and "standard" values seem to be slightly out of my range.
I read the first things are to assess the inputs. I would like to have different selectable scales say 0-2.5v, 0-5v, 0-10v, 0-20v, 0-100v, and if possible 0-200V. The math for these conversions is already taken care of in code. I have a 11 position rotary switch to select this, or possibly rotate though the scales using a pushbutton and some code maybe? Is it safe to assume i need a separate resistor/shottkey diode setup for each scale? I have some 10k 10 turn trimmer pots that i could use as dividers before the shottkey diodes. Current isnt really a big thing here i just need enough to get the voltage through.
Now we all know how important it is that the ADC pins do not exceed the +5v. (I believe that the datasheet on arduinos say it may exceed this by just a hair but its not much 100mV if I remember correctly). If you guys would be so kind I would like some input as to how to go about this. Im pretty sure that at the cost of some accuracy i can map the ADC value (or maybe it was to change the Analog reference voltage? Ill have to go back and check) but im pretty sure this means instead of having 0-5v translate to 0-1023 adc, I can change it so that maybe 0-4.75v would be 0-1023 adc. I dont know if that is of use to what im trying to apply here it seems like its heading in the opposite direction.
Any thoughts?
***Not so relevant info:
The arduino is also connected to a T6963c controlled GLCD and it displays the voltage and plots a line similar to a oscope (just much much slower). It has a variable speed, records peak voltage, and will soon have a button to pause and im working on possibly adding some serial goodies to make it talk to a PC. but im getting ahead of myself here lol. This is not for anything important its more me trying to build something that is a useful tool for me for monitoring voltage and get some use out of these cool little arduinos hahaha. I also own a Due which has 0-3.3V max ADC ins with a 10bit resolution (0-4096) which would prove more accurate but more strict protection is required. So thats also possibly of use.