by ril3y on Tue Oct 27, 2009 1:15 pm

Limor wanted a sticky in the forum so here it goes:

What pins can be used for external components on the Arduino with Ladyada's Motor Sheild? (V1.x versions)

Answer:

What pins are not used on the motor shield?
All 6 analog input pins are available. They can also be used as digital pins (pins #14 thru 19)

Digital pin 2, and 13 are not used.

Digital pin 11: DC Motor #1 / Stepper #1 (activation/speed control)
Digital pin 3: DC Motor #2 / Stepper #1 (activation/speed control)
Digital pin 5: DC Motor #3 / Stepper #2 (activation/speed control)
Digital pin 6: DC Motor #4 / Stepper #2 (activation/speed control)
These pins are in use only if the DC/Stepper noted is in use

Digital pin 4, 7, 8 and 12 are used to drive DC motors and Stepper motors via the 74HC595 serial-to-parallel latch
All these pins are in use if any DC motors or steppers are used

Digitals pin 9: Servo #1 control
Digital pin 10: Servo #2 control
These pins are used only if that particular servo is in use

------------------------------------------------
AND
------------------------------------------------

How can I connect to the unused pins?


The analog pins (analog 0-5 also known as digital pins 14-19) are broken out in the bottom right corner.

Pin 2 has a small breakout since its the only truly unused pin

The remaining pins are not broken out because they could be used by the motor shield. If you are sure that you are not using those pins then you can connect to them by using stacking headers when assembling the kit or soldering onto the top of the header with wires
ril3y
 
Posts: 5
Joined: Tue May 05, 2009 4:27 pm

by adafruit on Tue Oct 27, 2009 5:56 pm

w0ah! someone helping out? thanks! :)
User avatar
adafruit
 
Posts: 11502
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

by jwm20 on Wed Dec 02, 2009 10:40 pm

In regard to using the stacking headers on the motor shield, I think I'd like to assemble the motor shield I ordered a couple days ago with them, but I'm not exactly sure what the best method for assembly would be. In the online instructions at http://www.ladyada.net/make/mshield/solder.html the headers are inserted in the Arduino for alignment, and soldered from the top of the PCB. If the female stackable headers are used, I am thinking that the header itself will block the top contact, and if they're soldered from the bottom, then they couldn't be aligned perfectly in the Arduino. Without having the parts in my hands, I can't tell just how much of a problem this might be, but if anyone has suggestions for this part of the assembly I'd be happy to hear. Thanks a lot!!
jwm20
 
Posts: 11
Joined: Wed Dec 02, 2009 10:24 pm

by Len17 on Wed Dec 02, 2009 11:25 pm

Here's what I did:
  • Use tape to hold the header piece in place.
  • Try to get it as straight as possible, then solder just one pin. Solder on the bottom of the board.
  • Check if the header is straight and flush. If it's not, re-heat the solder and nudge it.
  • When it looks right, solder the rest of the pins.
Looking at my motor shield, the header strips are almost but not quite in line. Close enough to fit on the Arduino.
User avatar
Len17
 
Posts: 393
Joined: Sat Mar 14, 2009 6:20 pm

by mmmalmberg on Tue Jan 12, 2010 5:28 pm

What about the RX & TX lines? They appear to be unused on the motor shield, correct?
mmmalmberg
 
Posts: 20
Joined: Thu Dec 31, 2009 7:48 pm

by adafruit on Tue Jan 12, 2010 5:59 pm

they are not used. (if they were, you woudlnt be able to upload new code!)
User avatar
adafruit
 
Posts: 11502
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

by mmmalmberg on Tue Jan 12, 2010 11:39 pm

Thanks. I need to use the motor shield along with a ZigBee shield, which already requires moving a jumper to upload, for that reason.
mmmalmberg
 
Posts: 20
Joined: Thu Dec 31, 2009 7:48 pm

by 08havoc on Mon Apr 05, 2010 6:47 pm

