E-Flite ESC for Helicopter Control

Hi everyone,

So I’m trying to control the speed of helicopter blades using and E-Flite 3-in-1 control unit hooked up to an Arduino, but I’m having a bit of difficulty. The ESC is connected to a DC motor, and I had been using a few tutorials to figure out how to calibrate and run the motor using the servo library. I had the ground and signal wires in the Arduino, and the controller is definitely getting a signal because the LED will changes color, but the motor still refuses to run. Is this a matter of tweaking it until it works or am I going about it the wrong way. This is the code I was using. Thanks!

#include <Servo.h>

#define MAX_SIGNAL 2000
#define MIN_SIGNAL 700
#define MOTOR_PIN 9

Servo motor;

void setup() {
  Serial.begin(9600);
  Serial.println("Program begin...");
  Serial.println("This program will calibrate the ESC.");

  motor.attach(MOTOR_PIN);

  Serial.println("Now writing maximum output.");
  Serial.println("Turn on power source, then wait 2 seconds and press any key.");
  motor.writeMicroseconds(MAX_SIGNAL);

  // Wait for input
  while (!Serial.available());
  Serial.read();

  // Send min output
  Serial.println("Sending minimum output");
  motor.writeMicroseconds(MIN_SIGNAL);

}

void loop() {}

You are going to have to work out what arming sequence works for your ESC,
but starting with maximum drive is definitely not going to be it! Try minimum,
wait for ESC to beep, then gradually increse? Find docs for your ESC?