...
Our first step is designing an STM32 board with a battery charger, a battery connector, and an ADC connection to read the battery’s voltage. Most lithium batteries today have a charge voltage of 4.2V, but most STM32s have a maximum voltage of 3.6V. We need to build a voltage divider such that voltage measured by the ADC is of the verified range, but we cannot use the ADC to read an analog voltage which is higher than the supply voltage.
The voltage divider diagram will be added in some time (I am not a 100% sure of the connections so I will make it next time we go) but we connected the resistors in series and connected the STM32 ADC port (PA1) between the resistors with one end of the resistors having the battery and the other end connected to the load.
The laptop has to be connected to the STM32 and then some code can be used to get access to the voltage reading of the ADC (the code hasn’t been finalized and will be implemented we go next time in the bay).
Info |
---|
Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu. |
\uD83D\uDCCB Related articles
...