Hi Guys,
I am building quadcopter and I have strange problem when using 4 ESC's(There are a lot of ESC questions here in the forum but I was unable to find similar to mine)
In general I have 4 ESC and 4 motors /all are the same/ .
I am able to arm them and I am able to start them, but the problem is that they doesn't start and run simultaneously.
I am calling the following code that should speed up the motors:
int m1CWSpeedMapped = map(m1CWSpeed, 0, 100, 0, 180);
int m2CCWSpeedMapped = map(m2CCWSpeed, 0, 100, 0, 180);
int m3CCWSpeedMapped = map(m3CCWSpeed, 0, 100, 0, 180);
int m4CWSpeedMapped = map(m4CWSpeed, 0, 100, 0, 180);
m1CWServo.write(m1CWSpeedMapped);
m2CCWServo.write(m2CCWSpeedMapped);
m3CCWServo.write(m3CCWSpeedMapped);
m4CWServo.write(m4CWSpeedMapped);
all speeds are the same: m1CWSpeed == m2CCWSpeed == m3CCWSpeed == m4CWSpeed
I am starting with 0 and increase the speed by 1 and when all the speeds goes to 28 only m2CCWServo starts to spins.
when the speeds goes to 29 m1CWServo and m3CCWServo starts to spin but m4CWServo is still not spinning.
Then when I increase the speed to 30 all the motors are spinning but there is a obvious difference in the rpm's of the first motor started m2CCWServo and the last motor started m4CWServo .
In my setup() funcion I am arming the ESC's as this:
void arm()
{
m1CWServo.write(0);
delay(3000);
m2CCWServo.write(0);
delay(3000);
m3CCWServo.write(0);
delay(3000);
m4CWServo.write(0);
delay(3000);
}
All 4 motors are the same and all 4 ESC's are the same/no name 30A escs without datasheet or any description except 30A/
I am using Arduino uno R3
Any ideas why this is happening?
Thanks
Anton