The new Raspberry Pi B Model B+ is here - Pick one up in the store and check our detailed guide!

Arduino MEGA2560r3 + Data Logging Shield + Motor Shield

by Jeep on Sat Oct 06, 2012 6:54 pm

At present my setup is an AdaFruit Motor Shield stacked on top of an Arduino MEGA2560r3. My next application would benefit from data logging and I would like to sandwich the Data Logging Shield between the MEGA2560r3 and the Motor Shield. However, it appears that both shields use Arduino pins 10, 11, and 12. Is there a workaround for this or am I out of luck? If one of the shield libraries has to be changed which one would be the easiest?
Jeep
 
Posts: 7
Joined: Thu Aug 02, 2012 6:03 pm

Re: Arduino MEGA2560r3 + Data Logging Shield + Motor Shield

by adafruit_support_bill on Sun Oct 07, 2012 5:40 am

To get those two to work together, you would need to modify one of the shields to get around the pin conflicts.

The logger is using those pins for SPI communication with the SD card. But hardware SPI on the Mega is on different pins (You need to use software SPI for the stock shield). So the best solution would probably be to re-map those shield pins on the logger board to the hardware SPI pins on the Mega. If you search these forums, there are a few threads on that topic.
User avatar
adafruit_support_bill
 
Posts: 27972
Joined: Sat Feb 07, 2009 9:11 am

Re: Arduino MEGA2560r3 + Data Logging Shield + Motor Shield

by Jeep on Sun Oct 07, 2012 12:35 pm

Got it - although I was afraid that was what I would read :) Lesson learned and now confirmed. I know the direction in which to head. You guys are super! It's your customer support (look at the time stamp when AdaFruit posted their reply) that makes me a repeat buyer from AdaFruit!
Jeep
 
Posts: 7
Joined: Thu Aug 02, 2012 6:03 pm

Re: Arduino MEGA2560r3 + Data Logging Shield + Motor Shield

by ve6pte on Tue Nov 13, 2012 6:37 pm

Could someone post a link to where I can find out how to modify the logger shield to use different IOs?

I've searched this forum for it but am having no luck finding anything.
ve6pte
 
Posts: 3
Joined: Sat Nov 10, 2012 12:14 am

Re: Arduino MEGA2560r3 + Data Logging Shield + Motor Shield

by adafruit_support_bill on Wed Nov 14, 2012 6:45 am

how to modify the logger shield to use different IOs?

Can you be more specific? What are you trying to do with the shield?
User avatar
adafruit_support_bill
 
Posts: 27972
Joined: Sat Feb 07, 2009 9:11 am