MotorsConnection
BrushedDCmotor.YoucandrivetwoBrushedDCmotorsbyconnectingthetwo
wiresofeachoneinthe(+)and(‐)screwterminalsforeachchannelAandB.In
thiswayyoucancontrolitsdirectionbysettingHIGHorLOWtheDIRAandDIR
Bpins,youcancontrolthespeedbyvaryingthePWMAandPWMBdutycycle
values.TheBrakeAandBrakeBpins, ifsetHIGH,willeffectivelybraketheDC
motorsratherthanletthemslowdownbycuttingthepower.Youcanmeasurethe
currentgoingthrough theDCmotorbyreadingtheSNS0andSNS1pins.Oneach
channelwillbeavoltageproportionaltothemeasuredcurrent,whichcanberead
asanormalanaloginput,throughthefunctionanalogRead()ontheanaloginput
A0andA1.Foryourconvenienceitiscalibratedtobe3.3Vwhenthechannelis
deliveringitsmaximumpossiblecurrent,thatis2A.
PhysicalCharacteristics
ThemaximumlengthandwidthoftheMotorShieldPCBare2.7and2.1inches
respectively.Fourscrewholesallowtheboardtobeattachedtoasurfaceorcase.
Notethatthedistancebetweendigitalpins7and8is160mil(0.16"),notaneven
multipleofthe100milspacingoftheotherpins.
https://store.arduino.cc/usa/arduino‐motor‐shield‐rev312‐6‐17