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

26,628

53

13

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

About: 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 wide range of sensors you can use with it. I make…

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!

7 People Made This Project!

Recommendations

  • The 1000th Contest

    The 1000th Contest
  • Battery Powered Contest

    Battery Powered Contest
  • Hand Tools Only Challenge

    Hand Tools Only Challenge

13 Discussions

0
SaitN
SaitN

7 months ago

Hello everyone....I've try it this sketch, but i have a problem with DHT11 library..."is not such a kind of directory or file name..." or something like that... someone can give a little tip? thanks guys...

0
raspgraph
raspgraph

3 years ago

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);

0
estatica
estatica

Reply 1 year ago

Hi,

Could you, please, share the code to use with MCUFriend?
And what libraries are you using?

Ive tried to follow your instructions, but is not working for me

Thanks a lot

0
lukaz8
lukaz8

1 year ago

I cant solve this in arduino
FE4XYRTIT58ZZL6:8:17: error: DHT.h: No such file or directory
compilation terminated.
exit status 1
DHT.h: No such file or directory

I cant find it, can someone help

0
RaiderE
RaiderE

Question 1 year ago

hola estoy compilando para arduino mega y sale el mensaje error compilando para la tarjeta arduino mega cual seria el error...gracias

0
RaiderE
RaiderE

1 year ago

al cargar el archivo sale error compilando para la tarjeta arduino mega

0
big_nichev
big_nichev

2 years ago

I made it, it works nice!

Unfortunately external power can't support live running? Any suggestions?

Thank you.

20171122_114104[1].jpg
0
big_nichev
big_nichev

2 years ago

Hi, can't import library from zip?

Please give a hint.

0
yogamen
yogamen

3 years ago

what is necessary to change in sketch?

0
yogamen
yogamen

3 years ago

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

0
cptjolap
cptjolap

3 years ago

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