Go Down

Topic: How to interface SD or Micro SD cards with Arduino? (Read 1 time) previous topic - next topic

InduinoX

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

PaulS

Quote
I would like a detailed reply plz.

What have you tried? What SD shield do you have? What temperature sensor? What clock?

johnwasser


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
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

retrolefty

  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

SurferTim

@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.  :(

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?
Watch for me on National Geographic Wild "When Sharks Attack: Gulf Coast Killers". Airs on June 22nd.

johnwasser


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
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

SurferTim

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.
Watch for me on National Geographic Wild "When Sharks Attack: Gulf Coast Killers". Airs on June 22nd.

fat16lib

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.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy