SD Logger + Motor Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

SD Logger + Motor Shield

Postby maddhat » Sat Nov 17, 2012 10:37 am

Using Arduino Uno + Motor Shield and have the SD Logger connected using the terminal block board. As pin 12 is reserved for the motor shield, is there any way to re-direct which pin the SD card is to use within software? I have D12 on SD card connected to D09 on the arduino. My goal pinout:

D02 --> GREEN LED(sd D4)
D03 --> RED LED (sd D3)
D04 --> MOTORSHIELD
D05 --> stepper
D06 --> stepper
D07 --> MOTORSHIELD
D08 --> MOTORSHIELD
D09 --> sd D12
D10 --> sd D10
D11 --> sd D11
D12 --> MOTORSHIELD
D13 --> sd D13
14 --> sensor1
15 --> sensor2
16 --> sensor3
17 -->
A4 --> rtc
A5 --> rtc
maddhat
 
Posts: 10
Joined: Sat Aug 13, 2011 8:15 am

Re: SD Logger + Motor Shield

Postby adafruit_support_bill » Sun Nov 18, 2012 9:47 am

It is possible to talk to the SD card via software SPI using different pins. This link has a sketch that uses software SPI to do logging on a Mega.
User avatar
adafruit_support_bill
 
Posts: 16016
Joined: Sat Feb 07, 2009 9:11 am

Re: SD Logger + Motor Shield

Postby maddhat » Wed Nov 21, 2012 11:29 am

Did you intend to add a link to the previous comment?

Also, I'm using an Uno, not a Mega.

Thank you.
maddhat
 
Posts: 10
Joined: Sat Aug 13, 2011 8:15 am

Re: SD Logger + Motor Shield

Postby adafruit_support_bill » Wed Nov 21, 2012 12:21 pm

Sorry about that. Here's the link: viewtopic.php?f=31&t=27245
Also, I'm using an Uno, not a Mega.

Software SPI works on the Uno too. If you can't use the hardware SPI pins, software SPI allows you to re-map it to other pins.

In the case of the Logger shield, there is one more issue: The SPI MISO signal is hard-wired to pin 12. You will need to cut either the pin or the trace and add a jumper to the pin you will be mapping it to.
User avatar
adafruit_support_bill
 
Posts: 16016
Joined: Sat Feb 07, 2009 9:11 am


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: mibignistinly and 17 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]