Pages: [1]   Go Down
Author Topic: Destroying SD cards through low voltage  (Read 6176 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 75
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello forum. This is a question and a possible warning.

I managed to completely destroy an SD card. It got so badly mangled that two different computers each running both Windows and Linux refused to talk to it. What I think happened is that I left it logging data on a battery connected Arduino for too long and the battery fizzled out.

I know for a fact the battery was dead when I got the card back and after that the card was stone dead. I presume write operations with insufficient voltage killed it. Does anyone have any experience of this?

This raises the obvious question of monitoring input voltage level when on a not so secure power supply. Is there any way of getting to this info through software, other than grabbing Vin, dumping it through a voltage divider and measuring through an ADC pin?
Logged

Dresden / Germany
Offline Offline
Sr. Member
****
Karma: 4
Posts: 451
Entwicklungsklaus
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are using XP oder similar, put the SD into your computer, look into System>Management>Storage.... (ähm, in German Datenträgerverwaltung)....

There it should appear even if it's corrupt.
Then kill Filesystem, and reinitialise it.

So i got some SD Cards working again.

Hope this helps.

Greetings
ChrisS
Logged

Sturmfabrik - mediale Dienstleistungen
www.sturmfabrik.de

0
Offline Offline
Faraday Member
**
Karma: 24
Posts: 3486
20 LEDs are enough
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you try testdisk / photorec http://www.cgsecurity.org/wiki/Main_Page to recover it? If not so, please try and tell us the results.

Anyway: measuring VCC without external components was discussed here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1294478456/all

Udo
Logged

Check out my experiments http://blog.blinkenlight.net

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

Most SD cards are used in battery powered devices and are designed to maintain integrity with low voltage.

It is not likely that your card was damaged by low voltage.

The best SD formatter is here http://www.sdcard.org/consumers/formatter_3/

Many other tools produce a non-standard SD format.  The SD standard imposes restrictions on acceptable FAT/FAT32 filesystems.
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 75
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the links guys, I 'm sure I 'll need to use them in the future. Unfortunately I have thrown away that card, all this happened quite a while ago, it's just that I only got round to writing about it now.

As far as I can remember, using a file browser to look inside the device was resulting in the device hanging and trying to format it was resulting in gparted just working indefinitely while the XP formatter was saying it was unable to format after a really long time. I was getting some I/O type of erros in the logs (Linux) but I can't remember what they were now.
Logged

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
logging data on a battery connected Arduino
SD card is usually powered by 3V3.
Logged

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

Cards work over a range of voltages. The initialization voltage range is 2.0 to 3.6V.  During initialization a very slow SPI clock is used to read the operation conditions register, OCR.  This register gives the supported voltage range for operation.  Most cards return 2.7 to 3.6V.  Some cards can be configured to work as low as 1.8V.
Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 75
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I was using the sparkfun microSD shield with the SDFat lib. I have used the shield and the lib succesfully for very long logging times (~24 hrs) with no problems so it might have been a problematic card.
Logged

Pages: [1]   Go Up
Jump to: