通通

[Tuya Smart] Temperature and humidity display clock

 
Overview

Product introduction

Based on the Tuya module, use MCU and WIFI to develop, connect to Tuya Cloud, and make a temperature and humidity meter


Code reference]

**1. Code download link ** https://github.com/liaoshangchao/sht30.git If you want to do some special functions yourself, it is better to use the cloud platform sdk. image.png

product creation

You can refer to the live video as follows:      https://www.bilibili.com/video/BV1Yv4y1f7fE     https://www.bilibili.com/video/BV1p54y1p7yc     https://www.bilibili.com/video/BV1Lv411s7tJ Or you can refer to My previous project introduction has detailed steps for creating cloud platform products, which are basically consistent with most cloud platform operations.      https://oshwhub.com/ChaoL9/tu-ya-zhi-neng-bylchao

working status

1. When powered on, the blue LED lights up by default, indicating that the MCU is powered, and the OLED displays the WIFI working status.

(1) When the status bar on the screen displays the text SmartConfig, it means that the WIFI is in the smartconfig configuration state.

(2) When the status bar on the screen displays the text AP MODE, it means that the WIFI is in the AP MODE network configuration state.

(3) When the status bar on the screen displays the text Config Success, it means that there is information about the network configuration inside the WIFI before. If the WIFI connection is changed, the network needs to be configured again.

(4) When the status bar on the screen displays the text Connect Router, it means that the WIFI is connected to the router. It may not be connected to the Tuya cloud platform yet due to delay issues.

(5) When the status bar on the screen displays the text Connect Cloud, it means that the WIFI is connected to the Tuya cloud platform, and the reported information can be viewed through the Tuya smartphone APP.

(6) When the status bar on the screen displays the text Wait Connect WIFI, it means that the WIFI is still initializing or in other unknown states.

(7) When the status bar on the screen displays the text Low Power, it means that the WIFI is in low power consumption mode (low power consumption has not been implemented yet)

(8) When the status bar on the screen displays the text Smart and AP, it means that the WIFI is in smartconfig&AP distribution mode.

2. Tuya APP and OLED display read the temperature and humidity values ​​before display**** 3. The buttons on the board are used to clear the distribution network information (not done in the first version, manual flying wires are added, and have been added in the modified version)

development process

I originally wanted to use a TFT resistive screen driven by the 8080 parallel port to make a temperature and humidity clock. The inspiration came from the Lichuang EDA small TV. However, because the selected MCU flash was not enough, it was temporarily changed to an OLED display. The entire development process was still not very smooth. It’s very difficult. Maybe the function I’m doing is relatively simple.

During use, since this version was added later, it is not an external interrupt detection key, which may cause the key to not respond. It is recommended to press and hold for a few seconds to ensure that the key will be triggered.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-21 20:53:36

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号