I tried to search a bout how to connect plolou motor with encoder to arduino mega and the motor control shield as in those pics enter image description here if any one knows how to connect those to each other please tell me

enter image description here

enter image description here

  • Did you try anything already, or look up a tutorial online perhaps? – MichaelT Nov 27 '18 at 13:33

A quick look on Pololu's website reveals that:

    Color   Function
  --------  --------------------------------------------
    Red     motor power (connects to one motor terminal)
    Black   motor power (connects to the other motor terminal)
    Green   encoder GND
    Blue    encoder Vcc (3.5 – 20 V)
    Yellow  encoder A output
    White   encoder B output

Thus: Red goes to M1A and Black goes to M1B on the motor shield. The remaining wires are for the encoder and go to Arduino pins. Green goes to Arduino GND, Blue goes to 5V, Yellow and White go to the digital i/O pins of your choice.

Note: Your motor shield has extra 5V and GND pins so you can connect the Blue and Green wires there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.