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!
14 Comments
Question 1 year ago on Step 1
Bonjour je viens de crée le montage et balancé le logiciel et je rencontre un probleme avec le DHT11 il ne m'affiche rien ! sachant que quand le branche un LCD 16x2 il fonctionne nikel la bibliothèque est elle modifié ??? biensur j'ai fait attention a mon brochage ! MERCI pour vos réponses
2 years ago on Introduction
Thanks
3 years 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...
5 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);
Reply 4 years 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
4 years 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
Question 4 years ago
hola estoy compilando para arduino mega y sale el mensaje error compilando para la tarjeta arduino mega cual seria el error...gracias
4 years ago
al cargar el archivo sale error compilando para la tarjeta arduino mega
5 years ago
i have a Arduino
(UNO) and a (LEONARDO) which one do i use and im using this LCD as wellhttps://www.jaycar.com.au/240x320-lcd-touch-screen...
5 years ago
I made it, it works nice!
Unfortunately external power can't support live running? Any suggestions?
Thank you.
5 years ago
Hi, can't import library from zip?
Please give a hint.
6 years ago
what is necessary to change in sketch?
6 years ago
Good day, pls help me please, I have TFT LCD 3" same shield only different controller inside ili9327. How to change sketch ?
6 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