Arduino Tutorial: How to make an analog Thermometer with Arduino a DS18B20 and an analog Voltmeter

Sdílet
Vložit
  • čas přidán 11. 07. 2024
  • In this Arduino Tutorial we are going to modify this analog Voltmeter and convert into an Analog Thermometer using Arduino and a DS18B20 temperature sensor. Without any further delay, let's get started!
    Today we are going to learn how to use this analog voltmeter with Arduino and make it show the temperature instead of the voltage. As you can see, in this modified voltmeter, we can see the temperature in degrees Celsius. The temperature is measured by this digital sensor, a DS18B20 and it is then displayed on the voltmeter. I really like analog dials like this one, because they give a vintage look to the projects. Let's now see how to achieve that result.
    💻 Code & Parts: educ8s.tv/arduino-analog-therm...
    Want to learn to code?
    👨‍💻 Check my new CZcams channel: bit.ly/3tku2n0
    🎮 My Android Game: bit.ly/QuizOfKnowledge
  • Věda a technologie

Komentáře • 58

  • @Poult100
    @Poult100 Před 5 měsíci

    I love analog displays for the nostalgia, right back to my childhood when my father used to build stuff. I now mainly use the small OLED displays to mimic analog ones, so customisable but not so nostalgic. Love the idea of the yellow LEDs! Too many people use blue. Not so good really and terrible at night.

  • @republicofsandles
    @republicofsandles Před 7 lety +1

    I was on the bus, so watched this video without sound.
    As soon as I saw that you were using a voltage meter this video began to make crystal sense.
    That was really pragmatic engineering, and it was quite impressive.

  • @AhCup
    @AhCup Před 7 lety +1

    As a noob, I really like this project. It's simple enough to understand yet I feels like I learned something new. Can't wait the video you are going upgrade this project.

  • @zhvtlt
    @zhvtlt Před 7 lety

    Great idea, friend! Thank you!. I wouldn't have guessed to do it that way.

  • @MrBobWareham
    @MrBobWareham Před 7 lety +1

    very nice it looks good I am going to make one with an old dc volt meter, thanks for the video.

  • @healthcoachchris7382
    @healthcoachchris7382 Před 7 lety +2

    I love the analog meters - old school, like me :)

  • @AnsyCrofts
    @AnsyCrofts Před 7 lety

    Thamks! As usual, an excellent tutorial. As usual, one finger on the "pause button". Lordy, lordy, it's fast!

  • @MichaelDisney
    @MichaelDisney Před 7 lety

    I've had an urge to build a mains frequency monitor, using an analogue gauge as an indicator. It was to test the idea that power companies have to make good on a daily frequency tally and make up for frequency drops during peak load times. Thanks for your videos and circuit ideas!

  • @holetoanotheruniverse4690

    Wow! I have so many ideas for projects we can build with this voltmeter! For example you can use it to display your data from your weather station, like humidity, and pressure! Or you can build a vu-meter out of a voltmeter. Maybe you can even build an analog clock. have to buy a few of these!

  • @mifo1133
    @mifo1133 Před 7 lety

    a like this project! cant wait for LED version :)

  • @avejst
    @avejst Před 7 lety +1

    I like analog meters. often they are more easy to "decode" at a distance

  • @napierjohn
    @napierjohn Před 7 lety

    I am just ow learning to code arduino, but your project will help me with one project I have been thinking of. You know you can go to an auto junkyard and get an analog instrument panel from many cars for like $15. I think it would be cool to hook up several sensors and an arduino so I can monitor things using the instrument panel. Have it on my desk.
    Thanks for your lesson.

  • @ValseInstrumentalist
    @ValseInstrumentalist Před 7 lety

    Even though they take more effort to set up, I think I prefer digital displays. There's just something so fun about creating a custom interface and having it appear on a mini OLED or TFT LCD. I recently got a Raspberry Pi e-ink display which continues to be a fun challenge.

  • @gustavozaraza6456
    @gustavozaraza6456 Před 7 lety

    excelente video

  • @PixelDemon
    @PixelDemon Před 7 lety

    Hello Sir,
    first of all thanks for your great channel. You are an excellent teacher! Funny enough i received 2 analog Voltmeters yesterday. They are round and i want to build a vintage looking clock with them, one displaying hours and the other one showing the minutes. I have not figured out yet how to calibrate them since they both show about 4.7 volts at full PWM. Do you have any ideas?
    Keep up the great work, all the best from Germany!

  • @Tarbard
    @Tarbard Před 7 lety +3

    There's something nice about analog interfaces. By the way I have a video on my channel comparing DS18B20s from china(banggood) with those from more reputable suppliers.

  • @hollensted
    @hollensted Před 7 lety

    Love it! But my display fetish peaks at VFD which is really cool. Nixie's are great but limited.

  • @crashwg
    @crashwg Před 7 lety +2

    Can you compare the current requirement of this method vs other, digital display methods? Perhaps your favorite graphical screens as well as character LCDs.

    • @Educ8s
      @Educ8s  Před 7 lety

      This display requires about 1mA if current which is very low compared to any other display except from the Nokia 5110 which need 0.4mA

  • @harshitgupta1451
    @harshitgupta1451 Před 7 lety

    Can you make any project relating to gesture controlling using ADXL-335 or any other accelerometers???

  • @AndriusKamarauskas
    @AndriusKamarauskas Před 4 lety

    i planning to make wattmeter on my diy pc to show energy use in real time. Inside will be lipo charger and few 12v(high amperage) outputs for other devices

  • @baxmauer
    @baxmauer Před 7 lety

    i like the analog meters alot

    • @baxmauer
      @baxmauer Před 7 lety +1

      and your toturials really got me started into electronics, greetings from germany

    • @Educ8s
      @Educ8s  Před 7 lety

      Happy to hear that! Greetings from Greece!

  • @interlinkknight
    @interlinkknight Před 7 lety

    looks like that gauge is linear. All gauges I've found are not linear, meaning that each step of the 255 values move different amount depending if the gauge is on the left or right. did you test if your gauge is trully linear?

  • @BlogOfGadgets
    @BlogOfGadgets Před 6 lety

    Nice project....Nick can you make a video on how we can make an arduino current meter to measure current utilised by an appliance

  • @AnsyCrofts
    @AnsyCrofts Před 7 lety

    One thing about these new-fangled digital meters - if you're measuring current, I love to have my trusty 40-year-old AVO-8 in series, to measure current.
    If it drops into (e.g., an interrupt routine), you see it clearly, rather than trying to unscramble the mularkey of a digital meter.

  • @udith-pz4tv
    @udith-pz4tv Před 7 lety

    Thanks,,,,,,

  • @mirkomueller3412
    @mirkomueller3412 Před 7 lety

    I have an idea for another project:
    I discovered problems using an arduino driving a 12x12 WS2812 LED Matrix AND (at the same time) trying to use the same arduino for accepting remote control commands. The animations did'nt run smoothly anymore and the remote control codes were not interpreted correctly. So i had to forget about controlling the arduino via remote control. Is there any way to solve this problem maybe by using two (or more) arduino's working somehow together when there is more than one time critic routine that has to be taken care of?

  • @adrianrawlings2470
    @adrianrawlings2470 Před 5 lety

    Great project. I've been looking for something to build as a gift for my son and this perfect. Once the circuit is done there is no limit to the case design. Although could you add the code so it can display minus zero temperatures?

    • @Educ8s
      @Educ8s  Před 5 lety

      Thanks, Adrian for your comment. Just set the desired temperature range at the variables: int MIN_TEMP = -10;
      int MAX_TEMP = 30; for example and it will work

  • @codingtimes3199
    @codingtimes3199 Před 7 lety

    good

  • @WhoCaresWinsAgain
    @WhoCaresWinsAgain Před 7 lety

    Hi Nick, nice simple project. I can't see the promised link for the photoshop file for the panel meter replacement dial? I made a similar "analog" type project using two meters and a Real Time Clock one meter is o-12 hours the other 0-60 minutes. Looks quite retro in a nice home designed laser cut case. Regards Nick (UK)

    • @Educ8s
      @Educ8s  Před 7 lety

      Hey Nick, I have attached the .png file for the panel meter. Unfortunately, I deleted the .psd file from my computer by mistake so I can't share it.

  • @xxstormuxx
    @xxstormuxx Před 7 lety

    cool project. the one thing I don't like about it is temperature range

    • @Educ8s
      @Educ8s  Před 7 lety +1

      +Artur Z The temperature range can be configured in the code

  • @ShyamKumar-by7bm
    @ShyamKumar-by7bm Před 6 lety

    can you suggest a microcontroller board like UNO which has 5v gpio output with ESP8266 so I can send commands using MQTT

  • @prashantmadan2106
    @prashantmadan2106 Před 7 lety

    please make a video on how to interface mobile display with arduino.

  • @resiggy13
    @resiggy13 Před 7 lety

    did you forget the replacement meter background template? don't see it in any of the provided links.

    • @Educ8s
      @Educ8s  Před 7 lety

      +resiggy13 check the .zip file with the code. It's in there

  • @JanicekTrnecka
    @JanicekTrnecka Před 5 lety

    Suggestion - new video - how to handle states outside given temperature range ! If the temperature drops/rises below 16 /over 28 deg the PWM variable (voltage) will overflow ....

  • @tonyweavers4292
    @tonyweavers4292 Před 7 lety

    Hi Nick, Great project. There is no link for the printed face for the meter.
    Thanks :)

    • @Educ8s
      @Educ8s  Před 7 lety +2

      Hey Tony, I have placed the file inside the .zip file along with the code.
      Cheers!

    • @tonyweavers4292
      @tonyweavers4292 Před 7 lety

      Ah, OK. Thanks Nick!

    • @tonyweavers4292
      @tonyweavers4292 Před 7 lety

      Thanks Nick.

  • @arthurc1971
    @arthurc1971 Před 6 lety

    Has anyone built one of these in fahrenheit? If so do you have a print file and arduino code?

  • @jenntek.101
    @jenntek.101 Před rokem

    5 years later... I found your instructable;
    I have this working, but, with one small issue.
    The meter is "pulsing"
    It goes from the lowest (0volts) to the current temp for 1/2 second, and drops back to zero.
    Its jumping every 1/2 second to the actual temp.
    Can you help me?
    *edit* i changed the delay to 5, instead of 500. it's working!

    • @Educ8s
      @Educ8s  Před rokem +1

      I am so glad it works!

  • @mostlymessingabout
    @mostlymessingabout Před 7 lety

    You sound like kryton on fully charged / red shift

  • @amitpatelpatel144
    @amitpatelpatel144 Před 7 lety

    I think I put a LED in it . It's readable in night too.

  • @mihajlopetkovic2003
    @mihajlopetkovic2003 Před 7 lety

    Why do you multiply temperature value by 10?

    • @Educ8s
      @Educ8s  Před 7 lety

      Since the temperature is a float and the map function works only with integers

    • @mihajlopetkovic2003
      @mihajlopetkovic2003 Před 7 lety

      Thanks!

  • @JL-sn1wn
    @JL-sn1wn Před 6 lety +1

    The program may crash if u run it in Chinese summmer. Customer the average temperature in China is 35 degrees. 😂

  • @ElGatoLoco698
    @ElGatoLoco698 Před 7 lety

    I'm no expert but isn't using an arduino considered digital, not analog? It's like saying my 50 inch LED tv is analog. My tv can't be analog because the use of LED's makes it digital.