DATALOGGER SHIELD cardinfo return ascii codes

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
amir_k
 
Posts: 2
Joined: Thu Mar 01, 2012 5:10 pm

DATALOGGER SHIELD cardinfo return ascii codes

Post by amir_k »

Hi,
I recently purchase the datalogger kit with all components. I the section where interfacing of SD card is done I follow steps and upload cardinfo example,
http://www.ladyada.net/make/logshield/sd.html
I do not get any SD card info on serial monitor instead see strange line of ascii sequence like.
Please advice potential steps to trouble shoot. I have appropriate CS (pin 10) infact even if I choose any other pin output is same and even if I remove SD card still the same.
Thanks..

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: DATALOGGER SHIELD cardinfo return ascii codes

Post by adafruit_support_bill »

Check the baud-rate. The baud rate of your serial monitor should be set to the same value that the sketch uses in Serial.begin().

User avatar
amir_k
 
Posts: 2
Joined: Thu Mar 01, 2012 5:10 pm

Re: DATALOGGER SHIELD cardinfo return ascii codes

Post by amir_k »

Thanks, matching the baud rate as specified in the code did solve the issue. I am trying to use the datalogger shield for my application where I would like to log the output from an analog sensor at 100 Hz rate. I think Atmega328 can sample in the range of 100 Khz and I have read few threads on how to increase the sample rate, resolution etc. I was wondering how I can increase the rate to write data on the SD card.
I tried simple experiment to record with 1 Hz waveform on the logger and I could only see 20 samples in one scan. I have set the serial baud rate to max. 115200. So there are two aspect of my question:
1. Can we sample input data at faster i.e. ~ 10 khz - 100 khz rate using Atmega 328. I have read this thread for some guidance, but still not sure how to incorporate prescale line (or increasing serial baud rate) in the datalogger code.
http://www.arduino.cc/cgi-bin/yabb2/YaB ... 8715493/11

2. Can we also write (on SD card) with comparable (100 Hz) rate.

I am using the code in the example downloaded from the link:
https://github.com/adafruit/Light-and-Temp-logger

Any suggestion or link to addressing this issues will be helpful.
Thanks.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: DATALOGGER SHIELD cardinfo return ascii codes

Post by adafruit_support_bill »

The fastest logging I am aware of on this shield is 40 KHz http://forums.adafruit.com/viewtopic.ph ... 62#p115062.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”