Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« on: January 13, 2013, 04:44:24 pm » |
Can i save data from arduino board as Excel sheet or used SD card to save data then put this SD card into computer to read data as Excel sheet
|
|
|
|
|
Logged
|
|
|
|
|
Scotland
Offline
God Member
Karma: 3
Posts: 513
Have you had your Arduino fix today?
|
 |
« Reply #1 on: January 13, 2013, 04:45:43 pm » |
yes & yes
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 12
Posts: 898
|
 |
« Reply #2 on: January 13, 2013, 04:47:01 pm » |
You can write the data to a file on the SD as a Comma-Separated Values file. A CSV file can be read directly by Excel.
Pete
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #3 on: January 13, 2013, 04:56:39 pm » |
You can write the data to a file on the SD as a Comma-Separated Values file. A CSV file can be read directly by Excel.
Pete
can yo help me with some details because i don't dealing with this before
|
|
|
|
|
Logged
|
|
|
|
|
UK
Offline
Tesla Member
Karma: 89
Posts: 6335
-
|
 |
« Reply #4 on: January 13, 2013, 05:39:24 pm » |
can yo help me with some details because i don't dealing with this before Which part are you having trouble with? Do you have an SD card? Can you write a text file to it? Can you google "comma separated variable"?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #5 on: January 13, 2013, 06:02:26 pm » |
Which part are you having trouble with?
Do you have an SD card? Can you write a text file to it? Can you google "comma separated variable"?
write text file to SD card
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 12
Posts: 898
|
 |
« Reply #6 on: January 13, 2013, 06:06:50 pm » |
I haven't been able to test this code but it does at least compile. It should create the file test.csv on an SD card, write three lines of data to the file and then close it. If it works, you can then just put the SD card in a PC and double-click on the file which should open the file in Excel. Pete #include <SD.h> File myFile; void setup() { Serial.begin(9600); myFile = SD.open("test.csv", O_APPEND | O_WRITE); if(myFile) { myFile.println("1,2,3"); myFile.println("101,322,8293"); myFile.println("7012,3964,281"); myFile.close(); } else { Serial.println("Can't open test.csv on the SD card"); } }
void loop(void){}
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #7 on: January 13, 2013, 06:10:21 pm » |
I haven't been able to test this code but it does at least compile. It should create the file test.csv on an SD card, write three lines of data to the file and then close it. If it works, you can then just put the SD card in a PC and double-click on the file which should open the file in Excel.
Pete
i will try it 
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #8 on: January 14, 2013, 03:06:42 pm » |
can i use Breakout Board for microSD Transflash ( https://www.sparkfun.com/products/544) to read and write on micro SD , i don't know if i need to add some component to be suitable to use it with SD Library in arduino-UNO and which pin i will connect to use it as SD card Shield
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #9 on: January 14, 2013, 04:35:48 pm » |
how i connect Breakout Board for microSD Transflash ( https://www.sparkfun.com/products/544) with arduino uno
|
|
|
|
|
Logged
|
|
|
|
|
Offline
God Member
Karma: 12
Posts: 898
|
 |
« Reply #10 on: January 14, 2013, 04:40:46 pm » |
That one is not directly compatible with UNO because the UNO uses 5V and micro-SD cards use 3.3V. You would have to do a level conversion to make them compatible. I use the Adafruit board which is a bit more expensive but handles the conversion. https://www.adafruit.com/products/254They are easy to wire up. They will use pins 10,11,12 and 13 on the UNO. And note that the SPI hardware requires Pin 13 which means it can't be used for the LED indicator. Pete
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #11 on: January 14, 2013, 05:06:04 pm » |
That one is not directly compatible with UNO because the UNO uses 5V and micro-SD cards use 3.3V. You would have to do a level conversion to make them compatible. I use the Adafruit board which is a bit more expensive but handles the conversion. https://www.adafruit.com/products/254They are easy to wire up. They will use pins 10,11,12 and 13 on the UNO. And note that the SPI hardware requires Pin 13 which means it can't be used for the LED indicator. Pete i try to find it in electronic stores in my country but i can't get it and it will take long time for shipping so can i add component or any thing to Breakout Board for microSD Transflash to make it compatible with UNO board Thanks for answer 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 87
|
 |
« Reply #13 on: January 14, 2013, 07:31:04 pm » |
finally i used Breakout Board for microSD Transflash i connect pin 13 to SCK pin 12 to Do pin 11 to DI pin 4 to CS CD is not connected and it work good but i want to know is it safe method ?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Offline
Brattain Member
Karma: 279
Posts: 15314
Measurement changes behavior
|
 |
« Reply #14 on: January 14, 2013, 07:40:26 pm » |
And for just $5 more a microSC + real time clock shield which is almost always a need anyway for data logging. http://www.adafruit.com/products/1141Lefty
|
|
|
|
|
Logged
|
|
|
|
|
|