#include <Servo.h>
Servo Brushless1;
void setup()
{
Brushless1.attach(9);
Serial.begin(9600);
Brushless1.write(0);
Serial.print("Arming the motor! ");
}
void initialize_motor()
{
Serial.print("Okay, Starting to initailize...\n");
Brushless1.write(180);
delay(2000);
}
void testConstantSpeed() {
int testConstantSpeed = 164;
delay(10000);
Brushless1.write(testConstantSpeed);
Brushless1.write(testConstantSpeed);
}
void loop() {
initialize_motor();
testConstantSpeed();
}
.
i have this code but my BLDC is not working
Moderator: Add tags to code[/[/color]b]