gfroerli / firmware

Firmware for the water temperature sensor project
GNU General Public License v3.0
6 stars 1 forks source link

Power Supply monitoring #69

Open rnestler opened 4 years ago

dbrgn commented 4 years ago

Adjust the resistor values so that we can use the internal ADC reference.

dbrgn commented 3 years ago

Hardware changes are tracked in https://github.com/gfroerli/hardware-v2/issues/28.

TODO as per this issue: Ensure that the supply monitor works, that it returns the correct values, and that values <3.3V can be measured.

dbrgn commented 3 years ago

We should test this on the current board before ordering the new resistors.

According to @rnestler we can power the devboard from USB while putting a different voltage on the ADC measurement pin.

rnestler commented 2 years ago

So we actually don't need any different hardware. With Vrefint we can measure VDD and with the precise VDD measurement we can measure the supply voltage even when VDD is dropping.