Designing a prototype of smart temperature and humidity sensor product (SoC access)

Last Updated on2020-05-21 06:01:52235

Overview

Technology is constantly improving, and more and more smart homes are entering our daily life. The temperature and humidity sensors are commonly used at home and the workplace.

The temperature and humidity are collected by the temperature and humidity sensor, and the living condition is set in the APP with the temperature and humidity as the trigger to control the home appliances. For example, during the hot summer, when the temperature and humidity sensor detects that the indoor temperature is higher than 29 ℃, the air conditioner is automatically turned on. When the indoor temperature drops below 23 ℃, the air conditioner is turned off to save electrical energy. By keeping the temperature in a comfortable range, it greatly facilitates our lives.

Based on the Tuya Smart platform, you can complete the development of an smart temperature and humidity sensor. This tutorial describes how to use the Tuya sandwich development board to quickly complete a smart temperature and humidity sensor prototype.

Materials

Hardware (3)
  • TUYA sandwich temperature and humidity sensor function board

    Count:1

    more

  • Tuya Sandwich ZigBee SoC main control board (TYZS13)

    Count:1

    more

  • Tuya Sandwich battery power board

    Count:1

    more

Steps

  • Step 1: Creating product

    1. Log in to Tuya IoT Platform.

    2. Create a Temperature and Humidity Sensor Zigbee product, select the function and display panel of the product, and configure the firmware information according to the hardware circuit of the sandwich development board. The operation flow is shown in the following picture.

      image.png

    In this tutorial, the sandwich development board is used, you can directly use the default configuration.

    image.png

  • Step 2: Downloading firmware

    To make the device have the configuration function of the first step, you must download the relevant configuration information into the module and attach it to management platform of the Tuya sandwich development board. Set the development board and apply for the authorization software and account for downloading, select the product authorization code created in the first step, log on to the authorization software, enter the authorization code. The operation process is shown in the figure below. For more information, see Download firmware and authorization code process.

    image.png

    image.png

  • Step 3: Network configuration test for APP

    When the device whose communication protocol is Zigbee is connected to the network, it must be implemented through the Zigbee gateway.

    First, you should connect the Zigbee gateway to the cloud by using the APP according to the operating instructions of the Zigbee gateway. And then control the device to enter the network configuration state according to the first network configuration settings.

    In this example, press and hold the button on the Zigbee SoC main control board (TYZS13) of the Tuya sandwich development board. When the indicator flashes, the device enters the network configuration state. At this time, use the Tuya smart APP to click the previously added gateway, choose to add a child device, follow the APP prompts for the next operation, connect the device to the cloud, you can use the APP to control the device.

    image.png

  • Step 4: Smart speaker test (extended function)

    Tuya supports popular smart speaker control devices in the market.

    Visit the Tuya Value-added Service, apply for and activate the speaker service. Later, you can see the corresponding speaker icon on the information page of the product. Refer to Quick Guide of Using Amazon Echo to Control Smart Devices to associate the device to the smart speaker platform. Now you can use the smart speaker to control the device. For more information, see Third-party Access.

    image.png

Summary

By leveraging the Tuya platform and the Tuya sandwich development board, the prototype of the smart temperature and humidity sensor product can completed conveniently and quickly, which greatly accelerated the development of the product.