smallembedded

[Tuya Smart] Internet of Things Temperature and Humidity

 
Overview

Smart temperature and humidity meter based on Tuya Smart

Without further ado, let’s upload pictures first, hahaha~~~ 1.jpg- Project Introduction

Based on the Tuya Smart IoT thermometer and hygrometer, the MM32F003 collects the current temperature and humidity data of the SHT30 and uploads it to the cloud through the Tuya module. The Tuya Smart APP displays the current temperature and humidity and has an onboard LCD screen to visualize the data. This project adopts a low-code MCU solution. The Tuya module is combined with the MM32F003 microcontroller. I originally thought of using STM32, but the price was really hard to explain. I regarded the few pieces left in my hand as treasures. Later I discovered that MM32 is really delicious.

- Features

  1. Developed based on the Tuya Smart IoT module, remote monitoring and data viewing can be achieved through the Tuya Smart App.
  2. Monitor the temperature and humidity of the current environment through the onboard SHT30 high-precision digital temperature and humidity sensor.
  3. The LCD screen displays the current temperature and humidity data in real time, enabling data visualization.
  4. The SWD programming port is introduced to facilitate program programming and adjustment, and the project will continue to be improved in the future.
  5. Two independent buttons and LED realize customized functions.

- program

Follow the official tutorial to transplant the MCU SDK downloaded from the Tuya Smart Platform into the project, follow the steps in protocol.c to configure the project, and use the Tuya serial port debugging assistant for testing and verification.

Transplantation instructions:

  1. MCU must directly call the wifi_uart_service() function in mcu_api.c in while
  2. After the normal initialization of the program is completed, it is recommended not to turn off the serial port interrupt. If the interrupt must be turned off, the turn off interrupt time must be short. Turning off the interrupt will cause the serial port data packet to be lost.
  3. Do not call reporting functions within interrupts/timer interrupts

- Network configuration steps:

  1. The temperature and humidity meter board is connected to the 5V power supply using Micro.
  2. Open the Tuya Smart APP on your mobile phone.
  3. The device and mobile phone are connected to the same WIFI (2.4G frequency band).
  4. Click on the upper right corner of the Tuya APP to add a device, find the temperature and humidity sensor, and click to add a device.
  5. The LCD screen displays the current WiFi connection information, waiting for the network configuration to be successful.

2.jpg

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 18:38:43

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号