Go Down

Topic: Motor Shield R3 Help (Read 621 times) previous topic - next topic

maxwee2001

I just purchased motor shield r3 and there is not a lot of information out there.
I will be using it with a stepper motor and my application requires 5 pins.
My questions are:
- What pins are not used by the motor shield.
- Can I use the <AFMotor.h> library that is found on: http://www.ladyada.net/make/mshield/use.html?
Thanks for your help.

dxw00d

There may not be much information, but there is this:
Quote
The shield's pins, divided by channel are shown in the table below:

Function   pins per Ch. A   pins per Ch. B
Direction   D12   D13
PWM   D3   D11
Brake   D9   D8
Current Sensing   A0   A1

If you don't need the Brake and the Current Sensing and you also need more pins for your application you can disable this features by cutting the respective jumpers on the back side of the shield.

The additional sockets on the shield are described as follow:

    Screw terminal to connect the motors and their power supply.
    2 TinkerKit connectors for two Analog Inputs (in white), connected to A2 and A3.
    2 TinkerKit connectors for two Aanlog Outputs (in orange in the middle), connected to PWM outputs on pins D5 and D6.
    2 TinkerKit connectors for the TWI interface (in white with 4 pins), one for input and the other one for output.


Which tells you the pins it uses, from that, you can figure out whether the pins you want are available.

I think it uses different pins than the AFMotor library.

maxwee2001

So is it possible to use the AFMotor library?
Maybe by swapping pins around or something?

Go Up