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
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet