Project tutorial

Arduino LCD Thermostat © GPL3+

A simple, yet effective, temperature telling device that updates every 5 minutes giving you the temperature of your room!

  • 6,814 views
  • 19 comments
  • 16 respects

Components and supplies

Necessary tools and machines

3drag
3D Printer (generic)
Optional

Apps and online services

About this project

To make this simple project first attach the DHT sensor to the Arduino by connecting the pins as follows:

DHT VCC -> 5v 
DHT Data -> Arduino 8 
DHT GND -> Arduino GND 
10k resistor -> across DHT VCC and DHT Data.

Then attach the LCD according to the schematic. Copy and paste the code into the Arduino IDE and upload it. If you are confused with any of this watch the video below or leave a comment. Once done it should look like this:

Thanks!

The video:

Schematics

Schematic
Attach as follows.
Schematic bb

Code

Arduino CodeC/C++
Just copy and paste.
#include "DHT.h"
#include "LiquidCrystal.h"

#define DHTPIN 9
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // put your setup code here, to run once:
dht.begin();
lcd.begin(16,2);
lcd.print("The current temp");
lcd.setCursor(0,1);
lcd.print("is: ");
float f = dht.readTemperature(true);
lcd.setCursor(5,1);
lcd.print(f);
lcd.print(" F");
}

void loop() {
delay(1000*60*5);
// put your main code here, to run repeatedly:
float f = dht.readTemperature(true);
lcd.setCursor(5,1);
lcd.print(f);
lcd.print(" F");
}

Comments

Similar projects you might like

Handheld Infinity Kaleidoscope Group Kit

Project tutorial by Lucas Ainsworth

  • 1,528 views
  • 2 comments
  • 23 respects

Arduino 101 BLE RGB Lamp

Project tutorial by Gustavo Reynaga

  • 352 views
  • 2 comments
  • 6 respects

Arduino Keyless Door Lock System with Keypad and LCD

Project tutorial by DIY Hacking

  • 486 views
  • 3 comments
  • 11 respects

Control LED/Relay Using Arduino 101

Project tutorial by Shivansh Singh

  • 240 views
  • 1 comment
  • 4 respects

I keep my cucumber breeding moist

Project tutorial by Ingo Lohs

  • 583 views
  • 0 comments
  • 9 respects

Easiest Line Follower Robot

Project showcase by Zubayer Al Billal Khan

  • 371 views
  • 3 comments
  • 5 respects
Add projectSign up / Login