# Battery status

**URL:** https://wled.discourse.group/t/battery-status/5407
**Category:** Usermods
**Created:** [May 21, 2022, 7:01am UTC](https://wled.discourse.group/t/battery-status/5407 "2022-05-21T07:01:02Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Rtjeras89](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/rtjeras89/32/3197_2.png) [@Rtjeras89](https://wled.discourse.group/u/Rtjeras89)
#### Post date: [May 21, 2022, 7:01am UTC](https://wled.discourse.group/t/battery-status/5407/1 "2022-05-21T07:01:02Z")

</div>

I try to use the battery status and followed the instruction… 1 line… added #define USERMOD\_BATTERY\_STATUS\_BASIC in the my\_config.h in the wled00 folder than it should work or am i wrong… i tryed several thing but noting work… what happens when i put in the line and build and flash , after flashing the board resets as expect but never start up or turn on… only thing i see is 1 led on my strip is bleu…

can sombody piont me the right direction.

---

<div class="post-metadata">

### Author: ![eried](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/eried/32/3611_2.png) [@eried](https://wled.discourse.group/u/eried)
#### Post date: [September 22, 2022, 8:15am UTC](https://wled.discourse.group/t/battery-status/5407/2 "2022-09-22T08:15:33Z")

</div>

remove that line first and try to get it working without the usermod first

---

<div class="post-metadata">

### Author: ![sebastienvg](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/sebastienvg/32/3789_2.png) [@sebastienvg](https://wled.discourse.group/u/sebastienvg)
#### Post date: [November 6, 2022, 4:30pm UTC](https://wled.discourse.group/t/battery-status/5407/3 "2022-11-06T16:30:20Z")

</div>

I was able to add the usermod, connected a 100k resistor between pin32 and the positive side on the battery however in the UI it shows battery 100% at 4.2V when in fact the battery is down to 3.6V. What am I doing wrong here?

---

<div class="post-metadata">

### Author: ![Rtjeras89](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/rtjeras89/32/3197_2.png) [@Rtjeras89](https://wled.discourse.group/u/Rtjeras89)
#### Post date: [November 6, 2022, 5:21pm UTC](https://wled.discourse.group/t/battery-status/5407/4 "2022-11-06T17:21:22Z")

</div>

Mine is also not precice but a lot better since i use a voltage divider.

---

<div class="post-metadata">

### Author: ![sebastienvg](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/sebastienvg/32/3789_2.png) [@sebastienvg](https://wled.discourse.group/u/sebastienvg)
#### Post date: [November 6, 2022, 5:35pm UTC](https://wled.discourse.group/t/battery-status/5407/5 "2022-11-06T17:35:51Z")

</div>

I just tried on d1mini and it’s rather accurate 0.3v. Are you able to share you voltage divider setup as in what value are you using for the resistors?

---

<div class="post-metadata">

### Author: ![VASILBEAM](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/vasilbeam/32/3627_2.png) [@VASILBEAM](https://wled.discourse.group/u/VASILBEAM)
#### Post date: [November 7, 2022, 7:56pm UTC](https://wled.discourse.group/t/battery-status/5407/6 "2022-11-07T19:56:14Z")

</div>

Hello, is it possible to somehow display the battery indication on the display?
