This question already has an answer here:
I would like your opinion on the raspberry pi 3's GPIO, 5V pin. I am interfacing a motor controller board to the Raspberry Pi 3. The voltage requirement for the motor controller is 5V and the peak output current for the 2 channel is 2A respectively.
I am using the motor controller for a mobile robot. The motor controller is L298N and i will be connecting two gearmotors with encoders to it. The gear motors requires a power supply of 12V. The motor needs a current specification of 0.3A each. The raspberry pi is powered by a Lithium battery of 11V(regulated to 5v)
I am also connecting a Gyroscope and Accerometer to the 3.3V GPIO pins of the Raspberry Pi.
I have concerned that the pin that supply 5V (found in the 40-pin extended GPIO) may not be supplying what it promise. Would you recommend me to use the 5V pin found in the 40-pin extended GPIO to supply voltage to my motor controller or a independent voltage supply to power the motor controller? Is my worries unnecessary?
Edit: added more details