Saving sensor data to SD card using Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • In this video I show you a simple Arduino-based project which consist of a LM335Z temperature sensor, a 16x2 LCD and a micro SD card reader. This project is a good starting point to learn how to write the output data of a sensor on a SD card. This is useful if you want to make a logging device that you want to put somewhere in a remote location or want to log data without having the Arduino connected to a computer. The possibilities are endless. You can add more sensors, format the data written on the card, change the logging interval, etc.
    If you found this video useful, please subscribe, so you can help me growing!
    Source code and wiring diagram: curiousscientist.tech/blog/saving-sensor-data-to-sd-card-using-arduino
    If you want to buy the things shown in the video and support me at the same time, please use my affiliate links:
    curiousscientist.tech/tools
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @jorgerivera1563
    @jorgerivera1563 6 หลายเดือนก่อน

    No matter how simple or "obvious" the structure of your program may be, for many beginner programmers it helps a lot to lay the foundations and logic that we can use in our programs. I greatly appreciate that you made this video because thanks to it I was able to finish my final project :)!

    • @CuriousScientist
      @CuriousScientist  6 หลายเดือนก่อน +1

      I am glad to hear that my video helped you with your project!

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

    Amazing video, really helpful for begginer like me. I was figuring out how the sd card works. Now, I've got the insight about it. Thank you!

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

      Thank you, I really appreciate your feedback, and I am glad that you understand now better how SD cards work!

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

    Thank youuuu so much brother

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

      I guess you read the description after your first comment.... :)

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

    For arduino nano, which pins to connect to with the SD Card Adapter

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

      I don't know by heart, but since it is an SPI device, just look up the SPI pins of the Nano.

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

    Thanks for the video man, could you give me insight on how to introduce code it shows date of the data read. Cheers from Chile.

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

      If you want date, you'll need an RTC module. Then you just read the RTC. I have a project on my channel where I introduced an RTC-based watering system. You can use that as a starting point.

  • @12_fahrulabdulaziz91
    @12_fahrulabdulaziz91 3 หลายเดือนก่อน +1

    Hi bro, good video! im just wondering, how if the data was stored in SD Card transfer to phone with bluetooth (maybe with ESP32). really appreciate if you make this one

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

    Hey, I'm trying this with a load cell and amp. When I ran the code, everything looked like it was going smoothly, but nothing was recorded when I tried to look at it on the SD card, nothing was recorded and there wasn't a file to look at. How do you start and stop a recording?

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

      Hi! Probably, you modified something in the code that hinders saving the data. Or you didn't format the card in the correct file system. It is hard to say anything without seeing the code.

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

      @@CuriousScientist I was really confused because everything looked good and it was verified by the serial monitor. It turns out it was on a "boot" whatever that means. Thanks for the code and reply!

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

      @@CuriousScientist however only records when the Arduino is plugged into the computer. Any thoughts?

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

      That can not be right. I have a similar logger that runs standalone without the computer without any issues. Have you made any changes to the code? How do you try to power the Arduino?

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

      @@CuriousScientist I've been trying to fix it, right now I'm using the port, but I've commented out all Serial communication, and it hasn't worked.

  • @huanphan3332
    @huanphan3332 11 หลายเดือนก่อน +1

    hi Sir, amazing video, what's name software on 14:45 . Thanks pro

    • @CuriousScientist
      @CuriousScientist  11 หลายเดือนก่อน

      Hi and thanks!
      The software is called qtiPlot and I strongly recommend it.

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

    hi sir when i executing this code iam getting that could not initialization SD card sir plz help me sir

    • @CuriousScientist
      @CuriousScientist  2 ปีที่แล้ว +1

      Hi! I would guess that the code is looking for an SD card but there isn't any. Have you inserted the SD card? Is it formatted properly?

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

    thanks, you just saved my rocket.

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

      I am glad to help! Cheers!

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

      @@CuriousScientist please provide the link for the code

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

      @@Starman5771 watch the video and read the description maybe???

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

      @@CuriousScientist Thank You for replying so immediately I was not expecting this🙏🙏

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

      I hope that the provided resources will help you!

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

    Hi man
    Can you learn me how to save reading sensor fsr to sd pleas

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

      Hi! Just watch the video carefully. Everything is explained thoroughly.

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

      @@CuriousScientist thx but becaus iam iraqi (arabic) so i not understand way to save other sense

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

      I cannot see how else I can explain this thing. I think it is relatively easy to follow my tutorials. I explain the code line by line and also you can download the code and experiment with it.