念慈菴

[Tuya Smart] Temperature and Humidity Ink Screen Clock Desktop Ornament

 
Overview

Preface

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.

Component selection

Function model
Microcontroller STM32L051K8U6
Temperature and humidity sensor SHT30
ZigBee module TYZS3
LDO HT7333
Charging chip TP4057
SPI Flash MX25L1006EZUI
Ink screen E0213A04

basic skills

  1. Time display, refreshed every minute (24-hour automatic online time adjustment)
  2. Temperature and humidity display, refreshed in half an hour and reported to the cloud
  3. Equipment automation and network disconnection automation can be realized through Tuya Smart Platform
  4. OTA functions can be realized through Tuya Smart Platform

Finished product effect

WeChat picture_20210226183528.jpg

Low power consumption

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). WeChat picture_20210226183538.jpg   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)

shell

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 PCB V3 v11.png . 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. tuyaepd_1.jpg Rendering effect Upper cover with buckle v36.png after physical assembly. WeChat picture_20210226183840.jpg

Work demonstration

https://www.bilibili.com/video/BV1Pz4y117Rv

Later gameplay

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

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-21 01:38:06
  • The color of the LCD controller of LPC1788 is reversed
  • Familiar with electronic components
  • Error in creating IMAGE file using ALL-100
  • Serial port sending program
  • 51 Compilation and C Comprehensive Zhou Ligong
  • Regarding the problem of motor speed regulation, please recommend some good books!

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号