Tuya Sandwich Socket Board Instructions

Last Updated on2020-02-13 07:38:02228

Overview

The circuit breaker is a multi-function circuit breaker with metering and output power failure. Input AC220V, using BP2525D power chip, BL9037 metering chip, BL1117-3.3, Hongfa relay and other key components to achieve metering, output power failure and other functions .

In this example, the circuit breaker should be used with Tuya Arduino E3S SOC. The IO pin of the E3S SOC is configured to output control signals to the relay and switch signals to the metering chip, while collecting voltage, current, and power data.

Materials

Hardware (3)
  • Tuya Sandwich Socket Board

    Count:1

    Provide AC power on / off function and power statistics function.

  • Tuya Sandwich Wi-Fi SoC(E3S)Board

    Count:1

    Support downloading and using multiple categories Wi-Fi SoC development-free firmware from the AIoT console with the corresponding function board, or your own firmware based on the SDK.

  • 5V Micro USB adapter or 12V adapter

    Count:1

Steps

  • Step 1: Product Creation

    1. Log in to the website, Tuya Smart to complete the registration or registration, and then start creating products.
      image.png

    2. Enter the product creation page, click on the electrician option, select the power statistics socket_WIFI to enter the configuration interface.
      image.png

    3. Fill in the product name, product model and communication type and click WIFI to confirm. After the confirmation is complete, the display will go to the module configuration interface.
      image.png

    4. Enter the E3S_SOC configuration interface. The first step is the function definition. This interface helps developers understand the basic functions of the switch-free development, such as remote switching, power statistics, countdown, timing and other functions. After confirming the basic functions, click Next.
      image.png
      image.png

    5. APP selection interface. This interface shows developers the APP interface of various specifications sockets. Developers can also customize the APP interface according to their own preferences.
      image.png

    6. Click Edit template, developers can define the APP interface by themselves. I won’t talk too much here, developers can follow the prompts to do it themselves.
      image.png

    7. Enter the hardware debugging interface. Initially, the WR3-WIFI module is displayed. We need to replace the TYWE3S WIFI module and choose to replace the module.
      image.png

    8. Click the TYWE3S WIFI module to confirm your selection. Developers can view the information about the WIFI modules that Tuya has released in the module selection interface.
      image.png

    9. After selecting the module, enter the hardware debugging interface. Refer to the default IO port configuration schematic diagram of Tuya public version. There is also module firmware IO information configuration.
      image.png

    10. After the configuration is complete, click Save.
      image.png

    11. The PID information of the newly created circuit breaker has been generated at this time. Just click buy module. The module configuration is basically completed here. After filling in the information after placing an order, you can debug and use it.
      image.png

  • Step 2: Product use

    Wiring
    Corporate WeChat screenshot_1576322458763.png
    Calibration
    The load is connected to a 560Ω cement resistor, and the input is connected to L and N. Press and hold the button (about 3S, the indicator flashes quickly) to put the module into the network distribution mode, open the production test route (WiFi name is tuya-mdev-test1), and then re-up The electrical module enters the production and testing process, the relay operates, and the final indicator light is always on, so far the calibration is successful.

  • Step 3: Network distribution and connection

    1. Open Tuya Smart APP, and long press the button to let the module enter the EZ distribution network mode

    2. Click the plus sign in the red box below
        image.png

    3. Add device
    image.png
    image.png
    image.png

    4. Wait for the network configuration to complete
    image.png
    image.png

    5. Functional viewing experience
    image.png
    image.png
    image.png
    image.png

Summary

This product realizes the intelligent upgrade of traditional circuit breakers, which can better human-computer interaction, and can be controlled manually by remote only through APP. It also has power statistics to monitor the status of the load equipment.