Arduino Display Temperature & Humidity on MAX7219 8-digit LED Display Using DHT11

by RonFrtek in Circuits > Arduino

2235 Views, 3 Favorites, 0 Comments

Arduino Display Temperature & Humidity on MAX7219 8-digit LED Display Using DHT11

Arduino Display Temperature & Humidity on MAX7219 8-digit LED Display Using DHT11

In This Tutorial WE will learn how to display a temperature and humidity, using a MAX7219 8-digit Digital LED Display.

Watch the Video!

What You Will Need

VisuinoAdvrtisementNewDesign1.jpg
e894ce40bc813650774be7bad7b00511.jpg
DHT11-Digital-Relative-Humidity-Temperature-Sensor-Module-ROBU.IN_-2.jpg
FMT2X9VKEY93G5P.jpg
FMMM5N5KEY93G5M.jpg
arduino.jpg

  • Arduino UNO (or any other Arduino)
  • DHT11 temperature sensor module
  • Jumper wires
  • Breadboard
  • Max7219 Led Dot Matrix 8-digit Digital Display Control Module
  • Visuino program: Download Visuino

The Circuit

2021-06-16_22-52-28.jpg

  • Connect DHT11 Sensor module pin[VCC] to Arduino pin[5V]
  • Connect DHT11 Sensor module pin[GND] to Arduino pin[GND]
  • Connect DHT11 Sensor Signal pin[S] to Arduino Digital pin[3]
  • Connect RTC DS1307 module pin[SCL] to Arduino pin[SCL]
  • Connect LED module pin[VCC] to Arduino pin[5V]
  • Connect LED module pin[GND] to Arduino pin[GND]
  • Connect LED module pin[DIN] to Arduino digital pin[11]
  • Connect LED module pin[CS] to Arduino digital pin[10]
  • Connect LED module pin[CLK] to Arduino digital pin[13]

Start Visuino, and Select the Arduino UNO Board Type

F311FBVK5AHN5HJ.LARGE.jpg
FRWQB80K1RVKKV9.LARGE.jpg

The Visuino: https://www.visuino.eu also needs to be installed. Download Free version or register for a Free Trial.

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

In Visuino Add Components

2021-04-19_13-49-20.jpg
2021-04-19_13-47-25.jpg
2021-06-01_20-43-07.jpg

  • Add "DHT11" component
  • Add "Formatted Text" component
  • Add "Maxim LED Display Controller SPI MAX7219/MAX7221" component

In Visuino Set Components

2021-06-26_9-33-10.jpg
2021-06-26_9-33-54.jpg
2021-06-26_9-34-32.jpg
2021-06-26_9-36-06.jpg

  • Doble click on the "FormattedText1" and in the "Elements window" drag 2X "Analog Element" to the left side
    and for each in the Properties window set the "Precision" to 0
  • Close the "Elements window"

  • Select "FormattedText1" and in the properties window set "Text" (don't forget to add space) to %0c %1 H
  • Doble click on the "LedController1" and in the "PixelGroups window" drag "Text Display 7 Segments" to the left side
  • Close the "PixelGroups window"

In Visuino Connect Components

2021-06-26_10-00-43.jpg
led-dht11.png

  • Connect "HumidityThermometer1" pin [Sensor] to Arduino Digital pin [3]
  • Connect "HumidityThermometer1" pin [Temperature] to "FormattedText1 > AnalogElement1" Pin [In]
  • Connect "HumidityThermometer1" pin [Humidity] to "FormattedText1 > AnalogElement2" Pin [In]
  • Connect "FormattedText1" pin [Out] "LedController1 > Text Display 7 Segments1" Pin [In]
  • Connect "LedController1" pin Out SPI to Arduino Pin SPI In
  • Connect "LedController1" pin Chip Select to Arduino Digital Pin [10]

Generate, Compile, and Upload the Arduino Code

2020-10-30_13-20-50.jpg

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Play

If you power the Arduino module, the LED Display will start to display a Temperature and Humidity.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this Instructable, you can download it and open it in Visuino: https://www.visuino.eu