Measure battery level

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiEl_3261856
Level 2
Level 2
First like given

I have to measure my battery level by the time that passes,

every 5 minutes dropped 1% (range of between 100-0)

How do I implement this? Are there any examples?

thanks

0 Likes
1 Solution
Anonymous
Not applicable

I assume you mean measure the battery voltage every 5 minutes. This thread: http://origin-www.cypress.com/forum/psoc-4-ble/coin-cell-battery-voltage-measurement has examples for measuring battery voltage.

Otherwise, there are a few other battery measurement methods that work in different ways.

If you merely want the battery level to mimic a timer that decrements the battery level by 1% every 5 minutes, then you can use a timer for 5 minutes and an integer that decrements when the timer hits each 5 minutes period. (no examples for this)

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

I assume you mean measure the battery voltage every 5 minutes. This thread: http://origin-www.cypress.com/forum/psoc-4-ble/coin-cell-battery-voltage-measurement has examples for measuring battery voltage.

Otherwise, there are a few other battery measurement methods that work in different ways.

If you merely want the battery level to mimic a timer that decrements the battery level by 1% every 5 minutes, then you can use a timer for 5 minutes and an integer that decrements when the timer hits each 5 minutes period. (no examples for this)

0 Likes