Pages: [1]   Go Down
Author Topic: How to interface SD or Micro SD cards with Arduino?  (Read 1240 times)
0 Members and 1 Guest are viewing this topic.
India
Offline Offline
Newbie
*
Karma: 0
Posts: 21
Induino X is awesome!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to create a temperature logging circuit which will store its temp. readings every minute.
I would like a detailed reply plz.
Logged

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

Quote
I would like a detailed reply plz.
What have you tried? What SD shield do you have? What temperature sensor? What clock?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to create a temperature logging circuit which will store its temp. readings every minute.
I would like a detailed reply plz.

Tutorial: http://www.ladyada.net/make/logshield/lighttemp.html
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

  The Adafruit folks seem to have a great new shield containing a SD reader/writer/logger and a built in real time clock, all assembled for just $20. Seems to have tested library support, hard to see a better solution for the price, I may have to pick one up myself.
http://www.adafruit.com/products/1141
Logged

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 147
Posts: 6038
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@John and Lefty. That does look like a nice unit, but it appears to be incompatible with the Mega, and that is what I use. There is no ICSP socket to connect the SPI data lines.  smiley-sad

This is from that page.
Quote
Works with Arduino UNO, Duemilanove, Diecimila, Leonardo or ADK/Mega R3 or higher. ADK/Mega R2 or lower are not supported.
I'm not sure how it can be Leonardo and Mega compatible without the ICSP connector. Maybe you need jumpers to digital pins 50-52 or the ICSP connector?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not sure how it can be Leonardo and Mega compatible without the ICSP connector. Maybe you need jumpers to digital pins 50-52 or the ICSP connector?

On the Mega you use "Soft SPI" on pins 10-13.
http://forums.adafruit.com/viewtopic.php?f=31&t=24867
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Miramar Beach, Florida
Offline Offline
Faraday Member
**
Karma: 147
Posts: 6038
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks John. So I guess what they mean is:
If you use the Adafruit SD library with the Mega and Leonardo, it will work.
If you use the standard Arduino SD library with them, it will fail.

I will believe it, but wouldn't buy it.
Logged

0
Offline Offline
Edison Member
*
Karma: 64
Posts: 1638
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

SdFat has a soft SPI mode and I wrote soft I2C libraries so the AdaFruit Shield can be used on Mega, Leonardo, and 328 Arduinos.

Here is an example sketch and the libraries - AdafruitLogger20121219.zip http://code.google.com/p/beta-lib/downloads/list.

The previous version plus this version of the sketch and libraries have been downloaded over 1000 times.
Logged

Pages: [1]   Go Up
Jump to: