I am trying to control a brushless motor with WeMOS D1 ESP8266
The motor controller and motor specs are below:
A 11.1v LiPo battery powers both the controller and ESP8266 (VIN, GND, D9-GPIO2)
Turning on the controller spins its fan. but the motor does not spin nor does it beep.
What is the arming procedure to get the beeps to get the motor started?
Also, the ESC has a built-in switch. Should this be turned on at the time Setup() is run? If the switch is turned on, ESC fan immediately starts spinning.
Coded as per this:
I was able to arm it ! Well partially. Need to arm and use it without resetting Arduino in-between.
Uploaded above code to Arduino
Turned on the ESC switch. Fan started spinning.
Around i=76 in setup() heard 3 beeps and then nothing happened
Reset Arduino again
Around i=76 heard 1 beep in setup()
loop() got executed and motor started spinning wildly that battery got disconnected.
How do I make sure 3 beeps and then the 1 beep happen without Arduino reset in between?
What does variable i mean in the code above? Speed or angle or throttle or frequency or PWM ?
How do I gradually accelerate the motor?
Where can I get something to clamp down the motor? Home depot?
void setup ()
int i = 0;
//Give some time before you start anything like switching on your ESC / Motor
Serial.print("Arming Test Starts in ");
for(i =10; i > 0; i--)
// Watch for the tone when the ESC gets armed
for(i = 60; i < 80; i++)