Pages: [1]   Go Down
Author Topic: Arduino won´t write inside the file created.  (Read 795 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi there mates,

I´ve gotta a bit of a problem here that is messing with my head real bad. I´m trying to log some data for another program I´m building, in an SD card. Thing is that, before going deep I tried the Read and Write example. Apparently everything works just fine as expected, everything is connected as it should in the Arduino UNO board and the Shield (using CS as 10), and I manage to create the file, but no matter what, I just can´t write into it.
I´ve tried two libraries, the SD.h and the sdfatlib.h but it´s everytime the same thing, file will create but it will be 0 bytes when I try to open it in my computer. I´ve tested it on a Mac using the latest release 10.8.2, and Windows 7, but on this last one I had even more difficulties.
The SD shield is a generic one from LC studio (cheap) http://www.lctech-inc.com/Hardware/Detail.aspx?id=0c3b6f7a-d101-4a60-8b56-3abfb7fd818d
I´m using a 1 GB microSD card into an SD adaptor, formatted as FAT32 and tested it using the first example from the SD Library "card info" and everything seems to be fine.
Here is a screen shot:

Any of you guys have had this same problem before? I´ve tried everyhting I´ve seen online, searched everywhere but all I can find is orientation on how to connect pins and all that I already know.
Thanks in advance.
Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 551
Posts: 46209
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If someone owed you money, would you be satisfied if they sent you a picture of the money? We aren't satisfied with pictures of code, either.

Logged

Offline Offline
Edison Member
*
Karma: 20
Posts: 2115
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Where's the serial debug information?

Logged

Pages: [1]   Go Up
Jump to: