I have problems with my project. where the values set forth in excel can not be well ordered in the column.
My question is how to organize and segregate the data values in the column Excel.?
You just need to set excel to use comma as the delimiter. You could use a different delimiter but your current sketch will work fine. The "C" in .csv stands for "comma" after all. There is another problem that you're adding the column headings to the file every time the sketch runs. You should only do that once after nilai.csv is first created. Really you don't even need to do that in your sketch. You could just manually create the file on the SD card and add the heading text at that time. If you want to do it in your sketch then use SD.exists() to check if the file exists before opening it and then only write the column headings if the file didn't already exist(open() will create the file if it doesn't exist).
pert:
You just need to set excel to use comma as the delimiter. You could use a different delimiter but your current sketch will work fine. The "C" in .csv stands for "comma" after all. There is another problem that you're adding the column headings to the file every time the sketch runs. You should only do that once after nilai.csv is first created. Really you don't even need to do that in your sketch. You could just manually create the file on the SD card and add the heading text at that time. If you want to do it in your sketch then use SD.exists() to check if the file exists before opening it and then only write the column headings if the file didn't already exist(open() will create the file if it doesn't exist).
What is an example of SD.exists() to check if the file exists before opening it and then only write the column headings if the file didn't already exist(open() will create the file if it doesn't exist).?