Intelligent temperature and humidity sensor project
Features
- An intelligent temperature and humidity sensor based on the Tuya Cloud module, with infrared reception and remote control functions, and can be linked to air conditioners and humidifiers.
- With Tuya's automation function, when the temperature is within the set range, the air conditioner can be turned on via the onboard infrared remote control. When the humidity is within the set range, the humidifier controlled by the WIFI socket can be turned on.
- Onboard 3.5-inch TFT LCD screen, which can display current temperature, humidity, and ambient light intensity in real time
- Onboard reflective photoelectric sensor that can be activated using gestures to activate the screen
- Added human body sensing module
Hardware solution
- The cloud module uses Tuya WR3E, a WIFI module with infrared transmitting and receiving functions.
- The temperature and humidity sensor uses DHT11, degree humidity ±5%RH, temperature ±2℃, range humidity 5-95%RH, temperature -20~+60℃, no correction is required.
- The ambient light sensor uses OPT3001, an ambient light sensor with digital output integrated circuit and I2C communication protocol.
- Reflective photoelectric sensor TCRT1000 realizes gesture switch function.
- Infrared receiving tube H638T, infrared remote control signal reception.
- The main control adopts esp32s and uses the serial port to communicate with Tuya WR3E
- TFT LCD is driven by SPI.
Software solution
- Cloud service, based on Tuya Smart
- Temperature and humidity sensors are linked to air conditioners and humidifiers, based on Tuya’s intelligent automation functions
- TFT LCD uses transplanted LVGL graphics library driver.
project progress
- Data DP upload function is OK (can upload temperature, humidity, ambient light intensity)
- The debugging of the infrared transmitting and receiving functions failed (the selected module is Tuya module WR3E with infrared function, but the debugging failed, and the infrared transmitting pin of the Tuya module did not respond)
- LCD display function is not implemented
- The humidifier linkage function is OK (through the automation function of Tuya Smart, the current humidity information is judged, and when it is lower than the set value, the smart socket connected to the humidifier is automatically turned on)
- The air conditioner is not connected to China Unicom (the Tuya module infrared does not respond)
Physical picture
Demo video