Saturday, 18 October 2014

arduino - Connect a microSD reader to a LilyPad USB, where are the digital ports?



I am attempting to connect a microSD breakout board to a LilyPad Arduino USB. The microSD board has previously been connected to an Arduino Duemilanove.


In the Duemilanove setup, the following connections were made successfully:


(SD) -> Duemilanove



  • (CS) -> Pin 10 (SS)

  • (DI) -> Pin 11 (MOSI)

  • (DO) -> Pin 12 (MISO)

  • (CLK) -> Pin 13 (SCK)


Plus 5 V and ground.



I have attempted to replicate this with the LilyPad USB, following the schematic.


(SD) -> LilyPad USB



  • (CS) -> Pin D17 (SS)

  • (DI) -> Pin D16 (MOSI)

  • (DO) -> Pin D14 (MISO)

  • (CLK) -> Pin D15 (SCK)


However, the problem is, I cannot locate this digital pins physically on the LilyPad USB. I believe they are the six pins in a rectangle formation next to analogue port A2, but I do not know which are which. Following the forum post LilyPad USB v1.1 and SPI, I have tried that combination, but I have not had any results.


What is the order of the six pins? Also, where is the SS pin (that doesn't seem to be included there)?





No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...