MegaPi - DC motor driver capabilities?


#1

I have a MegaPi board and want to drive two DC motors. I see the green 4-pin ports on Ports 1 thru 4 but haven’t seen any examples or documentation on driving 2-wire DC motors from those ports. Just purchased the encoder/DC motor drive shield (http://www.makeblock.com/megapi-encoder-dc-motor-driver), thinking that I needed it to drive the motors but looks like it’s more for an encoder driver shield. Is this shield what I need to drive simple 2-wire DC motors? If so, which of the 6 pins on the shield do I use to drive 2 motors? Can I drive simple 2-wire DC motors straight from the green 4-pin ports? If so, which of the 4 pins do I use to drive 2 motors? I can see tiny xA+ and xA- on the bottom of each 4-pin group but wanted to double check before I wired motors into them. Also, if I can drive them straight from the green 4-pin ports, does anyone have some example code (function calls, header files, etc.) to get me started? Thanks!


#2

Oops… I think I found my answer right here: http://learn.makeblock.com/en/ultimate2-arduino-programming/, which states:
(3) Connect the terminal of DC motor (Orange) to the green contact 1A+ and 1A- on MegaPi (1B+ and 1B can be connected to the other motor).
(4)Open the application program,click File->Examples->MakeBlockDrive->example->Me_MegaPiDCMotor->MeMegaPiDCMotorDriverTest
So I guess I don’t need that shield for driving DC motors after all but will be handy for an encoder someday.


#3