Raspberry Pi Asked on October 5, 2021
I am currently going through the tutorials included with those kits that you can get for the Pis with breadboards and components, etc. Anyway, in the tutorial, I am making the following circuit:
In the tutorial, it insists you use the breadboard power supply with a 9v battery, to avoid damaging the Raspberry Pi.
I have researched the motor a little bit (They don’t provide a data sheet), but I believe they are similar to adafruits 130 toy motors. For reference, they’re rated at 6v, and stall current is about 500mA. The L293D has a maximum output of <700mA anyway.
My question is this, for the sake of knowing if it’s possible, is that why can’t I just hook this up to the 5v pin on my RPI? It is a Model 4b, and I know they are directly linked to the power supply of the Pi. The power supply I’m using for my Pi is rated at 3A, so what’s the problem here?
I should note that the idea of this circuit is to use the pontentiometer to control the speed and direction of the motor.
Stall current is only one part of the story: the resulting undervoltage may crash the system, but it's not likely to do any damage to the hardware.
However, a motor is an inductive load which will produce a (potentially) very high voltage when you switch it off. Incorrectly powering motors, relays, electromagnets, etc. is by far the most common reason of dead Arduinos and Pies. Powering such loads with a separate supply (especially batteries which are very good at absorbing overvoltage) is by far the simplest way to make such loads safe, if you don't fully understand where the high voltage might go.
Of course, it's not the only way, and, if done right, you can power a motor and sensitive electronics from the same supply.
Answered by Dmitry Grigoryev on October 5, 2021
I would be quite happy powering that circuit from the Pi's 5V rail.
You are not directly powering the motor, you are powering a L293D motor driver which in turn powers the motor. The L293D incorporates all the protection needed to prevent back EMF from reaching the Pi (back EMF may be caused when the motor is turned off or when it in manually turned).
Answered by joan on October 5, 2021
The problem is not because of the power supply given to the raspberry pi. The problem is with the amount of current the Pi itself is rated for. Yes the power supply of the Pi 4 can handle 3A of current but 3A of current is a lot of power to try and draw through the traces in the pcb of the Pi and considering it is only rated to 600mA passive draw with no peripherals. Now I think that that gpio 5V is connected to the same power bus as the USB peripherals which can only handle 1.2A max. So if the motor was the only thing you were hooking up to it it might be able to handle it but even then it would be a risk since motors can often spike in current usage and you wouldn't have any sort of back current protection if the motor gets spun on its own. If the motor spins on its own it can force current to the Pi which could cause serious damage to some of that circuitry. So is it possible maybe but usually when it comes to motors its a good idea to have an independent power supply or at least a protection circuit. The pi doesn't have any of that so it not a good idea unless you want to go through a couple of raspberry pi's testing out the limits. You can find the general power ratings in the Pi documentation but a good rule of thumb is to have any high powered device running on a different source than the pi itself
Answered by Binvention on October 5, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP