Page 1 of 1
Datalogger usage
Posted: Wed Oct 12, 2016 2:44 am
by ChrisF
Hi All, I'm new to Freematics and Audrino and just had a question on getting going. I just received my Freematics ONE a couple days ago, compiled and uploaded the newest datalogger sketch without issue. Inserted a FAT formatted sd card and proceed to attach it to my truck for testing. Everything looks great but where I pull the SD card after a trip it has no data on it. Is there something I'm missing about config?
Re: Datalogger usage
Posted: Wed Oct 12, 2016 3:53 am
by mikebolt
This is a known issue. See this post:
viewtopic.php?f=2&t=1885Do you get a DATA directory with some empty files in it?
Re: Datalogger usage
Posted: Wed Oct 12, 2016 6:59 am
by ChrisF
I think my issue may be a little big different. I'm not seeing empty files, I'm simply seeing nothing. The card is completely empty. I'm using a lexar 32G microSD card. Starting to wonder if it could be a compatibility issue?
Re: Datalogger usage
Posted: Wed Oct 12, 2016 9:41 am
by mikebolt
You could try using the
SdFat library instead of the SD library. SdFat is just a newer version of that library, and they might have fixed a bug that is causing your problem. I got SdFat working with the gptest sketch. I also got it working with the datalogger sketch, but I have modified it beyond the point of contributing the changes without lots of extra effort.
I would try to make a new sketch that simply logs some text to a file on the SD card to help pinpoint the issue. You might want to order a new SD card as well.
Re: Datalogger usage
Posted: Fri Oct 14, 2016 1:03 am
by ChrisF
Got it! Was definitely an SD incompatibility. Switched out to a different card and started working like a charm.