# Power instability when running motors

**URL:** https://forum.sunfounder.com/t/power-instability-when-running-motors/3315
**Category:** Robotic kit for Raspberry Pi
**Created:** [June 6, 2025, 4:21pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315 "2025-06-06T16:21:51Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 6, 2025, 4:21pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/1 "2025-06-06T16:21:51Z")

</div>

I am using a MPU6050 gyroscope plugged into the I2C ports of the robot\_hat. When the motors are not running it works great however as soon as I turn them on the power draw turns off the device and sometimes turns of the pi. My plan to fix this is to add a second battery to power the pi directly to reduce the overall pull on the system or to add more battery’s in parallel with the first two. Any advice would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/1X/9b6f0e80eb7727a8f1cef85c09e72edde2b0966b.png) [@system](https://forum.sunfounder.com/u/system)
#### Post date: [June 7, 2025, 5:12am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/2 "2025-06-07T05:12:49Z")

</div>



---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 7, 2025, 1:49pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/3 "2025-06-07T13:49:15Z")

</div>



---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 9, 2025, 7:29am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/4 "2025-06-09T07:29:05Z")

</div>

The method you mentioned is not feasible. The HAT is only compatible with a single set of two 18650 batteries and does not support additional battery connections in series.

I recommend using the MPU6050 gyro and motors while ensuring you have sufficient battery charge. It would also be helpful if you could provide us with a video of the issue you are experiencing.

Additionally, you might try connecting an external power supply to the Raspberry Pi to see if the device continues to shut down.

If you have any further questions, feel free to ask.

---

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 10, 2025, 1:54am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/5 "2025-06-10T01:54:38Z")

</div>

after looking further into the issue I it was a mix of the sensor I added turning off when I turned the motors on (I think this part is still a power issue but not a priority) and the motors not turning off properly making it look like the pi failed to send the correct commands. I have everything backed up to a GitHub repo so I fully reflashed the pi and installed everything following the instructions [here](https://docs.sunfounder.com/projects/picar-x/en/latest/python/python_start/install_all_modules.html). Even when running the default calibration script the motors will only turn on and off 2-4 times before refusing to do anything. The only workaround I have found is to create a new picarx object every time I need to turn off the motors. This solution is not ideal and causes other issues.

```auto
@app.route('/motor')
def control_motors():
	global px
	status = request.args.get('status')
	if(status == 'on'):
		px.set_motor_speed(0, -MOTOR_SPEED)
		px.set_motor_speed(1, MOTOR_SPEED)
		#px.forward(MOTOR_SPEED)
	else:
		#px.forward(0)
		#px.stop()
		px = Picarx() #works for turning off the motors but causes other issues
		#px.set_motor_speed(0, 0)
		#px.set_motor_speed(1, 0)
	return '<h1> car is turning motor {} </h1>'.format(status)

```

---

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 10, 2025, 1:18pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/6 "2025-06-10T13:18:17Z")

</div>

After more testing the full issue is that with the MPU6050 connected to the I2C pins on the motor hat the motors on receiving the stop command will sometimes but no always go to full power in the wrong direction. After this error occurs all subsequent start/stop commands will only change the direction of the motor not the speed and all servos stop responding. this error occurs as long as I have the sensor plugged in on either I2C 1 or 0. receiving data from the sensor seems to make the error more common but its not a considerable difference. The address of the MPU6050 is 0x68 which has no overlap with any other I2C device on the car.

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 10, 2025, 2:39pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/7 "2025-06-10T14:39:24Z")

</div>

We are unsure if the code you are running has been modified.

Currently, we need to confirm whether the issue is related to the software or hardware. Can you run our example code to see if the hardware modules work properly?

Additionally, if there are any abnormalities after running the code, we suggest providing a video of the issue. This will help us analyze and resolve the problem more effectively.

---

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 10, 2025, 2:46pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/8 "2025-06-10T14:46:33Z")

</div>

I ran the second example with all default hardware. here is the [video](https://drive.google.com/file/d/1kDDgkUb-t3knyWppL_-ve4pmtzgeUBN6/view?usp=drive_link)

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 11, 2025, 7:29am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/9 "2025-06-11T07:29:47Z")

</div>

Thank you for sharing the video link. However, it seems the current settings restrict access. To help us review the issue promptly, could you kindly update the sharing permissions to:

“Anyone with the link can view”

---

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 11, 2025, 1:27pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/10 "2025-06-11T13:27:59Z")

</div>

access has been updated

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 12, 2025, 3:40am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/11 "2025-06-12T03:40:00Z")

</div>

From your video, it seems that controlling the Picar-X car’s motors is out of control; even when you release the stop button, it still operates. Is this the issue?

We tested it to verify, and everything worked normally, so we can conclude that it shouldn’t be a software problem.

What version of the Picar-X do you have? Is it the version without a battery?

Have you reinstalled the new Raspberry Pi system and then installed all the software codes? Are you still experiencing the same problem?

What specifications does the battery you are currently using have? Please let us know.

---

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 12, 2025, 12:13pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/12 "2025-06-12T12:13:18Z")

</div>

![WIN_20250612_08_07_53_Pro](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/e/ed5d417da40d93dac85a645f1deab8f65f0dd4fa.jpeg)  
 ![WIN_20250612_08_10_29_Pro](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/2/21e56d8ffc944e54e2831f6a1695df3d2191eaf0.jpeg)

I fully re flashed the pi and installed new software.

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 14, 2025, 6:22am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/13 "2025-06-14T06:22:47Z")

</div>

it appears you may have the older version of PiCar-X. To better assist you, could you kindly share:  
When you purchased the kit and the full picture of the car.

---

<div class="post-metadata">

### Author: ![JackEwing](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JackEwing](https://forum.sunfounder.com/u/JackEwing)
#### Post date: [June 19, 2025, 5:44pm UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/14 "2025-06-19T17:44:32Z")

</div>

I don’t know when it was originally purchased but the board is the RobotHAT V2.0. after further testing I think it is the battery’s and am planning on replacing them with the [EVE 33V](https://imrbatteries.com/products/eve-33v-18650-3200mah-10a-battery?variant=43742164287545) 18650 lipos, they have a peak discharge of 10A would that be safe to run with the car?

---

<div class="post-metadata">

### Author: ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)
#### Post date: [June 20, 2025, 2:27am UTC](https://forum.sunfounder.com/t/power-instability-when-running-motors/3315/15 "2025-06-20T02:27:32Z")

</div>

The battery specifications you mentioned may not be compatible with the PiCar-X.  
We recommend choosing a compatible battery pack according to our battery specifications: [Battery Specifications](https://docs.sunfounder.com/projects/picar-x/en/latest/appendix/battery.html).
