i fail to understand how are you running a DC motor with an ESC? because to my knowledge ESC have 3 power output plugs while DC motors just have 2 power inputs....
I have tried the following code from the APM library but it seems that the motor does not move . I have connected the ESC pin for signal(yellow colour) to pin 9 of APM. Where do I go wrong?
#include
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
{
myservo.write(10); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
{
myservo.write(0); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}
Replies
i fail to understand how are you running a DC motor with an ESC? because to my knowledge ESC have 3 power output plugs while DC motors just have 2 power inputs....
#include
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
{
myservo.write(10); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
{
myservo.write(0); // tell servo to go to position in variable 'pos'
delay(15); // waits 15ms for the servo to reach the position
}
}