Seven Segment Display Thermometer - Arduino Based

14,173

94

11

Intro: Seven Segment Display Thermometer - Arduino Based

Today I will show you how to make your own 7 segment - 2 digit - thermometer with Arduino uno and DS18B20 temperature sensor.

I prefer to build my own arduino based circuit by using the ATmega328p uno possessor, but this is optional for you. You can also use breadboard to build it easier ;)

Official page: http://www.ardumotive.com/7-seg-thermometer.html

Let's get started!

Step 1: What You Will Need

Basic

For this project you will need:

  • Arduino uno
  • Breaboard
  • DS18B20 temp sensor
  • 4.7K Ohm resistor
  • 2x 7 Segment Display

Optional

If you prefer to build this without arduino uno board you will also need:

  • 16MHz Crystal oscillator
  • 2x 22pF and 1x 100nF capacitors
  • 10K resistor
  • 28 pin DIP IC Socket
  • on/off sw

About power supply

If you make this with Arduino uno board you will need at least 6V battery pack or AC to DC adapter. You can also use USB cable to power on thermometer from your computer.

If you prefer the "hard way" and build this without Arduino board you will need 3x AA battery pack.

(remember, without a voltage regulator - max power source 5v)

Step 2: The Circuit

As I said before, I will give you two ways for build this thermometer.

The easy way is to build it on breadboard and the difficult way is to build it on a custom Arduino based circuit board.

Step 3: The Code

Here's the code, embedded using codebender!

Try downloading the codebender plugin and clicking on the "Run on Arduino" button to program your Arduino with this sketch.

If you choose to make your own arduino based circuit, put atmega328p on Arduino uno board, click "Run on Arduino" to program it and then put it back to your circuit.

Step 4: Well Done!

That's it! Now you have your own Arduino Digital Thermometer in your desk ;)

I have an old analog clock in my desk and I transformed it to a nice 7 segment digital thermometer ;) - see images above.

I hope you liked this, let me know in the comments.

There will be more of them, so make sure to click Follow button :)

Share

    Recommendations

    • Tiny Home Contest

      Tiny Home Contest
    • Audio Contest 2018

      Audio Contest 2018
    • Metalworking Contest

      Metalworking Contest

    11 Discussions

    0
    None
    smandal13

    2 months ago

    could not compile this code for atmega8. Any help please.

    0
    None
    pistib

    4 months ago

    1.Working only with Common Cathode

    2.Breadboard version:first digit CC (pin3-8) go to Arduino 3 pin

    (not to 4)

    3.Second digit CC go to Arduino 4 !!!

    Very good poject,thanks to sharing!

    0
    None
    Colaris

    2 years ago

    Could you add a solar panel which charges rechargable batteries?

    1 reply
    0
    None
    amaretić1Colaris

    Reply 1 year ago

    https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcSveEmtdAToX-kid5GALl9rEHz9Tuh-TTN-nrdh5ybdmBTDeytlpw

    0
    None
    amaretić1

    1 year ago

    What iss with negative temperatures?'.... Soo bad

    0
    None
    LaurensJ

    1 year ago

    I using the Thermometer: lm35. Have i change the code or not?

    0
    None
    mehmet_1234

    2 years ago

    My code is don't working. why??

    0
    None
    Sandbird

    2 years ago

    Any idea roughly how long will the batteries last ? (i mean doing it the hard way)

    1 reply
    0
    None
    amackinnon2

    3 years ago on Introduction

    Too funny, I am doing the same sort of project though adding a bright RGB for the bottom of small pond with spectrum thermal scale. Using a thermal resistor though... Here I am coding the segments like a chump when you have this lib for i... As often the case you may want to add a pot , so someone can change the intensity of the display (not critical at all just a maybe add) I really like your version (I like my own too) but I can admire some cool work.