Home Forums MikroC Pro for PIC Tutorial Discussions I want to Control 2 DC motors and control them simultaneously

Tagged: , ,

This topic contains 5 replies, has 2 voices, and was last updated by  Bitahwa Bindu 4 months, 2 weeks ago.

  • Author
    Posts
  • #2566

    keshena
    Participant

    Hi, Excellent explanation on interfacing dc motor with pic microcontroller with mikroc , I want to connect 2 DC motor’s and control them simultaneously.

  • #2570

    Bitahwa Bindu
    Keymaster

    Yes you can control 2 DC motors simultaneously with this motor controller. You
    can connect the 2nd motor on output 3 and 4 (pin 11 and 14)

  • #2571

    keshena
    Participant

    How Could I program this? I configure my motors at H-bridge . I have turned on
    only one motor, but the second no

  • #2572

    Bitahwa Bindu
    Keymaster

    Did you use this L293D motor controller chip or did you use a different controller?

  • #2573

    keshena
    Participant

    Yes,I used this L293D motor controller.

  • #2574

    Bitahwa Bindu
    Keymaster

    You can control the second motor exactly like the first. have you watched this
    video tutorial: Interfacing DC Motor

    The first motor is enabled by EN1 as in this example, the second motor will be
    enabled by EN2. Then you can control its rotation direction by IN3 and IN4.

You must be logged in to reply to this topic.