I've built a quadcopter with four brushless motors and ESCs (30A). I'm using an Arduino to control them. I haven't written any complex code; just enough to get them running. Everything is fine until I send a number over 920 to the serial. Then, for some reason, all the motors stop spinning. I'm using three freshly bought and charged LiPo cells (V = 11.1V). Here is the link for the site that I bought them from (I cannot seem to find any other resource about them) : 4x A2212 1000KV Outrunner Motor + 4x HP 30A ESC + 4x 1045 prop (B) Quad-Rotor.
When I tried turning on only one motor, I could write up to about 1800 microseconds, while both with 4 and with 1 motor, the minimum that it works is 800.
Can somebody explain why this happens and I how I can fix it?
Here is my code:
#include <Servo.h>
int value = 0;
Servo first,second,third,fourth;
void setup() {
Serial.begin(9600); // start serial at 9600 baud
first.attach(6);
second.attach(9);
third.attach(10);
fourth.attach(11);
}
void loop() {
first.writeMicroseconds(value);
second.writeMicroseconds(value);
third.writeMicroseconds(value);
fourth.writeMicroseconds(value);
if(Serial.available() > 0){
value = Serial.parseInt();
}
}