Project 1: LED Temperature Display

Arduino temperature LED display project

Difficulty: EASY     Estimated Time: 1-3 Hours

 

Summary:

In this project, you will make an Uno board read the temperature from a DHT11 temperature and humidity sensor, and then the Uno will display the temperature on the 2-digit 7-segment LED display.  This project is a great starter project to get comfortable with electronics and the Arduino ecosystem or an excellent project to work through with your kids over the weekend.

 

Required Parts:

Steps:

Setup Arduino IDE

Before beginning this project, be sure that the Arduino IDE is properly installed on your computer. This tutorial will walk you through the installation process: https://ns-electric.com/knowledge-base/intro-to-arduino-how-to-begin/

 

Assemble the Circuit

The first step in this project is assembling the electronic circuit on the breadboard. Follow this diagram and schematic as you connect the LED display and DHT11 sensor to your Uno board.

Arduino temperature LED display project

 

Program the Microcontroller Board

Once you have the hardware wired properly, it is time to program the Uno microcontroller board. The Uno has to be programmed to read the temperature sensor and then display the temperature on the 7-segment LED display. For more explanation of the programming process, take a look at our Basics of Writing a Sketch article.

DHT11 Temperature & Humidity Sensor

The DHT11 is a digital sensor that measures the temperature and humidity of the air. These values are read from the sensor using a special, one-wire serial communication protocol. There are several libraries available that take care of the intricacies of the communication so that you can focus on your main goals.

7-Segment Displays

Each character of the 7-segment display is made up of seven individual LEDs that have to be lit up together to form numbers. Numbers are converted into the appropriate LED configuration with a table in the software. This can also be done with a software library.

Example Software

This is a sketch example that will read the DHT11 and display the temperature on the LED display. This sketch uses the DHT Sensor Library and the SevenSeg Library to control the display.

Upload the Code

Now that you have your program code ready, go ahead and upload it to the Uno board. Don’t be discouraged if you hit some bumps along the way. You’ll get there and learn with each problem you overcome. Take a look at our Uploading a Sketch article as a guide to help you upload your sketch.

Battery Power

At this point, the project is functioning, but it still has to be plugged into the computer to be powered. An energyShield 2 Basic can be added to your project to provide it with rechargeable battery power. Just move the wires from the Uno headers to the corresponding energyShield headers and then connect the energyShield to the Uno headers. Unplug the USB cable, switch on the energyShield, and you can take your new temperature sensing project anywhere!

Arduino temperature LED display project

 

Resources

These resources offer further explanation of the elements in this project.

 

By | 2018-07-27T17:24:54+00:00 July 27th, 2018|Arduino, DIY Projects, Easy|0 Comments

About the Author:

Aaron Liebold is a co-founder of NightShade Electronics. He is experienced in electrical and chemical engineering as well as software development. He earned his degrees at Florida Institute of Technology and went on to pursue his interest in electronics and software. Shortly after receiving his degrees, Aaron co-founded NightShade Electronics with his brother and father.

Leave A Comment