Pages: [1]   Go Down
Author Topic: Motor Shield R3 Help  (Read 583 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 30
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: