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


20,303

47

11

Hello world! I make simple & Advanced projects for people who want to learn programming and e...

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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!

6 People Made This Project!

Recommendations

  • Indoor Lighting Contest

    Indoor Lighting Contest
  • Make It Fly Challenge

    Make It Fly Challenge
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest

11 Discussions

0
None
raspgraph

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

1 reply
0
None
estaticaraspgraph

Reply 6 months 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
None
lukaz8

6 months 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
None
RaiderE

Question 7 months ago

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

0
None
RaiderE

7 months ago

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

0
None
big_nichev

1 year ago

I made it, it works nice!

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

Thank you.

20171122_114104[1].jpg
0
None
big_nichev

1 year ago

Hi, can't import library from zip?

Please give a hint.

0
None
yogamen

2 years ago

what is necessary to change in sketch?

0
None
yogamen

2 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
None
cptjolap

2 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