SD card read

i use a datalogger ,information is stored in sd card,when i need to read the file i need to remove sd card from arduino and view using a card reader , is der any other way can iread information without removing the SD card from arduino

Yes. You can read the data off the SD card with the SD library then send the data out the USB port to a PC with Serial functions. On the PC side you can capture the data with the Arduino serial monitor or a terminal program.

can u post a sample data ?

a file in SD card , file is like


similarly a 50 lines more

with this code ( DumpFile example on arduino IDE ) you send the file contents to serial monitor

then u can copy and past code

  // open the file. note that only one file can be open at a time,
  // so you have to close this one before opening another.
  File dataFile ="datalog.txt");

  // if the file is available, write to it:
  if (dataFile) {
    while (dataFile.available()) {
  // if the file isn't open, pop up an error:
  else {
    Serial.println("error opening datalog.txt");

but if you have to transfer the file on your computer or save it to a database, it obviously changes.

I use the same code in the IDE to dump the file to the phone via bluetooth. You should be able to do the same thing with any PC terminal programme, without having copy/paste off the serial monitor.