Arduino Forum

Using Arduino => Storage => Topic started by: Railroader on Jul 21, 2018, 09:38 pm

Title: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: Railroader on Jul 21, 2018, 09:38 pm
Hi!
I have a system running using an UNO, a NEO-6m GPS and a 20*4 I2C LCD.
My wish is to add an Sd card for logging data for later reading and evaluation in a Windows Pc.

The LCD uses the I2C of the UNO. The NEO-6m runs by serial software. Rx and Tx are used for debugging during program design.

There are plenty of Sd card shields and adapters. Using Google gives plenty of sellers but how to get hold of an Sd card interface that will fit well into my system?

That is what i ask You having system experience. What would be a good Sd interface in this environment.

Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: PaulS on Jul 24, 2018, 02:44 pm
As far as I know, all SD cards are read from and written to using the SD or SdFat libraries, using the SPI hardware pins (10, 11, 12, and 13 on the 328-based Arduinos). Just find one that is 5V tolerant. There must be something like 168146814684 to choose from.
Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: Railroader on Jul 24, 2018, 04:12 pm
Thanks!
Sd or SdFat libraries..... What is the major advantage selecting one or the other lib?
In other topics I have read that Windows Fat16 should be used, not Fat32. Moving the Sd card to a Pc and reading it there is favourable to avoid writing communication software for the 328.
Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: PaulS on Jul 25, 2018, 11:22 am
Quote
In other topics I have read that Windows Fat16 should be used, not Fat32.
Then you read incorrectly. Fat16 is used by the SD library, and the formatter application that comes with it. It does NOT use any windoze crap to format the card, resulting in a card that can be used in ANY device.

Using the windoze formatter will result in a useless card, as far as the Arduino is concerned (as well as many cameras, etc.).
Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: Railroader on Jul 25, 2018, 12:29 pm
Sorry PualS, I don't get You.
Can You tell what I should use for formatting so I can write from an Arduino UNO and read by a Windows Pc?

Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: PaulS on Jul 25, 2018, 12:47 pm
Read the sticky at the top of this section of the forum. Everything you need to know about formatting the SD card is covered (and then some).
Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: Railroader on Jul 25, 2018, 04:16 pm
Yes! Tons to read, having a short look from the smartphone. I will start digging there!
Thanks!
Title: Re: Adding an Sd card to UNO, NEO-6m and I2C LCD
Post by: Railroader on Jul 25, 2018, 05:35 pm
3 pages of "Everything".".
One person tells "this works". The next person says "no".
There are different kinds of SD cards and it looks like they need different ways of handling. Different cards needs different formatting and handling. It's really hard to find the red line for something that works.

I only want to write ASCII based data in a moderate speed and the being able to read them from a PC, maybe Excell.