DC motor with APM

I would like to know do I need any component to control a DC brushed motor because I currently have a ESC, DC brushed motor, APM.

Thanks .

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

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....

  • 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
    }
    }
  • how do i go about controlling the ESC? Where can i find some example?
  • how do i declare the pin for the esc on the apm board? For eg the esc is connected to the pin OUT1.
  • 3D Robotics
    That will work fine. APM works with your ESC, not your motor.
This reply was deleted.

Activity