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.