Temperature Monitor With DHT11 and I2C 20x4 LCD

by RonFrtek in Circuits > Arduino

2569 Views, 1 Favorites, 0 Comments

Temperature Monitor With DHT11 and I2C 20x4 LCD

Temperature Monitor With DHT11 and I2C 20x4 LCD ARDUINO

In this tutorial we will learn how to make a simple temperature monitor using a DHT11 sensor and I2C LCD

Watch the video!

What You Will Need

5PCS-LCD2004-I2C-2004-20x4-2004A-blue-screen-HD44780-for-Character-LCD-w-IIC-I2C-Serial.jpg
41015728-1.jpg
FZEK4WBK3XGYAP0.LARGE.jpg
VisuinoAdvrtisementRaspberryPiRobot1.jpg
FMT2X9VKEY93G5P.jpg

  • 20x4 I2C Character LCD display
  • Jumper wires
  • Arduino Uno or any other Arduino board
  • DHT11 temperature and humidity sensor
  • Visuino software: Download here

The Circuit

2020-11-11_20-48-25.jpg

  • Connect LCD Display pin[VCC] to Arduino pin[5V]
  • Connect LCD Display pin[GND] to Arduino pin[GND]
  • Connect LCD Display pin[SDA] to Arduino pin[SDA]
  • Connect LCD Display pin[SCL] to Arduino pin[SCL]

Note: Use the potentiometer behind the LCD to adjust the brightness

  • Connect DHT11 sensor pin[GND] to Arduino pin[GND]
  • Connect DHT11 sensor pin[VCC] to Arduino pin[5V]
  • Connect DHT11 sensor pin[OUT] or "S" to Arduino digital pin[2]

Start Visuino, and Select the Arduino UNO Board Type

FRWQB80K1RVKKV9.LARGE.jpg
F311FBVK5AHN5HJ.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,Set & Connect Components

2020-11-11_20-52-48.jpg
2020-11-11_20-15-54.jpg
2020-11-11_20-49-12.jpg
2020-11-11_20-51-08.jpg
2020-11-11_20-51-25.jpg
2020-11-11_20-51-44.jpg
2020-11-11_20-52-17.jpg
2020-11-11_20-53-32.jpg
  • Add "DHT11" component
  • Add "Liquid Crystal Display (LCD) - I2C" componentSelect "LiquidCrystalDisplay1" and in the properties window set Rows to 4 and columns to 20

Double click on the "LiquidCrystalDisplay1" and in the Elements window:

  • drag "Text Field" to the left side, then in the properties window set text to "TEMP:" and width to 20
  • drag another "Text Field" to the left side, then in the properties window set column to 1 and width to 20
  • drag another "Text Field" to the left side, then in the properties window set text to "HUMIDITY:" and width to 20 and column to 2
  • drag another "Text Field" to the left side, then in the properties window set column to 3 and width to 20

Close the Elements window

  • Connect "LiquidCrystalDisplay1" pin I2C Out to Arduino I2C In
  • Connect "HumidityThermometer1" pin Sensor to Arduino Digital pin 2
  • Connect "HumidityThermometer1" pin Temperature to LiquidCrystalDisplay1>Text Field2 pin In
  • Connect "HumidityThermometer1" pin Humidity to LiquidCrystalDisplay1>Text Field4 pin In

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 UNO module, the LCD Display will start to show the Temperature and Humidity values. In case you dont see any text make sure you adjust the brightness using a potentiometer.

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