Data Logger Shield, a question.

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

Moderators: adafruit_support_bill, adafruit

Data Logger Shield, a question.

Postby hedon » Sat Feb 16, 2013 2:03 pm

Hello, I have a Data logger shield, the old one, which came unassembled.

I'm about to use it in a project for first time, but I have a doubt. Reading the tutorial I realize that you simply unplug the arduino to shut it down, so I want to know if the shield comes with some kind of protection or shut down delay in the case that the energy is cut off while the shield it's writing to the SD card. As far as I know, this situation it's a possible cause the corruption of the file in the SD.

I'm only curious if the shield has some kind of protection about this, but maybe it would be wiser to write a stop function.
hedon
 
Posts: 9
Joined: Tue Jun 12, 2012 10:03 pm

Re: Data Logger Shield, a question.

Postby adafruit_support_bill » Sat Feb 16, 2013 2:58 pm

There is no built in protection against that condition.
User avatar
adafruit_support_bill
 
Posts: 15954
Joined: Sat Feb 07, 2009 9:11 am

Re: Data Logger Shield, a question.

Postby davidwhiteman » Wed Feb 20, 2013 10:15 pm

This is something that I have been concerned about, too. Can you give me any advice on how/when to unplug the Arduino? Do you use the rest switch? Unplug it from the computer in between data writes when the led on the datalogger is off? If running off batteries, would you, again, unplug the battery in between writes as indicated by the LEDs?
davidwhiteman
 
Posts: 6
Joined: Tue Jan 03, 2012 11:43 am

Re: Data Logger Shield, a question.

Postby adafruit_support_bill » Thu Feb 21, 2013 9:14 am

In practice i have never experienced corruption of the SD card. But maybe I'm just lucky. Powering down between writes is one sure way to prevent it -as long as you get the timing right. There was a thread a while ago about using the BOD (brown out detect) function of the Atmega chip to detect an impending outage and suppress the writes. If you search for BOD and related logging terms you should be able to find it.
User avatar
adafruit_support_bill
 
Posts: 15954
Joined: Sat Feb 07, 2009 9:11 am

Re: Data Logger Shield, a question.

Postby bethesdakid » Wed Feb 27, 2013 9:33 pm

hi Dave... nasa person I presume... go to Jeremy Blum and see his section of the program that checks to see if the logger is in the mode to write... you could run that as a check...
ken B
bethesdakid
 
Posts: 29
Joined: Sat Apr 28, 2012 5:23 pm
Location: Washington dc


Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: Google [Bot] and 7 guests

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


New Products [102]

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]