Are there any diagrams with this on it?
08havoc
 
Posts: 1
Joined: Mon Apr 05, 2010 6:39 pm

by adafruit_support_bill on Tue Apr 06, 2010 5:16 am

User avatar
adafruit_support_bill
 
Posts: 25327
Joined: Sat Feb 07, 2009 9:11 am

by whiskey on Thu Apr 15, 2010 2:58 pm

another good option/attachment would be the screw shield.

http://www.adafruit.com/index.php?main_ ... cts_id=196
whiskey
 
Posts: 19
Joined: Sat Nov 28, 2009 11:44 am

by Navntoft on Wed Jul 07, 2010 7:32 am

ril3y wrote:Digitals pin 9: Servo #1 control
Digital pin 10: Servo #2 control
These pins are used only if that particular servo is in use


Pins are swapped at the shield.
Digital 9 to servo #2
Digital 10 to servo #1
:)
Navntoft
 
Posts: 1
Joined: Wed Jul 07, 2010 7:23 am
Location: Denmark

by nootrope on Sun Nov 21, 2010 10:30 pm

Navntoft wrote:
ril3y wrote:Digitals pin 9: Servo #1 control
Digital pin 10: Servo #2 control
These pins are used only if that particular servo is in use


Pins are swapped at the shield.
Digital 9 to servo #2
Digital 10 to servo #1
:)


Navntoft is correct and this item still hasn't been corrected in the Motor Shield FAQs http://www.ladyada.net/make/mshield/faq.html. The Motor Shield port labeled SER1 is connected to pin 10 in the Arduino and the one labeled SERVO_2 is connected to pin 9.

Thank you! :)
nootrope
 
Posts: 4
Joined: Tue Oct 19, 2010 11:08 pm

by Slugsie on Thu Jan 27, 2011 1:16 pm

I've just assembled my Motor Shield, and I cna't wait to start using it, pity that I'm still waiting on the stepper motors to arrive.

jwm20 wrote:In regard to using the stacking headers on the motor shield, I think I'd like to assemble the motor shield I ordered a couple days ago with them, but I'm not exactly sure what the best method for assembly would be. In the online instructions at http://www.ladyada.net/make/mshield/solder.html the headers are inserted in the Arduino for alignment, and soldered from the top of the PCB. If the female stackable headers are used, I am thinking that the header itself will block the top contact, and if they're soldered from the bottom, then they couldn't be aligned perfectly in the Arduino. Without having the parts in my hands, I can't tell just how much of a problem this might be, but if anyone has suggestions for this part of the assembly I'd be happy to hear. Thanks a lot!!


Just thought I'd pop in a suggestion here that I'm surprised no-one else has made. If you have another shield - any one will do - pop the stacking headers onto the underside of that, poke them through the motor shield, and then solder them into place on the motor shield from the bottom. :)
User avatar
Slugsie
 
Posts: 4
Joined: Thu Jan 27, 2011 1:11 pm

by stevegalaxy on Thu Mar 10, 2011 11:13 pm

Hi, new to this forum.. and electronics in general so sorry if a stupid question.. but was wanting to add a LCD shield like the D-Robotics one

http://www.yerobot.com/shop/arduino/ard ... hield.html

..to this motor shield.. it needs 7 digital pins and 1 Analog.. will I have enough spare pins for this?

and can I change pin order for either the lcd shield or this motor shield.

The LCD shield uses LCD4bit library.. so I guess I somehow change the pin order in this?

Thanks

Steve
stevegalaxy
 
Posts: 1
Joined: Thu Mar 10, 2011 10:59 pm

by adafruit_support_bill on Fri Mar 11, 2011 6:11 am

The pins available will depend on which motor channels and/or servos are in use. See the first post in this thread for detail.
Also, check out the LCD I2C/SPI backpack. It lets you drive many LCD displays using only 2-3 pins.
User avatar
adafruit_support_bill
 
Posts: 25327
Joined: Sat Feb 07, 2009 9:11 am