joskem
Junior Member level 3
Hello,
I have a temperature sensor connected to a 12-bit microcontroller, with the reference voltage being set to 2.5V (sref:REFERENCE_VREFplus_AVss, ref2_5v: REFVOLT_LEVEL_2_5).
When the sensor and microcontroller are fed through a battery board (3.7V battery with 3V regulator), then the ADC output is around 1630. When I remove the battery board and connect the sensor and microcontroller to my laptop through a USB cable, then the ADC output is around 2800.
Why does this happen, and how can I convert the ADC readings into voltage in each case?
Thanks a lot!
I have a temperature sensor connected to a 12-bit microcontroller, with the reference voltage being set to 2.5V (sref:REFERENCE_VREFplus_AVss, ref2_5v: REFVOLT_LEVEL_2_5).
When the sensor and microcontroller are fed through a battery board (3.7V battery with 3V regulator), then the ADC output is around 1630. When I remove the battery board and connect the sensor and microcontroller to my laptop through a USB cable, then the ADC output is around 2800.
Why does this happen, and how can I convert the ADC readings into voltage in each case?
Thanks a lot!