Hi
A Teensy 3.6 is used to digitize an analog voltage (in the code attached, it reads in PIN A20).
I have a very simple set-up where
1) the board is powered by the USB
2) I have connected a 1.6 Volt Battery to the A20 PIN.
3) I use two batteries in series (2x1.6 V) for the reference voltage.
I carry out repeated measurements in a loop.
The attached figures show that the signal jumps randomly at new acquisitions. Sometimes the jumps are at 2 mV. Under other conditions, I get jumps of 20 mV
I attached the source code as reference. It reads in the voltage at ADC1_RA which corresponds to the PIN A20
50 kSample / sec at 16 bit.
-- When I reduce either the bit depth or the ACQ rate, I still get these anomalies but at a lower level.
-- I tried a lower conversion speed and sampling speed and still get the same.
Really strange is that I get different levels by only compiling and uploading the code!
Can someone help on why this occurs? Has anyone seen such an anomaly?
Thank you in advance
A Teensy 3.6 is used to digitize an analog voltage (in the code attached, it reads in PIN A20).
I have a very simple set-up where
1) the board is powered by the USB
2) I have connected a 1.6 Volt Battery to the A20 PIN.
3) I use two batteries in series (2x1.6 V) for the reference voltage.
I carry out repeated measurements in a loop.
The attached figures show that the signal jumps randomly at new acquisitions. Sometimes the jumps are at 2 mV. Under other conditions, I get jumps of 20 mV
I attached the source code as reference. It reads in the voltage at ADC1_RA which corresponds to the PIN A20
50 kSample / sec at 16 bit.
-- When I reduce either the bit depth or the ACQ rate, I still get these anomalies but at a lower level.
-- I tried a lower conversion speed and sampling speed and still get the same.
Really strange is that I get different levels by only compiling and uploading the code!
Can someone help on why this occurs? Has anyone seen such an anomaly?
Thank you in advance