View on GitHub


Arduino Motor Shield

I have been working with the Arduino Motor Shield. Here are some of the basic specs for the shield:

This Shield has 4 main functions:

**Function****pins per Ch. A****pins per Ch. B**
*Current Sensing*A0A1

The important thing to understand about this shield is the interface. Each channel has independent Direction, PWM, Brake, and Current Sensing. Setting the Direction Digital HIGH or LOW, moves the motor Clockwise or Counterclockwise. The PWM Pin can be set to Digital HIGH or LOW, which turns the motor On or Off, or can we sent and analogWrite to control the speed. When Brake is set to HIGH it forces the motor to Stop.

The last feature on the board is the Current Sensing, which you can access by doing a analogRead on the analog 0 and 1 pins. One important thing on the shield is that there are 2 soldered pins on the back that enable this feature.

IMPORTANT: When the current sense pins are soldered they cannot be used as general analog pins. You will get bad readings if you try to use A0 and A1.

DC Motor

This shield can run 2 DC motors

This is an example of running 2 DC Motors with Current Sense.