Re: fake lm35dz temperature sensors
Posted: Tue Sep 21, 2021 11:13 am
Some findings, adding a 220 uF capacitor at the 5v supply before the LDO (it is the usb from PC actually)
LMT86 to stm32f401 adc pa0 (no Op Amp)
count 2000.000000
mean 30.809150
std 2.734337
min 5.710000
median 30.600000
max 54.450000
Next, I set up a filter to remove all values outside +/- 2 deg C from the median, 147 outlier values removed.
This is significantly less than previous
LMT86 - stm32f401 adc pa0 - removing 147 outliers count 1853.000000
mean 30.639255
std 0.589653
min 28.660000
median 30.600000
max 32.580000
220 uF is a little extreme, but it did reduce the count of outliers outside +/- 2 deg C significantly
Unfortunately, the range of that outliers did not reduce significantly. It seemed there is a possibility the ADC is picking up signals from sources other than the sensor alone. Though at the pin, only the sensor is connected (across a wire to the probe).
LMT86 to stm32f401 adc pa0 (no Op Amp)
count 2000.000000
mean 30.809150
std 2.734337
min 5.710000
median 30.600000
max 54.450000
Next, I set up a filter to remove all values outside +/- 2 deg C from the median, 147 outlier values removed.
This is significantly less than previous
LMT86 - stm32f401 adc pa0 - removing 147 outliers count 1853.000000
mean 30.639255
std 0.589653
min 28.660000
median 30.600000
max 32.580000
220 uF is a little extreme, but it did reduce the count of outliers outside +/- 2 deg C significantly
Unfortunately, the range of that outliers did not reduce significantly. It seemed there is a possibility the ADC is picking up signals from sources other than the sensor alone. Though at the pin, only the sensor is connected (across a wire to the probe).