Pages: [1]   Go Down
Author Topic: Sd card and Sanguino  (Read 1307 times)
0 Members and 1 Guest are viewing this topic.
Houston
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Electronics is just part of life.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hie everyone, i am working on a pretty big project that requires the use of an sd card, i bought the sd breakout board from cutedigi.com

http://www.cutedigi.com/product_info.php?products_id=4435

I want to connect it to my sanguino, i know that:

mosi - 5
miso - 6
sck - 7

but im not sure how to hook up the sd card,and another question is if i absolutely have to hook it up to the miso mosi sck pins? i can't hook it up to anything else? because i already used those pins, but i guess i could change them. any help guys? please and thank you! =)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49372
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
but im not sure how to hook up the sd card
You know which are the SPI pins (MOSI, MISO, SCK). Connect those on the SD card to the corresponding pins on the Sanguino.

Select a pin on the Sanguino to use as a SS (slave select) pin, and connect that to the SD card.

Then, connect ground and VCC (to 3.3V).

Quote
if i absolutely have to hook it up to the miso mosi sck pins?
Only if you want it to work.

Quote
i can't hook it up to anything else?
Not if you want it to work.

Logged

Houston
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Electronics is just part of life.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok thanks, and i also have an mp3 decoder... it also takes miso mosi and sck... does that mean that i can't hook both up at the same time? smiley-sad
Logged

0
Offline Offline
God Member
*****
Karma: 0
Posts: 593
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok thanks, and i also have an mp3 decoder... it also takes miso mosi and sck... does that mean that i can't hook both up at the same time? smiley-sad

The entire point of having slave select or chip select pins on a SPI bus is so you can have multiple devices on one bus. The answer is: yes you can.

Also
Quote from: PaulS
Quote
i can't hook it up to anything else?
Not if you want it to work.

This is not entirely true, you can bit bang SPI if you are desperate.

-------------

Please see this project, http://www.instructables.com/id/Music-Playing-Alarm-Clock/ , the SPI bus is connected to both a SD card and a MP3 decoder, it is probably the perfect example of what you are trying to do
Logged

Freelance engineer, consultant, contractor. Graduated from UW in 2013.

Houston
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Electronics is just part of life.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oh ok, well i have an sd card and an mp3 decoder, what would be the best way to hook up both the spi's to the single arduino? or what is the usual method?
Logged

Houston
Offline Offline
Jr. Member
**
Karma: 0
Posts: 95
Electronics is just part of life.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i guess i didnt, but thank you very much for bringing it to my attention =) that helps alot
« Last Edit: March 30, 2011, 08:42:56 pm by Leonidas » Logged

Pages: [1]   Go Up
Jump to: