3228

[Tuya Smart] IoT thermometer and hygrometer +484343S

 
Overview

1.Program Overview

  1. Short press the left button once to switch RGB colors, red-green-blue-yellow-purple-cyan-white-breathing gradient
  2. Press and hold the right button to control the Tuya WIFI module network configuration and report temperature and humidity data in real time
  3. When the temperature reaches the threshold, the buzzer alarms and the fan motor turns on.
  4. Set the humidity threshold, turn on the ultrasonic atomizer when it is not reached, and turn it off when it is reached.

2. Overview of components

  1. The main control of this program is the domestic enhanced 8051 microcontroller CA51S003.
  2. Select SHT30 for temperature and humidity sensor (completed)
  3. Display module selection OLED12864 (completed)
  4. .Choose four 3528 package RGB lights for the ambient light, and configure them with a 3-way PWM microcontroller (completed)
  5. Buzzer selection passive buzzer driving frequency 2.7Khz (completed)
  6. The motor is an ordinary DC 5V motor (not completed)
  7. For ultrasonic atomizer, choose the atomizing piece and the driving frequency is 108Khz (not completed)

3. Problems encountered during the development process. The PCB 1.0 version was drawn the night before I took the time to finish it. Therefore, I did not check it carefully, which resulted in the serial port and WIFI module communication pins being connected in reverse, and the button direction being wrong. PCB1.0.jpg PCB1.0

PCB 1.1.jpg PCB1.1 SHT30 reads data. For this purpose, I tested a program using the DHT11 temperature and humidity sensor. The two humidity data are quite different. The judgment may be related to the breadboard and PCB.

OLED.jpg SHT30 OLED test DHT11 test.jpgDHT11 data.jpg When the program turns on the OLED display, the button lighting program fails. It is judged that the cause may be the timer.

Tuya Smart APP display


APP.jpg environmental value

Finger placement.jpg

finger placement

3. Conclusion I am very grateful for this training camp opportunity of Lichuang EDA and Tuya Smart. As a new graduate, there are still many things I am not familiar with. I hope I can continue to study hard.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-21 04:49:20

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号