Kakle
Posts: 1
Joined: Sat Jan 14, 2017 8:49 am

Motors and Pi from same power source

Sat Jan 14, 2017 10:30 am

Can someone confirm if there is any risk to parts to power both the Raspberry Pi and DC motors from the same powerbank (5v 3.4A).

Components
Raspberry Pi 3
6600mAh 5v DC 3.4A (shared over 2 outlets)
L298N Dual H Bridge DC Driving Board
2x 6v motors (700mA stall)
SenseHAT
USB wireless dongle for mouse and keyboard

Thank you in advance

pcmanbob
Posts: 9465
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Motors and Pi from same power source

Sat Jan 14, 2017 12:16 pm

Hi

You may find that if both motors draw near stall current the there will be sufficient voltage drop on your battery pack to case the Pi to reboot/shutdown. The only real risk is that you might corrupt your SD card if the Pi reboots/shutdowns randomly.

In this situation its always better to run one battery for the Pi and another for the motors.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
Gert van Loo
Posts: 2487
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Motors and Pi from same power source

Sat Jan 14, 2017 4:07 pm

Five minutes ago I answered another question about Pi and motors.
So almost the same answer: Have a look here: http://www.gertbot.com/toaste.html
I had no problems running from the 9V battery but then I had a very, very clever motor controller :D

Stall current depend on your motors. Beware that it is not so much stall as ramp-up inrush current which
can draw a lot of current. Expect total different problems like start and stop effects:
Toast-E would go vertical when starting, like a rearing horse.
Also when I stopped it would tumble over because of the momentum.
In my case it was solved in 1 minute by telling the motor controller to ramp-up and ramp down.
You have to program that all yourself.

Post edit: I JUST! saw a GIF on the Raspberry-Pi twitter page which shows exactly this behavior.
A robot arm moving a bottle and a plastic cup spilling all over the place because of the abrupt start-stop motions.

Return to “Automation, sensing and robotics”