Brushless motors

awesome! do you have the sketch for just getting the motor started. having issues with mine

Glad you liked it! Heres some simple code. I used the servo library to control it. You basically have to give it a neutral (1.5ms) pulse for some time (most ESCs wont turn on receiving a signal to move the motor - this is to prevent motors spinning if you turn it on with the transmitter giving a signal), then you can give it any other pulse (1ms for backward, 2ms for forward).

#include Servo.h

Servo brushless_motor;

void setup()
{
  brushless_motor.attach (9);
  brushless_motor.writeMicroseconds (1500);
  delay (3000);
}

void loop()
{
  brushless_motor.writeMicroseconds (2000);
}

Tell me if this works, I just wrote it on the spot, so it's untested (didn't save the first sketch I made). :slight_smile:

You can get the full code (in the last example) here: http://www.4shared.com/office/RG26sNxl/BLDC_test.html?

it's a bit buggy (with me forgetting to clear the LCD!) but it tests the motor well!