Home Forums Sparkfun MP3 Shield Library Support Forum SD card device Chip Select pin assignment

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2667
    Anonymous
    Inactive

    Out of the box, the ‘5V-SD-CS’ signal for the SDcard reader device is assigned to pin D9 on the Arduino. Where is this pin assignment made in Bill Porter’s library? I want to make pin 10 on the Arduino be the 5V-SD-CS signal (I assume this is the SDcard device chip select).

    #2669

    The SFEMP3Shield Library defines all of its hard resources and configurable options in the SFEMP3Shield.h file. The SdCard’s chipselect is defined with SD_SEL . Notice its how it sets up the sd.begin(SD_SEL, SPI_HALF_SPEED in the example. You can substitute any value you like into or in place of the SD_SEL. Assuming it is actually connected to the SdCards Chip Select.

    #2670
    Anonymous
    Inactive

    Awesome, I found the define SD_SEL pin assignment in SFEMP3Shieldconfig.h. Changed it to pin 10, soldered in a new wire from D10 to pin 5 of the 74HC4050 converter, and it works perfectly. Now I can use pins 9 and 10 for Timer1.

     

    Thanks for the help

    #2671

    Congratulations

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.