Traditional Culture Encyclopedia - Weather forecast - tftlcd displays light and temperature

tftlcd displays light and temperature

Are you asking how to display light and temperature data on the tftlcd display? The method to achieve this situation is as follows:

1. According to the blog park information, the STM32 microcontroller collects temperature and humidity through the DHT11 temperature and humidity sensor.

2. Use the analog-to-digital converter ADC3 to collect the partial voltage of the photoresistor, and then convert it into light intensity (the conversion process treats the brightest as 100 and the darkest as 0 as the final result).

3. The serial port receives information from ESP8266 and extracts time, weather information, alarm temperature and minimum light information (used to control the buzzer and tftlcd display switch).

4. When the indoor temperature exceeds the alarm temperature, the buzzer starts; when the indoor light is dark (lower than the set minimum light), the tftlcd display lights up.