This work uses Tuya Smart MCU SDK for development. The MCU uses ST's STM32L051K8U6~~ Fortunately, the price of this MCU is still acceptable. As for the module, considering low power consumption, ZigBee module is used. The screen uses HINK's 2.13-inch ink screen (the same 2.13-inch black and white model from Wei Xue). Of course, this work requires a Tuya smart gateway to use it.
Function | model |
---|---|
Microcontroller | STM32L051K8U6 |
Temperature and humidity sensor | SHT30 |
ZigBee module | TYZS3 |
LDO | HT7333 |
Charging chip | TP4057 |
SPI Flash | MX25L1006EZUI |
Ink screen | E0213A04 |
Most of the time in this work is spent on power consumption, using 4 PMOS to control SPI FLASH, ink screen, module and battery voltage measurement circuit respectively. When the corresponding device is not needed, turn off the power supply to reduce unnecessary power consumption. The MCU wakes up through the RTC alarm clock, initializes the SPI and necessary GPIO and refreshes the screen update time. When the update is completed, the MCU sets the GPIO to analog input to reduce unnecessary power consumption. At present, the sleep current can be pressed at an average of about 35ua (when the module is powered on for a long time).
Of course, this current can still be pressed. If the module power supply is controlled, the sleep current can be pressed to 2.7-3ua. (LDO quiescent current + SHT30 + MCU sleep current)
The shell is drawn using fusion 360. The PCB model is temporarily exported using Altium Designer because Lichuang EDA cannot yet export the step file model. The effect of a little rendering
. With the PCB model, painting the casing can be done twice the result with half the effort. At least there is no need for calipers to measure the PCB. Picture of the finished shell.
Rendering effect
after physical assembly.
https://www.bilibili.com/video/BV1Pz4y117Rv
The PCB of this work is compatible with the Tuya smart WIFI module. You can weld the WIFI module and transplant the Tuya WIFI MCU SDK for use on the PCB, and the weather can be displayed on the ink screen. If you have any commercial or profit-making ideas, please leave! ! ! Open source is not free money. Please learn independently and grow together
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