Тёмный

Arduino SD Card and Data Logging to Excel Tutorial 

How To Mechatronics
Подписаться 682 тыс.
Просмотров 471 тыс.
50% 1

howtomechatron... ► 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:
► howtomechatron...
Like my page on Facebook:
► / howtomechatronics
Add me on Google+:
►plus.google.co...
Music: Aduro by Jens Kiilstofte (machinimasound.com/music)

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 194   
@cubiq1
@cubiq1 8 лет назад
The most concise, understandable and well presented Arduino tutorials on RU-vid. 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
@therewbb
@therewbb 8 лет назад
Keep up the good work, Dejan! You are by far the best at explaining and presenting Arduino stuffs!
@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
@vizmohanan
@vizmohanan 8 лет назад
That's one of the best tutorials I've ever watched. Great work. Thank you. :)
@zyghom
@zyghom 3 года назад
... and the proper first line in the file (i.e.: "Date/time,temperature") will make a header in your Excel ;-)
@chrisakaschulbus4903
@chrisakaschulbus4903 5 лет назад
tis tutorial really helps, i'm planning on logging the voltage of some solarpanels and never really understood the sd card tutorials :D
@jesuisjustinian
@jesuisjustinian 2 года назад
Awesome bro followed and works for my Wheatstone bridge application
@linolafettatnet
@linolafettatnet 2 года назад
Thank you, that worked beautifully!
@dusseljeef
@dusseljeef 7 лет назад
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.
@richmiller9844
@richmiller9844 4 года назад
Awesome job! Tons of information in only a few minutes!
@metis9597
@metis9597 4 года назад
Thanks to showing us how to import "raw" data to excel👌🏻
@jesusreignonhigh6732
@jesusreignonhigh6732 6 лет назад
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.
@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
@sbgajjar
@sbgajjar 6 лет назад
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.
@erendogan7317
@erendogan7317 8 лет назад
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
@darraghmagee725
@darraghmagee725 5 лет назад
0:47 sorry, I had to giggle
@JulianMakes
@JulianMakes 5 лет назад
here are the SPI pins on the nano.... SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK).
@taoufikulislam
@taoufikulislam 6 лет назад
you are a great teacher Dejan.. A gigantic thumbs up for you xD!
@Aviation437
@Aviation437 8 лет назад
Very Good! I would be happy to see some tutorials and applications with inertial sensors.
@adrianglezmahe
@adrianglezmahe 4 года назад
Well done ! Nice and simply code.
@gulhermepereira249
@gulhermepereira249 8 лет назад
Best tutorial ever on arduino! Congrats
@xalexander1996
@xalexander1996 6 лет назад
Thanks to you I have learned something really helpful!!! Keep up the great work!
@omerfarukvuran6150
@omerfarukvuran6150 5 лет назад
best tutorial i have ever seen
@navinn.luthrianavinn.luthr9532
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.
@kirenvandenbrandeler7869
@kirenvandenbrandeler7869 6 лет назад
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.
@MsEDUARDOCR7
@MsEDUARDOCR7 8 лет назад
Always interesting projects. Congratulations! Every week I am wating for a new video.
@kindjupiter
@kindjupiter 6 лет назад
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?
@southpark4151
@southpark4151 7 лет назад
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 года назад
Thank you!!! I swapped them and it works.
@southpark4151
@southpark4151 3 года назад
@@saucerset12 Most welcome Kev. Thanks for sending this message here.
@Mike-jg8yx
@Mike-jg8yx 3 года назад
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
@SlavkosHobbyChannel
@SlavkosHobbyChannel 6 лет назад
Super zemjak, fala ti za se sho imash spodeleno, pozdrav od Bitola :D
@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
@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 лет назад
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.
@josedominguez2021
@josedominguez2021 6 лет назад
Mil gracias. Todos sus videos son super. Manita arriba!!!!
@ruitfsilva
@ruitfsilva 8 лет назад
Thanks man. Best Arduino videos of youtube :)
@rodrimunoz9110
@rodrimunoz9110 8 лет назад
Thanks for your tutorials!!! Very instructive.
@rodrimunoz9110
@rodrimunoz9110 8 лет назад
You should seriously have many more followers!. As an engineer, Im amazed!
@seanbush5313
@seanbush5313 6 лет назад
Thank you so much, this is exactly what I was looking for.
@sabertoothlei
@sabertoothlei 4 года назад
very nicely explained ...Thanks !
@venkatyalamati3285
@venkatyalamati3285 Год назад
Hi... plz plz make video on how to interface CH376 usb module with Arduino.... It is to write/read data with pen drive
@hafbouf7029
@hafbouf7029 4 года назад
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
@hajar2629
@hajar2629 8 лет назад
thank you we need more project of arduino thank u
@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
@priyankachopra2400
@priyankachopra2400 4 года назад
This is very good
@hugoaransan8251
@hugoaransan8251 4 года назад
Thank you so much for the helpful information
@leonardoocchipinti8011
@leonardoocchipinti8011 3 года назад
exactly what i needed
@lucassmith5040
@lucassmith5040 8 лет назад
Awesome, you are smart. Good job !
@alexandrospetkos
@alexandrospetkos 8 лет назад
THANK YOU SO MUCH........
@BAmine-eu5pm
@BAmine-eu5pm 8 лет назад
Nice tutorial, Thanks D.N..!!!
@yamahaman7796
@yamahaman7796 6 лет назад
can you make an example to get the data on android using the mit online version... good tutorial. tumbs up
@rajkunwar1454
@rajkunwar1454 Год назад
Can you access saved sensor data in SD card from computer without ejecting the card?
@alexisentonfire
@alexisentonfire 7 лет назад
Nice work, I found this usefull
@thomasalexander1563
@thomasalexander1563 7 лет назад
Nice tutorial,, Like this channel,, always make creative idea to video..
@LetsWalkTogether4k
@LetsWalkTogether4k 8 лет назад
beautiful tutorial, thanks!
@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.
@lynxhero4515
@lynxhero4515 8 лет назад
Dejan super si i te molam napravi video za 4x4x4 led kocka so arduino mega :) Pozz
@ascaniofiori6528
@ascaniofiori6528 6 лет назад
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 лет назад
NeoIsTaken not yet
@funatall20s
@funatall20s 5 лет назад
MOSI,MISO,SCK are fixed pins. look up your board's pin definitions. In UNO they are pins 11,12,13.
@digitaldata-surveying
@digitaldata-surveying 4 года назад
Nice work
@Dontdoxme9268
@Dontdoxme9268 4 года назад
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....
@Beegoi
@Beegoi 8 лет назад
Well done. Thank-you
@achmadsyaifurrizal8545
@achmadsyaifurrizal8545 6 лет назад
thanks you very much
@irdammauludi3389
@irdammauludi3389 Год назад
can i log the data not based on delay,. for example, i want it logged and saved while i press button
@sayantanmaiti2513
@sayantanmaiti2513 7 лет назад
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
@user-du2pz6ci1b
@user-du2pz6ci1b 2 года назад
Can i write the values in SD card with csv or xml formate???
@TheHalalStudent
@TheHalalStudent Год назад
I don't understand. I have an Arduino Uno, but pin "53" works for me. If I change it to pin "10", it says "SD card initialization failed."
@camerongordon2378
@camerongordon2378 Год назад
did you get yours to wok?
@TheHalalStudent
@TheHalalStudent Год назад
@@camerongordon2378 yes. I have it working on uno, not on mega. I didn’t try the excel part, i only cared about it initially working.
@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?
@Haza3137
@Haza3137 8 лет назад
as always great work..
@fouzaialaa7962
@fouzaialaa7962 8 лет назад
awesome as always
@Zoe-q8i
@Zoe-q8i 5 лет назад
good tutorial.. question, how do you automatically convert those rfid numbers to assign names?
@The_Mindful_Scholar
@The_Mindful_Scholar 7 лет назад
how to store or retain last value of counter for rotary encoder sensor on LCD when arduino is again powered ON by using SD card?
@sigillumdei887
@sigillumdei887 6 лет назад
You should create aditional file on your sd card, named init settings where you will write every loop cycle, status of your logging device and initialization parameters at start-up, after then you need to parse each pair key = value, to get the desired values. Another more expensive one is depend on how you parse the logging data. If your file contains the most recent data at the top or at the botom. If you write append to the logging file, the recent data will be at the most end of the file, in this case you will need to request filesize in bytes and set up the pointer/cursor at this location-1. Make a while loop and compare current byte char against comma or newline 0xA and if is not found, store in a char array current byte char and decrement pointer to next char until this delimiter will be found. Now you have your last value as a char array data, use a function to convert this to a integer eg. strtoi and use your last value. The first option with a separate ini file would be very efficient to keep track of your device at runtime for recovery after an unexpected shutdown.
@jesusreignonhigh6732
@jesusreignonhigh6732 6 лет назад
You think you can also log in power draw for each loop cycle?
@specialrelativity8222
@specialrelativity8222 10 месяцев назад
how many times I can write/erase data to sd card?? because eeprom doesn't support many times.
@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!
@philowen2755
@philowen2755 8 лет назад
Excellent.
@keviiinisnt
@keviiinisnt 7 лет назад
Great video!
@calebhille9803
@calebhille9803 7 лет назад
Awesome Video
@82363
@82363 10 месяцев назад
Sd.h 是否考慮增加掃毒功能,否則未來單晶片不知道會不會跟電腦一樣中毒,以上純屬個人觀點
@pentiumgammer6465
@pentiumgammer6465 3 года назад
is there any way to input directly in the form of excel or any other sheet format instead of text formate
@andrijaadamovic87
@andrijaadamovic87 8 лет назад
Very helpful, GJ
@Mefistophel_KZ
@Mefistophel_KZ 3 года назад
Can I connect two SD? one for logging and one for video recordings...
@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
@neko_mi9614
@neko_mi9614 6 лет назад
Thank you
@aqidmohdfaizul7261
@aqidmohdfaizul7261 3 года назад
hi, can it use to log data from voltage sensor connected with solar panel?
@ma.fernandarinconceron1228
@ma.fernandarinconceron1228 8 лет назад
Hi! I like this code.. I have a doubt, how can i code to recognized when I take out the card? Thanks!
@lukasloxn
@lukasloxn 7 лет назад
+Howtomechatronics The SD card module I got has a "MOSO" pin instead of MISO. Will it work?
@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?
@ammarghazzay3099
@ammarghazzay3099 6 лет назад
Please how can we use rfid and SD card to enroll attenadance of student or other.
@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 ?
@artjomvartanyan5765
@artjomvartanyan5765 4 года назад
yes
@nabilandadamslaboratory3422
@nabilandadamslaboratory3422 4 года назад
Great vid!!
@HowToMechatronics
@HowToMechatronics 4 года назад
Thanks!
@fahad113f1
@fahad113f1 8 лет назад
thank u keep going
@marinelahurtadomontano1427
@marinelahurtadomontano1427 Год назад
Hello, I am new to this. Please explain me because it gives me error in the line : DS3231 rtc(SDA,SCL);
@fosco3304
@fosco3304 8 лет назад
Thanks !
@AOBAboOmer
@AOBAboOmer 8 лет назад
nice to meat u
@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()
@jumbo999614
@jumbo999614 4 года назад
my tft lcd has built-in sd card. Does the code in this video work with my built-in sd card?
@markusbaumgartner2545
@markusbaumgartner2545 5 лет назад
@How to Mechatronics does this also work well with an arduino nano?
@jackz8480
@jackz8480 5 лет назад
What library did you use for the clock unit?
@hammadsafeer4283
@hammadsafeer4283 6 лет назад
Hello sir..... I have problem to compile code It says that ... Return code is not 0.... How I get rid of it...please tell me
@anouarammi5462
@anouarammi5462 10 месяцев назад
is the code that he made at the end also for the temperature thing?
@anouarammi5462
@anouarammi5462 10 месяцев назад
how do i connect everything?
@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
@Melodyvibe2004
@Melodyvibe2004 3 года назад
Sir I am going to innovate a project related to sensors , so is it possible for you to send me the required codes for all those sensors?....
@alaaahmed2008
@alaaahmed2008 5 лет назад
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
@geniustechnology3358
@geniustechnology3358 5 лет назад
Good
@sansritpaudel8455
@sansritpaudel8455 4 года назад
I want to log nrf24l01 transceiver data to sd log. both transceiver and sd logger uses same SPI pin. I can 't log data to sd card . whenever i supply vcc to sd card reveived data goes to zero fix my problem
Далее
Arduino and DS3231 Real Time Clock Tutorial
3:59
Просмотров 454 тыс.
#9 Arduino Data Logger with Direct Input to Excel
10:12
10 years of embedded coding in 10 minutes
10:02
Просмотров 396 тыс.
ESP32 SD Card Interfacing Fast!
7:07
Просмотров 52 тыс.
The Best Data Logger?
12:37
Просмотров 9 тыс.
Easy Arduino Data Logging and Telemetry
34:31
Просмотров 171 тыс.