circuito.io team
Published © GPL3+

Simple Arduino-based Thermometer

Cool thermometer using Sugru and circuito.io.

BeginnerShowcase (no instructions)4 hours8,120

Things used in this project

Hardware components

SparkFun One Wire Digital Temperature Sensor - DS18B20
×1
Male/Male Jumper Wires
×1
Breadboard (generic)
Breadboard (generic)
×1
SparkFun Wall Adapter Power Supply - 12VDC 600mA
×1
Arduino UNO
Arduino UNO
×1
USB-A to B Cable
USB-A to B Cable
×1
Jumper wires (generic)
Jumper wires (generic)
×1
SparkFun 4.7K Ohm Resistor (in kit)
×1
SparkFun 7-Segment Serial Display - Red
SparkFun 7-Segment Serial Display - Red
×1

Software apps and online services

https://circuito.io/
https://www.circuito.io/app?selectedComponentsIds=11021&selectedComponentsIds=11441&selectedComponentsIds=245&selectedComponentsIds=9442

Hand tools and fabrication machines

sugru

Story

Read more

Schematics

Putting together the electronics

Before you begin, make sure you have everything you need. See the detailed BoM (bill of materials) at the top of the Step-by-Step guide.

Once you have all the components, start following the step-by-step guide. There are 11 steps in total. The main things you'll need to do are:

1) Solder male header pins to the 7 segment display.

2) Place all your components on the breadboard in the right direction (exactly as they appear in the diagram)

3) Start connecting them to one another - power, ground, and so on.

You can also download the Fritzing file from there, or you can find it attached here.

Code

basic code

C/C++
Scroll down in Step-by-Step and you'll find the code section, where you'll find boiler-plate code that will help you test your project. You can browse through the different code libraries and download them in order to upload them to the Arduino.

To upload the code to your Arduino, downloadArduino IDE version 1.6.7 or higher. You can use the Getting Started Guide to set up your work environment.

Remember: this is a boilerplate code to make sure your circuit was assembled correctly.

The test code is set to write "HI" upon initiation and afterwards, it starts counting.

If the temperature exceeds 28 degrees Celsius - the counter will stop.
No preview (download only).

show the temperature

C/C++
If you want the screen to show the temperature all the time, copy the code below to the Firmware.ino library.
 #include "Global.h"

/* This code sets up the essentials for your circuit to work. It runs first every time your circuit is powered with electricity. */
void setup() {
    // Setup Serial which is useful for debugging
    // Use the Serial Monitor to view printed messages
    Serial.begin(9600);
    Serial.println("start");
    
    
}

/* This code is the main logic of your circuit. It defines the interaction between the components you selected. After setup, it runs over and over again, in an eternal loop. */
void loop() {
    
    
       // The display will show the temperature in C, and wipe it after 1000 milliseconds (1 sec) 
        sevenSegment.write(ds18b20.readTempC()); //
<br>

Credits

circuito.io team

circuito.io team

29 projects • 600 followers
Circuito.io is an online platform that generates wiring and code for Arduino projects. Want to know more? Visit http://circuito.io

Comments