# Badger 2040 W - battery vs. usb

**URL:** <https://forums.pimoroni.com/t/badger-2040-w-battery-vs-usb/21698>\
**Category:** Support\
**Created:** [March 13, 2023, 9:04am UTC](https://forums.pimoroni.com/t/badger-2040-w-battery-vs-usb/21698 "2023-03-13T09:04:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjoern](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@Bjoern](https://forums.pimoroni.com/u/Bjoern)\
**Post date:** [March 13, 2023, 9:04am UTC](https://forums.pimoroni.com/t/badger-2040-w-battery-vs-usb/21698/1 "2023-03-13T09:04:46Z")

</div>

With the badger on usb power, it’s nicely responsive. However, on battery, the exact same image reacts differently.

For example, the QR code app usually doesn’t launch when selected from the menu. Also, when it launches, it flashes the ‘no qr codes’ text, despite a qr code existing. When I press up or down, the QR code appears. The happens both on AA power and LiPo.

On USB power, the QR code app launches straight away, and straight away displays the QR code.

This issue (unreliability of A+C combination) also seems to just happen on battery power:

> [@Badger 2040 W - alternative key to return to menu](https://forums.pimoroni.com/t/badger-2040-w-alternative-key-to-return-to-menu/21688):
>
> Hello, I find the A+C combination a little unreliable. Given that (e.g.) key A doesn’t do much in the badge or QR codes, what would I need to do to set key A to return to the menu? I.e., suppose qrgen.py is running - how do I set badger2040.BUTTON\_A to return to the menu? I tried to add badger2040.pressed\_to\_wake(badger2040.BUTTON\_A) to qrgen.py and launcher.py, but didn’t work. Could somebody let me know how to do this?

I’m running the latest image (v1.19.16 micropython).

---

<div class="post-metadata">

**Author:** ![Bjoern](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@Bjoern](https://forums.pimoroni.com/u/Bjoern)\
**Post date:** [March 15, 2023, 4:23pm UTC](https://forums.pimoroni.com/t/badger-2040-w-battery-vs-usb/21698/2 "2023-03-15T16:23:06Z")

</div>

Issue reported here: [Erratic performance of badger OS when using battery · Issue #6 · pimoroni/badger2040 · GitHub](https://github.com/pimoroni/badger2040/issues/6)
