2018-04-30 04:03 AM
hey
First of all I want to say that I'm new here, I'm currently learning a lot about the stm32 but please don't be frustrated if I ask stupid questions . This is my question:
I have a stm32l0xx microcontroller, I'm programming in C and I want to be able to log the battery level. Only problem is that I don't know where to start. Can someone point me in the right direction, or help me with this? I've found some implementations for the stm32F0xx series but i don't know if that will work on my controller.
Thanks for the help
#stm32l0 #battery-voltage2018-04-30 04:12 PM
Read the ADC chapter in the reference manual, and have a look at the examples at the end of the RM (or Snippets).
JW
2018-05-01 01:51 PM
You can also try CubeMX and examples within STM32L0 driver pack:
..\STM32Cube\Repository\STM32Cube_FW_L0_V1.10.0\Projects\STM32L053R8-Nucleo\Examples\ADC\ADC_RegularConversion_Polling