Controlling 4 motors via arduino

I’m a beginner with the arduino and am trying to make a four wheel toy car and having it run on its own. However, even with all four motors being supplied with transistors, there isn’t enough power with both the 3.3v and 5v outputs being utilized. I’m considering connecting a 9v battery to vin and using that somehow but tbh I know nothing about how to use vin and how to suck power out of it. What should I do?

Not that. Connecting motors to the 5V or 3.3V pins of an Arduino is a really bad idea. The motors need a separate power supply of their own, something like 4 x rechargeable AA batteries may work but you've given no details of what motors you have or what "transistors" you're using or how everything is connected.

A 9V battery might power the Arduino but NOT motors.

So please post details of the components and a circuit diagram showing how everything is connected and powered. Also the code you are using.

Steve

I am trying to build a small toy car that senses a wall and stops before it, turns, and keeps on. Before building the actual model of the car, I first wanted to make sure that I could supply enough power to all four motors with power from a USB cable and outputs from the 3.3 and 5.0V pins. However, they don't even start working. As I start taking away motors, my Arduino can just barely run 2 motors. I am using 2n2222 transistors before each motor. I think that maybe I could output more voltage to the motors by using the VIN pin and putting a 9v battery in there, but I don't know how to take that power out. As you can probably tell, I am a complete beginner. Please help!

See how to use extra power for servo motor

Start by getting the Arduino cookbook and reading it. Also on line there are many videos etc showing the Arduino and how to do what you want. The Arduino a power supply it is NOT!

Start by getting the Arduino cookbook and reading it. Also on line there are many videos etc showing the Arduino and how to do what you want. Remember the Arduino a power supply it is NOT! Once you get some of the basics it becomes a lot of fun.

cvgneebhh:
As I start taking away motors, my Arduino can just barely run 2 motors. I am using 2n2222 transistors before each motor.

The Arduino 5v pin is not intended for powering motors. If you overload it there is a risk of damaging your Arduino.

You need a separate power supply for the motors - perhaps a pack of 4 x AA cells - with the power supply GND connected to the Arduino GND.

...R

Duplicate topics merged and duplicate user deleted