super_star

[Tuya Smart] Temperature and humidity sensor based on Tuya smart module

 
Overview

The smart module uses Tuya WB3S, which is also the main product of this event. I have used a module of this type before for RGB lighting control, because last time I used a development-free solution, which is relatively simple and has relatively good playability in the later period. Poor, so I chose the MCU solution this time.
    The microcontroller uses STC12LE5616AD. 51 cores, 16K of ROM, 768 bytes of RAM. It is cost-effective and comes with UART and ADC functions, which should be enough for simple applications. I originally wanted to use STM32F103RCT6, but for reasons that everyone knows, I won’t use it this time. The component coupon I was given is probably enough to buy an MCU. The price/performance ratio is too low. I don’t know if ST can turn things around in the future.
    The temperature and humidity sensor uses SHT30. I have never used this thing before. This is the first time. Because it is officially recommended, I will use it this time.
    The display part uses a dot matrix screen JLX12864 and a serial port screen. This time, no font library is used. The displayed content is also very simple, mainly humidity, temperature, and current time. With backlight, it is convenient to view the displayed data in dark conditions without light. There is a button to control the turning on of the backlight. In order to save power, the backlight will be turned off automatically after 5 seconds.
    With sound and light alarm and RTC function. It is a simple buzzer and LED. The RTC part uses a DS1302 and adds a supercapacitor to avoid the need to recalibrate the time after replacing the battery. When the battery is replaced, the supercapacitor can be used to power the clock to keep the clock running.
The power supply part uses an 18650 battery with a rated voltage of 4.7V. The chip is stabilized at 3.3V through a DCDC chip and supplied to the system.

Finally, I put two 3D graphics from Lichuang. This function feels great.

 

Supplement: 1: Code download address:

https://github.com/yalouliu/Tuya_Tem-hum.git

2: Since the selected temperature and humidity sensor package is small and my manual welding skills are limited, the temperature and humidity detection of the IIC interface cannot be debugged normally. Special attention needs to be paid when borrowing

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 06:55:12
  • f103-About the problem that RL_CAN in RL_ARM cannot be used [solved]
  • IP Camera
  • Huge design concept phone - Zero.
  • [Program debugging black book]
  • Laptop serial port debugging, please help
  • A comprehensive Python 3 "cheat sheet"

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号