The new Mindstorms v4 and SPIKE Prime hubs include a 2100mAh Lithium-ion battery. How long is it expected to last when running a program?

1 Answer 1


Power consumption and battery life will of course vary based on the load that the hub is driving. Philo has an extensive analysis for motor power consumption, so I'll just look at what the hub itself consumes while running a program to come up with a baseline battery life estimate.

I've uploaded a test Python program to my hub that gently blinks a heartbeat LED:

import hub,utime
while True:

In order to measure the current draw, I first wired up the battery to the hub with the battery outside the hub:

Hub with battery wired up

I then connected a basic multimeter up in series with the hub as a current sensor:

Hub with multimeter

We can see that the Hub with the simple program running consumes about 150mA of current. Assuming ideal usage of the included 2100mAh battery, the hub should be able to run for approximately 2100mAh / 150mA = 14 hours while not driving any peripherals.

Peripherals such as motors (and even the LED display) quickly dwarf the power consumption of the hub itself, but under normal usage we should expect to see several hours of battery life.

  • 1
    Wow! Incredible answer. What do you do in your spare time‽ Jul 29, 2020 at 17:28
  • 2
    @MarkStewart This is actually quite simple in theory - anyone with basic familiarity with electronics could do this. You could be one of those people if you spent some time to learn from the Internet and spend a bit of money on tools. The trickest bit was probably getting the wires to actually connect to the battery connector in the hub. Looks like jncraton used some clip-on probe thingies.
    – user253751
    Jul 29, 2020 at 22:30
  • 2
    Open the battery please. It seems to have basic Philips screws. Wonder if there are plain 18650 cells inside we can easily replace...
    – bert
    Oct 31, 2020 at 14:25
  • @bert I swore I saw a picture of a breakdown, and they were LiPo cells, not LiIon/cylindrical. Nov 6, 2020 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.