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