10-channel voltage logger with display and SD card

Поделиться
HTML-код
  • Опубликовано: 18 июн 2023
  • In this video, I show you how to make a 10-channel voltage logger that can not only show the measurement data on a display, but it can also log it on an SD card.
    The system is driven by a STM32F401CCU6 microcontroller. It has a 1.8" TFT LCD with an SD card slot and a button.
    This demonstration and code are a perfect base for building a more complicated logger where you both want to see the data and save it on an SD card.
    Check my blog article for more details:
    curiousscientist.tech/blog/10...
    Please consider supporting me on Patreon:
    / 10-channel-with-84806663
    Check my Parts & Tools page for relevant parts:
    curiousscientist.tech/tools
  • НаукаНаука

Комментарии • 14

  • @dougdodman8585
    @dougdodman8585 Месяц назад

    Quite a neat project and will be so helpful! I appreciate you walking through the code to explain it. I visited your website and found the parts list. I couldn't find the code anywhere. Have you shared it somewhere? I was thinking to re-type it from the video but maybe you have it already shared.

    • @CuriousScientist
      @CuriousScientist  Месяц назад +1

      Thank you! Yeah, the code is available for download for my supporters on Patreon.

  • @isidoromaich7226
    @isidoromaich7226 Год назад +1

    Awesome! This reminds me one time we urgently needed a logger, we ended up hooking up 6 multimeters, setting an alarm in a mobile phone and took a photo and later write it down the values...for 10 hours every 10 minutes.. LOL very primitive. And we though the problem was find 6 meters with min-max function 🤣 we took turn to take the photos 😅Having a logger like this one is pretty neat, probably will not end the slavery... but helps a lot

    • @CuriousScientist
      @CuriousScientist  Год назад +1

      Hey, welcome back! 😉 The setup you described reminds me of my university labs. It was not 10 hours long, but sometimes I also had to note down several values on a paper for a long period of time. I wish I could've built some loggers for it. Logging and automation can make life easier for sure!

  • @EmpyreanLightASMR
    @EmpyreanLightASMR Год назад

    39:35 Why does the SD card not write float? I think I'm confused here. Also, what is dtostrf and what purpose does it serve?
    42:01 For a simpler project, do I always have to use newData function? I'm assuming doing this lets the SD card know when it can write, otherwise it... always writes? (I'm a noob)
    38:56 Why do you write to SD card here, but initialize SD at 42:19 (later in the code)?
    Your videos are amazing, I'm probably way in over my head but will try to incorporate what I"ve learned here. Thank you!

    • @CuriousScientist
      @CuriousScientist  Год назад

      Hi!
      Watch the video once more because the questions are answered there precisely. This is the exact reason why I go through my codes line by line and explain how it works because I know that these questions will come up.
      But if you're still confused, just drop another comment, and I answer the questions.
      Cheers!

    • @EmpyreanLightASMR
      @EmpyreanLightASMR 11 месяцев назад

      @@CuriousScientist Didn't you have a video where your Arduino would create a new text file to write to (a sequentially numbered text file, like LOG00001.txt, etc) every time you reset the Arduino? I thought I'd saved the video and I'm sooo positive it's one of yours! Thank you

    • @CuriousScientist
      @CuriousScientist  11 месяцев назад

      @@EmpyreanLightASMR Probably some early video with the DS18B20 thermometer/temperature logger.
      But it is simple to make the thing you want. You can store the serial number in the EEPROM and just recall it every time you create a new file. Or, you read the last file's name, parse its numerical part and then increase the numerical part by 1 when you create the new file. Both are relatively straightforward tasks. The third way is to check if the filename you want to create already exists. If yes, you just create another, following a predetermined sequence.

    • @EmpyreanLightASMR
      @EmpyreanLightASMR 11 месяцев назад +1

      @@CuriousScientist you make it sound so easy, but every code i found online is so convoluted (for a noob like me). But that's ok, I think i'm ok with appending data to the same log since i'm running out of time to mess with luxuries! btw, thank you for your replies!

    • @CuriousScientist
      @CuriousScientist  11 месяцев назад

      @@EmpyreanLightASMR I don't make it sound so easy, it is easy. :)
      I will soon publish a new video on my updated thermometer (continuation of this project) and it will contain the solution. It is basically 3 lines of code.