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

参考设计图片
×
 
Related Devices
Devices Class introduce Datasheet
GR476M016D11RR0VH4FP0 Passive components;Linear aluminum electrolytic capacitor Capacitance: 47uF Accuracy: ±20% Rated voltage: 16V Working life: 2000Hrs @ 105℃ Appearance size (¢DxL, mm): 5x11 Download
SC-32S32.768kHz20PPM9pF Analog mixed-signal IC;SMD crystal resonator (passive) Equivalent series resistance (ESR): 70kΩ Main frequency: 32.768KHz Frequency tolerance: ±20ppm Load capacitance value: 9pF SEIKO SC-32S (SMD3215-2P) 32.768kHz 9pF 20ppm Taping Download
DMS3R3224R Passive components;The super capacitor Capacitance: 220mF Accuracy: -20%~+80% Rated voltage: 3.3V Operating temperature: -10℃ ~ +60℃ SMD Farad capacitor supercapacitor 0.22F/3.3V can be used as a clock circuit and other backup batteries with long life and repeated charging Discharge, please refer to Download
TC-1102-C-Q-B Download
C2012C0G1H330JT000N Passive components;The patch capacitance Accuracy: ±5% Capacitance: 33pF Rated voltage: 50V Temperature drift coefficient (dielectric material): C0G Material: C0G Download
STC12LE5608AD The embedded processor and controller Working voltage: 2.2V ~ 3.6V CPU digits: 8-Bit CPU core: 8051 Main frequency (MAX): 35MHz ROM type: FLASH Download
CKCS5040-47uH/M Passive components;Power inductor Accuracy: ±20% Rated current: 1A DC resistance (internal resistance): 272mΩ Inductance value: 47uH Download
B5819W Discrete semiconductor;diode DC reverse withstand voltage (Vr): 40V Average rectified current (Io): 1A Forward voltage drop (Vf): 600mV @ 1A 40V, 1A, VF=0.6V@1A Download
MTF185-209SY1 The connector;Mother row needle row Number of pins: 18 Connector type: Number of busbars: 2 Contact type: Female socket spacing: 0.100" (2.54mm) Download
ME2108A33PG Power/power management;DC - DC chip Output current: 400mA Switching operating frequency: 180kHz Output type: Fixed Number of output voltage channels: 1 Function type: Step-Up Output configuration: Positive - Download
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2024-11-22 12:23:45

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号