# PiDog crashing randomly + battery reading intermittently returns 0

**URL:** <https://forum.sunfounder.com/t/pidog-crashing-randomly-battery-reading-intermittently-returns-0/4624>\
**Category:** General\
**Created:** [May 7, 2026, 4:26am UTC](https://forum.sunfounder.com/t/pidog-crashing-randomly-battery-reading-intermittently-returns-0/4624 "2026-05-07T04:26:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raise](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@raise](https://forum.sunfounder.com/u/raise)\
**Post date:** [May 7, 2026, 4:26am UTC](https://forum.sunfounder.com/t/pidog-crashing-randomly-battery-reading-intermittently-returns-0/4624/1 "2026-05-07T04:26:11Z")

</div>

My PiDog frequently crashes, and the battery reading often returns 0  
I created a small diagnostic script to investigate the issue (see attached video).

From the test, we can observe:

1. The battery is fully charged, and a USB-C cable is connected to the RoboHAT.  
This is to ensure the power input itself is not the problem.

2. The battery level reading intermittently returns 0

3. When the servos are running, they sometimes suddenly halt when the battery reading becomes 0  
At the same time, the green LED near the servo pins also turns off.

4. If I run 4 servos simultaneously (for example during walking tests), the PiDog crashes.  
However, the crash can also happen while idle or even when only a single servo is running.

Has anyone experienced something similar or have any idea what could be causing this?

[Video PiDog crashing randomly + battery reading intermittently returns 0](https://streamable.com/6t633b)
