Skip to main content
a bb
Visitor II
April 30, 2018
Question

Battery level on stm32l0xx

  • April 30, 2018
  • 2 replies
  • 597 views
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
This topic has been closed for replies.

2 replies

waclawek.jan
Super User
April 30, 2018
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

Bogdan Golab
Lead
May 1, 2018
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