Adafruit: microsd and temt6000

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Adafruit: microsd and temt6000

Postby davidh » Thu May 24, 2012 10:37 pm

Hi,

I was trying to log the output of the temt6000 with the microsd. I noticed that the microsd has a di pin so I guessing that is data-in
but I have to power both the temt6000 and the microsd. I was guessing that I could wire the voltage and ground to the outside rails of the breadboard and then from there power and ground both the temt6000 and microsd. Does this sound right?

Thanks
David
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: microsd and temt6000

Postby adafruit_support_bill » Fri May 25, 2012 5:11 am

I noticed that the microsd has a di pin so I guessing that is data-in

The microSD breakout has an SPI interface. The tutorial explains the wiring: http://www.ladyada.net/products/microsd/
I was guessing that I could wire the voltage and ground to the outside rails of the breadboard and then from there power and ground both the temt6000 and microsd. Does this sound right?

That should work fine.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: Adafruit: microsd and temt6000

Postby davidh » Fri May 25, 2012 9:51 pm

Hi,

I did the reading and from what I can tell the temt6000 sends a signal to pin A0 when using an SD breakout board that mounts on top of the Arduino. But according to the documention the microSD doesn't use pin A0 so I am not sure which pin in the microSD can take an signal from the temt6000

Thanks
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: microsd and temt6000

Postby HooctAwnFonix » Fri May 25, 2012 11:22 pm

What are you using the breakout with? I don't know of a way to make it run stand alone...

If you're doing this with Arduino or something comparable (which I gather from the A0 reference), you first need to read the analog signal (and convert it but that's "automatic" on the Arduino) and then write it to your SD card using the digital pins that the breakout board uses.
HooctAwnFonix
 
Posts: 77
Joined: Tue Sep 13, 2011 10:47 am
Location: Cambridge, MA

Re: Adafruit: microsd and temt6000

Postby adafruit_support_bill » Sat May 26, 2012 5:02 am

HooctAwnFonix is correct. You will need to program the Arduino to read the sensor on A0, then write that value to the SD card on the breakout board.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: Adafruit: microsd and temt6000

Postby davidh » Sun May 27, 2012 6:25 pm

Thanks,

I wanted to use the temt6000 and microSD without a breakout board. But it sounds like in order to do that I will need a breakout board with the microSD. Does this sound about right?
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm


Re: Adafruit: microsd and temt6000

Postby davidh » Mon May 28, 2012 12:18 pm

adafruit_support wrote:HooctAwnFonix is correct. You will need to program the Arduino to read the sensor on A0, then write that value to the SD card on the breakout board.
Once I read the sensor on A0 how would I send that the SD breakboard?
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: microsd and temt6000

Postby adafruit_support_bill » Mon May 28, 2012 12:38 pm

Once I read the sensor on A0 how would I send that the SD breakboard?

You would use the SD library on your Arduino. This is explained in the micro SD breakout tutorial: http://www.ladyada.net/products/microsd/#arduino_library_first_test
The DataLogger tutorial uses the same SD library and the tutorial has an example program that demonstrates how to read from a sensor and write the data to a file:http://www.ladyada.net/make/logshield/lighttempwalkthru.html
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: Adafruit: microsd and temt6000

Postby davidh » Mon May 28, 2012 11:53 pm

THANKS!!!!. Reading the code clearified it all except one thing. Where would I have found out that I needed to wait a certain amount of time after the sensors output before I write to the SD?

Thanks Again
David
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: microsd and temt6000

Postby adafruit_support_bill » Tue May 29, 2012 4:54 am

Are you referring to this delay?
Code: Select all
  // delay for the amount of time we want between readings
  delay((LOG_INTERVAL -1) - (millis() % LOG_INTERVAL));

That just sets the frequency of sampling. There is no sense in sampling thousands of times per second if the data is not changing that fast.
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am

Re: Adafruit: microsd and temt6000

Postby davidh » Tue May 29, 2012 10:21 pm

I guess what I mean is, is that from an engineer standpoint you are not forced (electronically speaking) to make the delays. These delays are only necessary from a programming point of view.

Thanks
You guys are great :D
davidh
 
Posts: 155
Joined: Fri Feb 24, 2012 11:32 pm

Re: Adafruit: microsd and temt6000

Postby adafruit_support_bill » Wed May 30, 2012 4:54 am

you are not forced (electronically speaking) to make the delays

That is correct. The system is capable of logging speeds up to 40,000 samples/sec. http://forums.adafruit.com/viewtopic.php?f=31&t=21728
User avatar
adafruit_support_bill
 
Posts: 15898
Joined: Sat Feb 07, 2009 9:11 am


Return to Arduino

Who is online

Users browsing this forum: franklin97355 and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]