Arduino SD Card and Data Logging to Excel Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ส.ค. 2016
  • howtomechatronics.com/tutoria... ► Find more details, circuit schematics and source codes on my official website .
    In this Arduino Tutorial we will learn how to use an SD Card module with the Arduino Board. Also in combination with the DS3231 Real Time Clock module we will make a data logging example where we will store the data of a temperature sensor to the SD Card and import it into Excel to make a chart out of it.
    Visit HowToMechatronics.com for more Tutorials, Tips, Projects and How It Works videos:
    ► howtomechatronics.com/
    Like my page on Facebook:
    ► / howtomechatronics
    Add me on Google+:
    ►plus.google.com/+Howtomechatr...
    Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

ความคิดเห็น • 195

  • @cubiq1
    @cubiq1 7 ปีที่แล้ว +108

    The most concise, understandable and well presented Arduino tutorials on TH-cam. Thank-you!

    • @geluidsbox9195
      @geluidsbox9195 7 ปีที่แล้ว

      So true!

    • @tafsirahmedkhan7657
      @tafsirahmedkhan7657 7 ปีที่แล้ว

      I agree.

    • @isiTsotsi
      @isiTsotsi 7 ปีที่แล้ว

      Yes, you can really see that he puts lot's of time into it. Thank You!

    • @kote4305
      @kote4305 3 ปีที่แล้ว

      @Armani Uriel so cringe usinge those type of methods to spam

  • @vizmohanan
    @vizmohanan 7 ปีที่แล้ว +5

    That's one of the best tutorials I've ever watched. Great work. Thank you. :)

  • @therewbb
    @therewbb 7 ปีที่แล้ว +3

    Keep up the good work, Dejan! You are by far the best at explaining and presenting Arduino stuffs!

  • @chrisakaschulbus4903
    @chrisakaschulbus4903 4 ปีที่แล้ว +1

    tis tutorial really helps, i'm planning on logging the voltage of some solarpanels and never really understood the sd card tutorials :D

  • @richmiller9844
    @richmiller9844 3 ปีที่แล้ว +1

    Awesome job! Tons of information in only a few minutes!

  • @metis9597
    @metis9597 4 ปีที่แล้ว

    Thanks to showing us how to import "raw" data to excel👌🏻

  • @seanbush5313
    @seanbush5313 6 ปีที่แล้ว

    Thank you so much, this is exactly what I was looking for.

  • @xalexander1996
    @xalexander1996 6 ปีที่แล้ว

    Thanks to you I have learned something really helpful!!! Keep up the great work!

  • @jesuisjustinian
    @jesuisjustinian 2 ปีที่แล้ว

    Awesome bro followed and works for my Wheatstone bridge application

  • @dusseljeef
    @dusseljeef 7 ปีที่แล้ว +6

    Very useful.. but the schema demonstrated in the movie is incorrect in my opinion.
    Miso (reen) and Mosi (blue) are wrong and must be rotated.
    Thanks.

  • @kirenvandenbrandeler7869
    @kirenvandenbrandeler7869 6 ปีที่แล้ว +2

    Hey great video! Just a question, these are separate modules put together (clock, sd module), is it better than a combined
    datalogger shield? If so why? Thank you for your time.

  • @MP-rs4np
    @MP-rs4np 3 ปีที่แล้ว

    Thank you got it working more or less first time now logging several room temps over a 24 hours period and corolating the results

  • @gulhermepereira249
    @gulhermepereira249 7 ปีที่แล้ว

    Best tutorial ever on arduino! Congrats

  • @Aviation437
    @Aviation437 7 ปีที่แล้ว

    Very Good! I would be happy to see some tutorials and applications with inertial sensors.

  • @MsEDUARDOCR7
    @MsEDUARDOCR7 7 ปีที่แล้ว

    Always interesting projects. Congratulations! Every week I am wating for a new video.

  • @ruitfsilva
    @ruitfsilva 7 ปีที่แล้ว

    Thanks man.
    Best Arduino videos of youtube :)

  • @taoufikulislam
    @taoufikulislam 6 ปีที่แล้ว

    you are a great teacher Dejan.. A gigantic thumbs up for you xD!

  • @josedominguez2021
    @josedominguez2021 6 ปีที่แล้ว

    Mil gracias. Todos sus videos son super.
    Manita arriba!!!!

  • @erendogan7317
    @erendogan7317 7 ปีที่แล้ว +3

    this is one of the best tutorial I have watched
    keep doing pls
    thumbs up
    p.s. can you make a 5*7 dot matrix led driver using arduino if possible?
    thanks

  • @jesusreignonhigh6732
    @jesusreignonhigh6732 5 ปีที่แล้ว

    This could be utilized in very quick performance validation for small thermal systems. Even more for system optimization when coupled with Matlab for data manipulation and optimizartion...mind blown.

  • @SlavkosHobbyChannel
    @SlavkosHobbyChannel 6 ปีที่แล้ว

    Super zemjak, fala ti za se sho imash spodeleno, pozdrav od Bitola :D

  • @linolafettatnet
    @linolafettatnet 2 ปีที่แล้ว

    Thank you, that worked beautifully!

  • @adrianglezmahe
    @adrianglezmahe 4 ปีที่แล้ว +1

    Well done !
    Nice and simply code.

  • @navinn.luthrianavinn.luthr9532
    @navinn.luthrianavinn.luthr9532 7 ปีที่แล้ว +1

    That is an very use full project, well done sir. I was searching for a data logger in which i a can save the three ADC channels values with the RTC on a sd card. Can you help me out with that.

  • @LetsWalkTogether4k
    @LetsWalkTogether4k 7 ปีที่แล้ว

    beautiful tutorial, thanks!

  • @omerfarukvuran6150
    @omerfarukvuran6150 4 ปีที่แล้ว

    best tutorial i have ever seen

  • @kindjupiter
    @kindjupiter 5 ปีที่แล้ว +1

    Hello , thanks for useful videos. I have a question. If I want to measure and log the magnetic field of a device over long period of time is it viable to use same configuration u have presented and just replace temperature sensor with magnetic flux density sensor?

  • @WayneRigley
    @WayneRigley 5 ปีที่แล้ว

    Best video yet ! BUT how do I hook this up on a Node MCU? Everything I need SD / temp / temp PLEASE I hope someone can chime in for the NodeMCU side thanks in advance and we need a display on this! Lol

  • @BAmine-eu5pm
    @BAmine-eu5pm 7 ปีที่แล้ว

    Nice tutorial, Thanks D.N..!!!

  • @rodrimunoz9110
    @rodrimunoz9110 7 ปีที่แล้ว

    Thanks for your tutorials!!! Very instructive.

    • @rodrimunoz9110
      @rodrimunoz9110 7 ปีที่แล้ว

      You should seriously have many more followers!. As an engineer, Im amazed!

  • @lucassmith5040
    @lucassmith5040 7 ปีที่แล้ว

    Awesome, you are smart. Good job !

  • @heartocaboca
    @heartocaboca 4 ปีที่แล้ว

    good tutorial.. question, how do you automatically convert those rfid numbers to assign names?

  • @hugoaransan8251
    @hugoaransan8251 4 ปีที่แล้ว

    Thank you so much for the helpful information

  • @leonardoocchipinti8011
    @leonardoocchipinti8011 3 ปีที่แล้ว

    exactly what i needed

  • @sabertoothlei
    @sabertoothlei 4 ปีที่แล้ว

    very nicely explained ...Thanks !

  • @hajar2629
    @hajar2629 7 ปีที่แล้ว

    thank you we need more project of arduino
    thank u

  • @alexisentonfire
    @alexisentonfire 7 ปีที่แล้ว

    Nice work, I found this usefull

  • @keviiinisnt
    @keviiinisnt 6 ปีที่แล้ว

    Great video!

  • @fouzaialaa7962
    @fouzaialaa7962 7 ปีที่แล้ว

    awesome as always

  • @markusbaumgartner2545
    @markusbaumgartner2545 5 ปีที่แล้ว

    @How to Mechatronics does this also work well with an arduino nano?

  • @jackz8480
    @jackz8480 4 ปีที่แล้ว

    What library did you use for the clock unit?

  • @sbgajjar
    @sbgajjar 5 ปีที่แล้ว +1

    It is better to create .CSV extension file from arduino with comma separated data lines. Which can be directly opened in EXCEL just by double clicking.
    I am using it with SD card module and Microchip PICs .
    No hassle of copy - paste & setiings.
    Correct me if I am wrong.

  • @RaptorRotorHead
    @RaptorRotorHead 2 ปีที่แล้ว

    Besides the Cs chip select how does it know all the other pins where they go to because on Nanos the pinout are different than this where do you tell the serial adapter what pins are being used

  • @Haza3137
    @Haza3137 7 ปีที่แล้ว

    as always great work..

  • @fadhelahkhalaf4173
    @fadhelahkhalaf4173 7 ปีที่แล้ว

    the pins og MEGA can i change ??? and use another pins ?? i already used them for the NRF24L01 Radio/Wireless Transceivers
    Module

  • @alexandrospetkos
    @alexandrospetkos 7 ปีที่แล้ว +1

    THANK YOU SO MUCH........

  • @JowshUKproductions
    @JowshUKproductions 5 ปีที่แล้ว

    Great tutorial, thank you !

  • @lukasloxn
    @lukasloxn 7 ปีที่แล้ว +1

    +Howtomechatronics The SD card module I got has a "MOSO" pin instead of MISO. Will it work?

  • @thomasalexander1563
    @thomasalexander1563 7 ปีที่แล้ว

    Nice tutorial,,
    Like this channel,,
    always make creative idea to video..

  • @sayantanmaiti2513
    @sayantanmaiti2513 6 ปีที่แล้ว

    Can we attach a printer with arduino so that it can automatically bring out a print of the chart after a certain interval? I am actually thinking of the printing process to be automated too.Any suggestions are welcome..thanks

  • @Beegoi
    @Beegoi 7 ปีที่แล้ว

    Well done. Thank-you

  • @andrijaadamovic87
    @andrijaadamovic87 7 ปีที่แล้ว

    Very helpful, GJ

  • @darraghmagee725
    @darraghmagee725 4 ปีที่แล้ว +17

    0:47 sorry, I had to giggle

  • @adamelektronik21
    @adamelektronik21 7 ปีที่แล้ว

    It would be great if you made a video describing the communication thats taken care of in the SD library. For example what commands are behind creating, reading files etc. It would be more educational and one could then implement communication on a different platform. Anyways, I enjoy the quality of your videos, keep up the good work ;-)

    • @adamelektronik21
      @adamelektronik21 7 ปีที่แล้ว +1

      Yes, I understand. But I see you put a lot of effort into your videos and this is something I lack in it. Maybe you should consider it in future - just like a quick summary, so viewers could get better idea of how FAT system and etc works. Of course if its in your capabilities.

  • @zyghom
    @zyghom 2 ปีที่แล้ว +3

    ... and the proper first line in the file (i.e.: "Date/time,temperature") will make a header in your Excel ;-)

  • @Michael_Jorbum
    @Michael_Jorbum 6 ปีที่แล้ว

    can the data logger save incoming data right in microsoft excel withoud using notepad?

  • @pentiumgammer6465
    @pentiumgammer6465 3 ปีที่แล้ว

    is there any way to input directly in the form of excel
    or any other sheet format instead of text formate

  • @josephreyes1743
    @josephreyes1743 3 ปีที่แล้ว

    Is it possible to change the saving pattern of the sd module? I'm curious if it is possible. Putting 2 pushbuttons o change the saving pattern of sd modules.

  • @aqidmohdfaizul7261
    @aqidmohdfaizul7261 2 ปีที่แล้ว

    hi, can it use to log data from voltage sensor connected with solar panel?

  • @penghuysrean2190
    @penghuysrean2190 5 ปีที่แล้ว

    dear sir, i have a question if you would help me. can we calculate the area under the graph in excel or matlab?

  • @lynxhero4515
    @lynxhero4515 7 ปีที่แล้ว

    Dejan super si i te molam napravi video za 4x4x4 led kocka so arduino mega :) Pozz

  • @ma.fernandarinconceron1228
    @ma.fernandarinconceron1228 7 ปีที่แล้ว

    Hi! I like this code..
    I have a doubt, how can i code to recognized when I take out the card?
    Thanks!

  • @Mefistophel_KZ
    @Mefistophel_KZ 3 ปีที่แล้ว

    Can I connect two SD? one for logging and one for video recordings...

  • @swapnilbandgar8730
    @swapnilbandgar8730 4 ปีที่แล้ว

    this info is really easy to understand ...thank you so much.... but I have one doubt...
    if I want data from multiple temp sensors in following format
    date, time,T1, T2, T3, ... (for text fime, i added 2 more columns to your existing readings...)
    T1, T2, T3 are the temp sensors
    please help me out
    Im using DS 18B20 sensor

  • @yamahaman7796
    @yamahaman7796 6 ปีที่แล้ว

    can you make an example to get the data on android using the mit online version...
    good tutorial. tumbs up

  • @hafbouf7029
    @hafbouf7029 3 ปีที่แล้ว

    very clear and well understandable thanks , but I run the same program, i got errors on DS3231 rtc(SDA, SCL);
    rtc.begin(); please could you help on this thanks

  • @JulianMakes
    @JulianMakes 5 ปีที่แล้ว +2

    here are the SPI pins on the nano.... SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).

  • @calebhille9803
    @calebhille9803 7 ปีที่แล้ว

    Awesome Video

  • @user-du2pz6ci1b
    @user-du2pz6ci1b 2 ปีที่แล้ว

    Can i write the values in SD card with csv or xml formate???

  • @Mike-jg8yx
    @Mike-jg8yx 3 ปีที่แล้ว +2

    Hey man, I appreciate all the work you do and keep up these good projects! Just today I got my SD card module and I worked on the ESP8266 to get it to log data directly to a Google Spreadsheet. Now I was wondering if it would be possible to log Data from a sensor for example humidity in a car on to a SD card and then when the ESP8266 module has wifi again it sends the SD card data log directly to the Google Spreadsheet. This way I can drive, log data, come home and see the data directly into my google spreadsheet.
    I allready got the wifi connection and spreadsheet connection done I just need to know if there is a way to send out the stored data on the SD Card to a Google Spreadsheet ^^
    Would be nice if you have a solution or code for this

  • @irdammauludi3389
    @irdammauludi3389 ปีที่แล้ว

    can i log the data not based on delay,.
    for example, i want it logged and saved while i press button

  • @jumbo999614
    @jumbo999614 4 ปีที่แล้ว

    my tft lcd has built-in sd card. Does the code in this video work with my built-in sd card?

  • @vaskolego
    @vaskolego 3 ปีที่แล้ว

    Can you record data from an MPU6050, without an external clock? If I wanted to measure vibrations for about a minute max, can the arduino give me time stamps for every data from 0min to 1min?

  • @southpark4151
    @southpark4151 7 ปีที่แล้ว +6

    MOSI pin on the MEGA 2560 is pin 51, is it not? Then why have you got pin "50" connected to the MOSI pin of the SD card module? See time 0:59, where your blue and green line on the MEGA 2560 should be interchanged. Could you please fix that up? Nice video though. Thanks for your effort and time.

    • @saucerset12
      @saucerset12 3 ปีที่แล้ว +1

      Thank you!!! I swapped them and it works.

    • @southpark4151
      @southpark4151 3 ปีที่แล้ว +1

      @@saucerset12 Most welcome Kev. Thanks for sending this message here.

  • @noufel3
    @noufel3 4 ปีที่แล้ว

    thanks for your tutorial,i just have one question, there is a possibility to display data that is written on sd card on lcd display like a monitor ?

  • @fahad113f1
    @fahad113f1 7 ปีที่แล้ว

    thank u
    keep going

  • @ammarghazzay3099
    @ammarghazzay3099 6 ปีที่แล้ว

    Please how can we use rfid and SD card to enroll attenadance of student or other.

  • @Sergio-ph4dv
    @Sergio-ph4dv 3 ปีที่แล้ว

    Hello, nice video! Do you know if it is possible to create new *.txt files in the SD card every ten minutes using the arduino? Thank you!

  • @priyankachopra2400
    @priyankachopra2400 3 ปีที่แล้ว

    This is very good

  • @achmadsyaifurrizal8545
    @achmadsyaifurrizal8545 6 ปีที่แล้ว

    thanks you very much

  • @fosco3304
    @fosco3304 7 ปีที่แล้ว

    Thanks !

  • @digitaldata-surveying
    @digitaldata-surveying 4 ปีที่แล้ว

    Nice work

  • @fouzaialaa7962
    @fouzaialaa7962 7 ปีที่แล้ว

    i have a question can an arduino read a Gif image and present it in a tft display ??

  • @alaaahmed2008
    @alaaahmed2008 4 ปีที่แล้ว

    Hello Dear
    how can i conect the SD-shield with arduino due? can you help me please
    i find the pins 4,1,3,- in the datasheet but i still didnt know how to conect them with the shield
    thanx

  • @rajkunwar1454
    @rajkunwar1454 8 หลายเดือนก่อน

    Can you access saved sensor data in SD card from computer without ejecting the card?

  • @Dontdoxme9268
    @Dontdoxme9268 3 ปีที่แล้ว

    I've followed this tutorial to a T on both a MEGA and modified for an UNO and keep having issues. It may be due to the way I set the time on the DS3231 module, using the automatic set method by running a different library for it....

  • @philowen2755
    @philowen2755 7 ปีที่แล้ว

    Excellent.

  • @paulf1303
    @paulf1303 4 ปีที่แล้ว

    Is it compatible with adafruit data logger shield?

  • @agforceteam7348
    @agforceteam7348 6 ปีที่แล้ว

    it is possible to make a data logger with rfid ?

  • @xxMpEGxx
    @xxMpEGxx 7 ปีที่แล้ว

    how can I overwrite a file with my text and then how can I append another text?
    I'm really struggling to find all possible second parameters for the myFile.open()
    or what the difference is between myFile.print() and myFile.println()

  • @ascaniofiori6528
    @ascaniofiori6528 5 ปีที่แล้ว +1

    Thank you very much for this video. I succeed immediately following your instructions. I have one question, if you can answer please. In the *.ino file you define only the CS pin on pin number 10 of arduino uno. Where are defined the other pins (SCK,MOSI,MISO) ? Is it possible to change these settings ? Thank you very much in advance.

    • @NeoIsTaken
      @NeoIsTaken 5 ปีที่แล้ว

      you ever find an answer?

    • @ascaniofiori6528
      @ascaniofiori6528 5 ปีที่แล้ว +1

      NeoIsTaken not yet

    • @funatall20s
      @funatall20s 5 ปีที่แล้ว +1

      MOSI,MISO,SCK are fixed pins. look up your board's pin definitions. In UNO they are pins 11,12,13.

  • @pavankumar693
    @pavankumar693 7 ปีที่แล้ว

    sir how can we record a video using camera module and log the data into memory card??

  • @neko_mi9614
    @neko_mi9614 6 ปีที่แล้ว

    Thank you

  • @nabilandadamslaboratory3422
    @nabilandadamslaboratory3422 4 ปีที่แล้ว

    Great vid!!

  • @user-ws5jf6qz1x
    @user-ws5jf6qz1x 7 ปีที่แล้ว

    tell us about the sensor BME 280

  • @farhatahmed6332
    @farhatahmed6332 6 ปีที่แล้ว

    thank you

  • @neilgaveria5492
    @neilgaveria5492 2 ปีที่แล้ว

    Where can I download the libraries for this setup

  • @donnymontreano9235
    @donnymontreano9235 3 ปีที่แล้ว

    04:00 Hi there, please help, when i open the card's file in the notepad, i can't see anything from it. Its just blank white notepad. But when i read from Serial Monitor, the data can readed. What should i do ? Thanks

  • @bigredlevy
    @bigredlevy 3 ปีที่แล้ว

    I installed the DS3231 library from the library manager, but the sketch taken from your website does not compile. Did you use a different library?

    • @bigredlevy
      @bigredlevy 3 ปีที่แล้ว

      Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
      Nedelkovski_SDandRTC:12:21: error: no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
      DS3231 rtc(SDA, SCL);
      ^
      In file included from C:\Users\WORKSHOP\Documents\Arduino\Nedelkovski_SDandRTC\Nedelkovski_SDandRTC.ino:9:0:
      C:\Users\WORKSHOP\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate: DS3231::DS3231()
      DS3231();
      ^~~~~~
      C:\Users\WORKSHOP\Documents\Arduino\libraries\DS3231/DS3231.h:64:3: note: candidate expects 0 arguments, 2 provided
      C:\Users\WORKSHOP\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)
      class DS3231 {
      ^~~~~~
      C:\Users\WORKSHOP\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
      C:\Users\WORKSHOP\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)
      C:\Users\WORKSHOP\Documents\Arduino\libraries\DS3231/DS3231.h:60:7: note: candidate expects 1 argument, 2 provided
      C:\Users\WORKSHOP\Documents\Arduino\Nedelkovski_SDandRTC\Nedelkovski_SDandRTC.ino: In function 'void setup()':
      Nedelkovski_SDandRTC:30:7: error: 'class DS3231' has no member named 'begin'
      rtc.begin();
      ^~~~~
      C:\Users\WORKSHOP\Documents\Arduino\Nedelkovski_SDandRTC\Nedelkovski_SDandRTC.ino: In function 'void loop()':
      Nedelkovski_SDandRTC:33:20: error: 'class DS3231' has no member named 'getTimeStr'; did you mean 'getMinute'?
      Serial.print(rtc.getTimeStr());
      ^~~~~~~~~~
      getMinute
      Nedelkovski_SDandRTC:35:26: error: 'class DS3231' has no member named 'getTemp'; did you mean 'getYear'?
      Serial.println(int(rtc.getTemp()));
      ^~~~~~~
      getYear
      Nedelkovski_SDandRTC:39:22: error: 'class DS3231' has no member named 'getTimeStr'; did you mean 'getMinute'?
      myFile.print(rtc.getTimeStr());
      ^~~~~~~~~~
      getMinute
      Nedelkovski_SDandRTC:41:28: error: 'class DS3231' has no member named 'getTemp'; did you mean 'getYear'?
      myFile.println(int(rtc.getTemp()));
      ^~~~~~~
      getYear
      exit status 1
      no matching function for call to 'DS3231::DS3231(const uint8_t&, const uint8_t&)'
      This report would have more information with
      "Show verbose output during compilation"
      option enabled in File -> Preferences.

  • @user-ws5jf6qz1x
    @user-ws5jf6qz1x 7 ปีที่แล้ว +1

    спасибо. супер