I am trying to make a quadcopter with 30a ESCs, 2600KV Emax Brushless motors, and the Flysky 6 channel transmitter/receiver. I have successfully gotten 3 out of the four motors and ESCs spinning with the remote, but the last motor just jiggles, and barely moves at all. What do you think is the problem? Here is my code:
#include <Servo.h>
Servo MotorBottomLeft; // create servo object to control the ESC
int ch3 = 0; // Receiver Channel 3 PPM value
#define rcPin3 10 // Pin 11 Connected to CH3
void setup() {
Serial.begin(9600);
MotorBottomLeft.attach(8, 1000, 2000); // (pin, min pulse width, max pulse width in microseconds)
}
void loop() {
ch3 = pulseIn(rcPin3, HIGH, 20000);
if (ch3 < 1100) {
MotorBottomLeft.write(1000);
}
MotorBottomLeft.write(ch3);
Serial.print(ch3);
}