PaxInstruments / labwiz-board

A development board based on the STM32 series processors specifically targeting the STM32F103RxT series.
4 stars 2 forks source link

Measure battery voltage #6

Closed charlespax closed 7 years ago

charlespax commented 8 years ago

Add voltage-divider from VBAT into one of the ADC inputs, so we can measure the battery voltage at least. Maybe a little FET as well, so we can disconnect the divider (as it will leak otherwise). See http://community.paxinstruments.com/t/pax-instruments-multilogger/167

charlespax commented 8 years ago

I've added a voltage divider with two 10k resistors. This bad and dirty just to have the ability to measure the battery voltage. We should revisit this when we implement battery charging #10. Moving the proper implementation of this issue to the next Milestone 2.

screen shot 2016-05-20 at 02 56 26

charlespax commented 8 years ago

Closing issue. We can open a new issues if it comes up upon implementing battery charging.

charlespax commented 8 years ago

Here is the current circuit. JeeLabs had some good information about adding the capacitor to reduce noise and allow the highest value resistors to be used.

screen shot 2016-09-13 at 19 02 47

I still need to select the best resistor values.

charlespax commented 7 years ago

Using a fuel gauge. Done.

screen shot 2017-02-02 at 15 50 45