# Troubleshooting/Securing Battery Pack For Digital Egg Drop

**URL:** <https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441>\
**Category:** micro:bit\
**Created:** [June 9, 2026, 5:53pm UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441 "2026-06-09T17:53:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrEsports](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@MrEsports](https://forum.makecode.com/u/MrEsports)\
**Post date:** [June 9, 2026, 5:53pm UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/1 "2026-06-09T17:53:46Z")

</div>

I can’t be the first person to try this, but I’m trying to get a Microbit to act as a digital “egg” for an egg drop contest. I have linked the code here, and I think it works (at least it does most of the time), but I’m adding it in case someone sees something I don’t.

The issue is that half the time I drop it, the Microbit resets. I think this is because the batteries in the battery pack jiggle loose on impact. I have them in a cardboard sleeve that has paper towels to absorb the shock, but it still isn’t good enough. I’ve been trying to find solutions everywhere, but I’m just finding suggestions that aren’t strong enough to keep the batteries inside the packets.

Here’s a video of the way I’m packing the digital “eggs.”

[Egg Drop Challenge with MicroBit](https://drive.google.com/file/d/1-NSKZpGN4cKqTuVzorIsMP3lsHI9n1lw/view?usp=sharing)

And here’s my code, just in case. Has anyone had experience doing this, and can you make any suggestions about securing the batteries? Thanks!

> **[Egg drop](https://makecode.microbit.org/S59221-51035-18267-80484)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.

---

<div class="post-metadata">

**Author:** ![MakeCode](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@MakeCode](https://forum.makecode.com/u/MakeCode)\
**Post date:** [June 9, 2026, 5:59pm UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/2 "2026-06-09T17:59:39Z")

</div>

This is super cool! I’ll see if the rest of the team has insights about this as well, but I’m wondering if it’s possible that on some drops, the sleeve is hitting the reset button? From the video, it looks like you have a decent gap cut out in the sleeve, but maybe if it lands just right, it gets pressed?

---

<div class="post-metadata">

**Author:** ![MrEsports](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@MrEsports](https://forum.makecode.com/u/MrEsports)\
**Post date:** [June 10, 2026, 3:44am UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/3 "2026-06-10T03:44:49Z")

</div>

It certainly is possible, but for a couple of reasons, I think it’s the battery. The first reason is that I’ve made about 1/2 dozen of these things, in a similar way, some with even bigger gaps, and the issue is pretty consistent.

The other reason is I’ve _kind of_ solved it. Or at least found a few workarounds. I noticed that a small phone charger plugged into the USB port of the microbit works perfectly. It did, however, end up breaking off the accelerometer on one of my Microbits, so I’m trying to think of a way to protect it better before trying something like that again. I have a battery pack from Forward Education that I just secured the Microbit with tape, and that also works. So, if you have some of those resources, you can make a better version of the module I show off in the video. It’s bulkier though.

The fix that works with just what’s supplies in the Microbit kit is to use hot glue to secure the batteries in. a strupe below each battery, and one between the two batteries when they’re both settled into the pack. I don’t know how long this solution will work, but it seems pretty solid. I was able, with some difficulty, to remove batteries that had died from a pack I was testing with, and the battery pack is still usable. I’m going to remake the video I posted above, and include what I found out, as well as a cautionary tale about protecting the accelerometer. At least until someone has a better idea.

---

<div class="post-metadata">

**Author:** ![Don](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/don/32/17989_2.png) [@Don](https://forum.makecode.com/u/Don)\
**Post date:** [June 10, 2026, 4:05pm UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/4 "2026-06-10T16:05:00Z")

</div>

You want to expose the micro:bit to extreme g forces. You don’t want to expose the battery pack to extreme g forces. Therein lies the problem.

One solution is to get long thin wires to make an extension cord for the battery pack. Long enough to reach from the drop to the landing.

Another solution is to get a Power:bit from Elecfreaks. $5.90 USD. The button batteries are held very tight. Actually too tight. It should hold up at least as well as micro:bit itself.

---

<div class="post-metadata">

**Author:** ![MrEsports](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@MrEsports](https://forum.makecode.com/u/MrEsports)\
**Post date:** [June 10, 2026, 5:40pm UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/5 "2026-06-10T17:40:40Z")

</div>

at 10-15 feet drop, I’m not sure an extension cord would be practical (although it probably would work)

That board looks pretty interesting. I’ll look into it. I know that Forward Education has a rechargeable battery pack for about $6.00. Since it doesn’t work on AAA batteries that are spring-loaded, it would probably work better.

One thing I noticed was that USB charging ports work really well, but they make the packet a bit bulky. I had some success as well with hot glue in the battery packs. A little messy, but fully removable, with effort. I’m going to redo the video I posted with this updated information.

---

<div class="post-metadata">

**Author:** ![Don](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/don/32/17989_2.png) [@Don](https://forum.makecode.com/u/Don)\
**Post date:** [June 11, 2026, 10:05pm UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/6 "2026-06-11T22:05:38Z")

</div>

One thing about using AAA batteries is that it is close to the weight of an egg. With the power:bit you need to include about 12 pennies.

---

<div class="post-metadata">

**Author:** ![MrEsports](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@MrEsports](https://forum.makecode.com/u/MrEsports)\
**Post date:** [June 16, 2026, 2:40am UTC](https://forum.makecode.com/t/troubleshooting-securing-battery-pack-for-digital-egg-drop/44441/7 "2026-06-16T02:40:23Z")

</div>

that’s a good tip.

Here, as promised, is my solution, and a link to my updated code, which reflects the better understanding of the Microbit accelerometer that I now have:

> **[Egg Drop With Microbit (and how to protect your Microbit)](https://app.screencastify.com/watch/S1J9YbGVmhMZ7vt4YKyu)**
>
> This is my explanation of how to use my Microbit digital Egg code and how to protect the Microbit and battery from damage as much as possible. Use at your own risk. Here is the code, if you want to download it:...

> **[Egg drop](https://makecode.microbit.org/S59221-51035-18267-80484)**
>
> Made with ❤️ in Microsoft MakeCode for micro:bit.
