Introduction: ARDUINO - SPFD5408 TFT LCD 2.4 TEMP and HUMIDiTY Monitor. Fahrenheit & Celsius!

Hello world! Today i made a Temp & Humidity Monitor with a DHT11 Sensor & the 2.4 TFT LCD Shield on a arduino Mega. Its shows Fahrenheit & celsius, Also for both Heat Indexes are displayed.

Follow the next step for the Code, Schematic, Libraries & Parts list.

You need 3 Libraries. They are included in the downloads.

  • SPFD5408_Adafruit_GFX.h
  • SPFD5408_Adafruit_TFTLCD.h
  • SPFD5408_TouchScreen.h

Step 1: Schematic, Code, Libraries & Parts List.

Just wire the DHT11 Like the Schematic shows, and plug on the TFT LCD on top of the Arduino Mega.

Make sure you download and install the libraries, and Upload the code and you have yourself a nice cheap

to build Temp & Humidity monitor.

Parts list:

  • Arduino Mega
  • 2.4 TFT LCD SPFD5408 (Aliexpress got them very cheap)
  • DHT11 Temperature sensor. KY-015
  • Jumper wires

Good luck! Follow me for more!

Comments

author
raspgraph made it!(author)2017-07-01

MCUFRIEND SETUP

IMG_20170701_092709.jpg
author
raspgraph made it!(author)2017-07-01

For MCUFRIEND TFT LCD Replace the first 8 lines with

#include <Adafruit_GFX.h>// Core graphics library

#if defined(_GFXFONT_H_)

#include <Fonts/FreeSans9pt7b.h>

#define ADJ_BASELINE 11 //new fonts setCursor to bottom of letter

#else

#define ADJ_BASELINE 0 //legacy setCursor to top of letter

#endif

#include <MCUFRIEND_kbv.h>

MCUFRIEND_kbv tft;

And replace

tft.begin(0x7783); //MCUFRIEND Chipset ID on Librarytft.begin(0x7783);

author
yogamen made it!(author)2017-03-23

what is necessary to change in sketch?

author
yogamen made it!(author)2017-03-23

Good day, pls help me please, I have TFT LCD 3" same shield only different controller inside ili9327. How to change sketch ?

author
cptjolap made it!(author)2017-02-04

i got it to load on mega2560 but screen stays black i change my pins for my mcufriend shield to yp A3 xm A2 Ym 9 XP 8 even went in the touch screen ccp file to change the return tspoint too x 1100 and y 1043 but dont work help plzzzz

author
sgarbo made it!(author)2017-01-16

What a fun project. I almost gave up on this display ( due to fustration) but this project motivated me to bring it to life. I did have to for some reason modify the code to fit my display. Thank you for some awesome instuctable!

IMG_1721.JPG
author
valentinjoubert made it!(author)2017-01-09

Yes it´s works

IMG_7428.JPG
author
JayA73 made it!(author)2016-09-23

can i use arduino uno?

author
vandenbrande made it!(author)2016-09-23

Yes but then you need to solder a pin to the bottom of pin A0 to A5 depends wich one u want to use. Change it at "#define DHTPIN A8" Change A8 to A0 or whatever analog pin u are going to use for the DHT11. If you have no Holes to solder a pin because you have a Chinese copy for example. Just remove Pin A0 for example from the tft lcd. Bend that pin that you just cut off so it sticks out and solder a wire to is. You also need to solder A wire to GND and VCC for the DHT if you want to use a uno. Good luck!

author
vandenbrande made it!(author)2016-09-23

Be careful! Don't cut out the pins for 5v and GND on the tft LCD, Only cut the Analog ones, or pins that are not used by the TFT LCD, (NOTE, This is just a simple solution i dont recommend it, Thats why i use a mega, You can also add some more things like a RTC Module for time and Date, which is what i wanna do.

author
JayA73 made it!(author)2016-09-23

yeeaaaah it works without solder, THANK YOU Vandenbrande !!

WhatsApp Image 2016-09-24 at 00.41.30.jpeg
author
vandenbrande made it!(author)2016-09-23

No thanks by the way! Its a fun little cheap thing to build.

author
vandenbrande made it!(author)2016-09-23

It seems that the value of the Heat index is not displayed right. But it works, just reset it and see if it displays it right or not.

author
JayA73 made it!(author)2016-09-23

What if I dont use solder, I use a breadboard and jumper wires? of course i will use alot of jumper wires. thanks

About This Instructable

5,536views

42favorites

License:

Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:Arduino & C# - LM35 Temperature Sensor C# Application Arduino (OPEN SOURCE) Arduino & C# - HC SR04 Distance Meter C# App for Arduino Arduino & C# - Robotic Arm Control With Pc and Arduino
Add instructable to: