Hi,
I have constructed a terminal block shield and am testing with some voltage dividers using teensy 3.2, sparkfun arduino adapter (modified to alleviate 5v issue) and ethernet shield R3. I started with the teensy webserver example sketch and have added some storage and other stuff. pic and sketch attached.
I have 100 ohm series and 0.01uf to ground on each adc input (see schematic pdf) but oddly measure about 10% low. Spreadsheet shows voltage divider calculations and measurements on the terminal block shield match calculations.
The outboarded switch is to allow convenient teensy reset if needed.
while files are attached,
measured
2.18v, 1.63v etc
should be
2.4v, 1.8v, etc
Does the adc pin draw excessive input current to generate the error? it seems that ~2ma could cause this error magnitude. what else could be wrong?
Ultimately, these adc inputs will be driven by a difference amplifier measuring high side charge/discharge battery current for an off grid power system.
thanks in advance,
tim
I have constructed a terminal block shield and am testing with some voltage dividers using teensy 3.2, sparkfun arduino adapter (modified to alleviate 5v issue) and ethernet shield R3. I started with the teensy webserver example sketch and have added some storage and other stuff. pic and sketch attached.
I have 100 ohm series and 0.01uf to ground on each adc input (see schematic pdf) but oddly measure about 10% low. Spreadsheet shows voltage divider calculations and measurements on the terminal block shield match calculations.
The outboarded switch is to allow convenient teensy reset if needed.
while files are attached,
measured
2.18v, 1.63v etc
should be
2.4v, 1.8v, etc
Does the adc pin draw excessive input current to generate the error? it seems that ~2ma could cause this error magnitude. what else could be wrong?
Ultimately, these adc inputs will be driven by a difference amplifier measuring high side charge/discharge battery current for an off grid power system.
thanks in advance,
tim