cancel
Showing results for 
Search instead for 
Did you mean: 

Battery level on stm32l0xx

a bb
Associate
Posted on April 30, 2018 at 13:03

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-voltage
2 REPLIES 2
Posted on May 01, 2018 at 01:12

Read the ADC chapter in the reference manual, and have a look at the examples at the end of the RM (or Snippets).

JW

Posted on May 01, 2018 at 22:51

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