Using DS18B20 with 1602 LCD on Arduino

Поделиться
HTML-код
  • Опубликовано: 11 окт 2024
  • In this tutorial we start with a short easy to follow sketch to print text on a 1602 LCD using either direct connection to Arduino, or through I2C with a GPIO expander.
    Then we add the DS18B20 digital thermometer and display the temperature on an LCD with minimal complexity to get it up and running.
    Finally everything is merged into one project, some more advanced commands are used, and both LCDs are used simultaneously to illustrate how to control multiple devices.
    Sketch:
    github.com/Gad...
    Previous DS18B20 video:
    • DS18B20 Arduino Temper...
    Previous LCD 1602 video:
    • How To Use LCD Display...
    Previous PCF8574 GPIO expander video:
    • PCF8574 I2C GPIO Expan...
    Patreon: / gadgetreboot
    Pinterest: www.pinterest....
    Twitter: @GadgetReboot / gadgetreboot

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

  • @pileofstuff
    @pileofstuff 5 лет назад +2

    Yup, from a normal person type approach, the only practical difference between the Uno and the Mega (and a Nano, for that matter) is that the Mega has a bunch more pins available.

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      I’m starting to feel like I should place a few orders and get a broader Arduino collection just to have more clutter for the workbench. If nothing else, at least some spare UNOs because with all the sketches and constant tweaking and re-uploading, one of these days I won’t be able to upload to the board when the flash dies.

    • @pileofstuff
      @pileofstuff 5 лет назад +1

      @@GadgetReboot Once you start, you'll end up trying to collect a few of each and every variant.. just because.
      I'm stil not entirely certain why I got the Lillypad style, but I have them now, and that's what counts.
      Tomorrow's mailbag has another different arduino variant...

  • @electronic7979
    @electronic7979 5 лет назад +1

    Useful video 👍

  • @ipatel4930
    @ipatel4930 5 лет назад +1

    Hey, could you connect your DS18B20 to your Arduino and 3.2" TFT LCD display. Please explain how to connect these 3. Would be a pretty cool video. Thanks.

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      I think it would be fun to look at the TFT LCD again so I will put it on my list of candidates to see if I can come up with something and do a video.

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      I had some extra time this evening so I tried using the temperature sensor with the touchscreen and I have a partial working prototype so I will definitely have a video coming out about that. I want to add a couple more features to make it all worthwhile so stay tuned!

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      Here's the video I made: ruclips.net/video/l7UPMfzNjyg/видео.html

  • @abinnixon8511
    @abinnixon8511 5 лет назад +1

    Hi i really enjoyed this informative video, i was wondering if you can show how to do this with an 1.5" 128x128 SPI OLED display, with the schematic of the components and wiring to an arduino nano (which should have the same pinout of an UNO). Im working on a project and would really appreciate the help. Thank you.

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      I don’t have that display although I am willing to look into it and get one because I’m sure I could use it myself as well but I may be able to still come up with a theoretical schematic and code that could be tested out. I’ll put it on my list and see what I can do.

    • @abinnixon8511
      @abinnixon8511 5 лет назад +1

      @@GadgetReboot ok thank you please let me know when you figure it out.

    • @GadgetReboot
      @GadgetReboot  5 лет назад

      Do you have a link to that specific display? When I was looking around I can only find LCD displays with that sort of resolution, not OLED.

  • @sumitsouravamohanty8935
    @sumitsouravamohanty8935 5 лет назад +1

    Why You have used Pull up please reply Sir ?

    • @GadgetReboot
      @GadgetReboot  5 лет назад +1

      A pull up is needed by the one wire bus because it’s open drain/collector like I2C. I could have chosen not to use a pull up on the temperature sensor as investigated in a previous video using an Arduino internal pull up ruclips.net/video/145ml4ii1ao/видео.html
      But performance is better with external.

    • @sumitsouravamohanty8935
      @sumitsouravamohanty8935 5 лет назад +1

      @@GadgetReboot Okay what I understand now that as the temperature sensor have open collector configuration so we are using a pull up resistor which pulls the value to 5v when 1 wire device is not transmitting And we can also use the Arduino default pull up resistor to make this happen..
      So in essence pull up resistor is must when the 1 wire bus communication is needed.

    • @GadgetReboot
      @GadgetReboot  5 лет назад +1

      Correct!

    • @sumitsouravamohanty8935
      @sumitsouravamohanty8935 5 лет назад +1

      @@GadgetReboot Thanks A lot.