Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Mayfly 16 bit ADC errors

Home Forums Mayfly Data Logger Mayfly 16 bit ADC errors Reply To: Mayfly 16 bit ADC errors

#14087
Jim Moore
Participant

Where did the calibration coefficients you used in line 31 come from?  They could be in error.  The raw value of adc0 in line 26 is a bit count and 65536 (2^16) is the maximum which would be the value output if the analog input was connected to Vdd (~3.3V).

Don’t know why the zero offset.  I would try printing out your raw adc0 with the analog input grounded and with it connected to Vdd.  Measure the Vdd with your Fluke DMM using that as your reference and adjust the calibration coefficients accordingly.