Expert Thermocouple & RTD &Temperature Sensor Manufacturer.

+86 13816377866    |    jimmy011@126.com

esp8266 digital thermometer with lcd display

by:JVTIA     2020-10-27
Today I will show you how to use the tft LCD display on the ESP8266 NodeMCU to display temperature and humidity data for a given real environment
Time environment.
I gave an example of using the DHT22 display, which is the temperature and humidity meter.
In this video, I used a compact display specifically for our digital thermometer, which is graphic and allows monitoring of the system itself.
Therefore, today\'s goal is to understand the processing of LCD monitors using esp8266.
The monitor we are using in this project is 128x128 pixels.
0,0 in the upper left corner, this model has text at the same time-
Printing and graphics
The printing function that we will deal with later.
We will be using am222 DHT22 in our components, which is the sensor I like very much because it is very precise.
In the project, we have programmed and used the ESP8266 of the USB power supply.
DHT22 is connected to data and pull-
The upper resistance of ESP8266 controls the LCD display.
Here we have an electrical diagram of our components that shows the NodeMCU, sensors, and displays.
Keep in mind that this is a serial display, i2c, which is easier to use because it has more pins.
Since we will be programming the display using Arduino C language, we need the DHT22 library as well as the LCD.
First, add the following \"DHT sensor Library\" library for communication with humidity and temperature sensors.
Just access the sketch> Include Library> Manage Library \". . .
\"Now, add the following Library,\" Adafruit-GFX-Library-master.
Simple access sketch> Include Library> Manage Library. . .
Also, add the \"tft _ ili9163c\" library for communicating with the LCD graphics module.
Access Link ((((((
Download the library.
Decompress and paste the file into the libraries folder of the Arduino IDE.
C:/program file (x86)
/Arduino/librariesFirst let\'s add libraries that will be used in our code.
Define an instance of the variables and objects we will see in the program below.
Settings ()
Function, we initialize the variable \"dht\", which is responsible for communication with the humidity sensor and temperature.
We will also initialize the \"display\" variable used to communicate with the LCD module.
We will also configure the object to start drawing on the screen.
The cycle in the loop ()
Function, we will retrieve the humidity and temperature read by the sensor and written on the screen at a specific location.
5 seconds per interval, read the value from the sensor and write it to the screen.
Custom message
Chat Online 编辑模式下无法使用
Chat Online inputting...