Motors won’t work

Hi!

I’m new to arduino so I thought a good long term starter project would be making a drone. I have 3D printed the chassis and all but when I plug in the motors to test them, they start pulsing and turn on and off rapidly. I have tried re writing the code, but to no avail. Someone please help.

Code:

int motor1 = 2;
int motor2 = 3;
int motor3 = 4;
int motor4 = 5;

void setup()
{
pinMode(motor1, OUTPUT);
pinMode(motor2, OUTPUT);
pinMode(motor3, OUTPUT);
pinMode(motor4, OUTPUT);

}

void loop()
{
digitalWrite(motor2, HIGH);
digitalWrite(motor3, HIGH);
digitalWrite(motor1, HIGH);
digitalWrite(motor4, HIGH);
}

//board is arduino UNO

Moderator note : Spam link removed

We need a schematic and a description of your motor drivers

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom... :slight_smile: