Last Updated on : 2024-11-20 02:12:22download
This topic describes how to create electrical products with a no-code solution on the Tuya Developer Platform, using Wi-Fi + Bluetooth energy monitoring socket as an example.
Log in to Developer Platform.
Click Create.
Find Standard Category, and click Electrical > Socket.
In the Choose a product plan section, click Zero-Coding Development > Wi-Fi+Bluetooth> Energy Monitor > Power Statistics Socket_Wi-Fi_Bluetooth Low Energy (LE).
Note: If the functions provided by the no-code solution fails to meet your requirements, you can turn to custom solutions with the reference of SoC Custom Firmware.
Complete product information.
Note:
- The model will not be displayed on the app. It is recommended to enter the internal model name or customer’s product model to ease product and order management on the Developer Platform.
- The product information above can be modified in subsequent steps. See Modify product information
Click Create. When a product is created, you will see Create Standard Functions of the step of Function Definition.
Note:
- The required functions cannot be removed from the selected functions.
- Select data points for different products according to actual interface prompts.
2.(Optional)Modify product information.
The product information can be modified in any stage.
3. (Optional) On Function Definition page, enable Cloud Functions as needed.
4. Click Next: Device Panel at the bottom of the page. You will see Device Panel page.
This section describes how to configure a device panel, using a public panel as an example. If you require custom panels or panel editing, you can proceed with relevant operations as per the prompts.
On the Device Panel page, find an ideal panel and click Apply.
Note: More panels are available after upgrading to an enterprise account.
You can change or edit the panel as needed. Scan QR code with Tuya Smart app to preview.
Click Next: Hardware Commission. You will see Hardware Commission page.
This section uses the WB3S Wi-Fi module to describe hardware commission. It is recommended that professional engineers perform hardware commissioning.
I/O port configuration
Your configured I/O ports and drive level determine how the firmware works. For example, configure the I/O 3 port as button and Low-level active. When the firmware detects that the I/O 3 button input signal changes from high to low, the button function will be triggered. If the I/O 3 port is incorrectly connected to the LED light or relay, the firmware cannot detect the button input signal.
Function configuration
You can implement different firmware functionality through custom configuration. For example, if you set Long press network pairing time as 3 seconds, pressing the button for more than 3 seconds will trigger pairing mode switching.
Select a module as needed after checking the module details.
Configure firmware parameters in the Generate firmware 1 To be generated area. The specific parameter configuration is as follows.
Parameter type | Parameters | Description |
---|---|---|
ele_stroge | ele_chip_type | Select a chip as needed. Currently, only pulse-count chips are compatible, including bl0937 and hlw8012. |
sample_resistor (mΩ) | Value range: 1mΩ and 2mΩ. | |
CF_PIN | This I/O port is used to collect the pulse output from the CF pin of the sampling chip, and calculate the power value. |
|
CF1_PIN | This I/O port corresponds to the CF1 pin of the power statistics chip and is used to detect the voltage and current value. | |
sel_pin | This I/O port is connected to the SEl pin of the sampling chip and is used to determine whether the pulse of the sampling CF1 pin is voltage or current. The voltage pulse is detected at high level, and the current pulse is detected at low level. | |
work_voltage | It indicates the socket operating voltage, also known as calibration voltage. You can choose 120V or 220V. | |
over_current | The overcurrent threshold. The occurrence of overcurrent triggers the relay to power off Value range: 0 to 30000 mA. Note: |
|
over_vol | Overvoltage threshold. The occurrence of overvoltage triggers the relay to power off.
|
|
lose_vol | Under voltage threshold. The occurrence of overvoltage triggers the relay to disconnect.
|
|
distribution_network_setting | reset_time | The time of pressing and holding the button to restore the device. Value range: 3 to 10 seconds. |
first_distribution_network_trigger_mode | Pairing triggering mode when the socket is powered on for the first time.
|
|
netled1 | Select a pin from the pull-down menu and the selected one cannot be used for other parameter configuration. | |
unlink_network_led_status | Set the Wi-Fi indicator status when the socket is not connected to the network.Note: |
|
link_network_led_status | Set the Wi-Fi indicator status as needed when the socket is connected to the network.Note: |
|
channel_num1 | button_type | Select level_trig or edge_trig. |
button1 | Select a pin from the pull-down menu and the selected one cannot be used for other parameter configuration. | |
relay1_type | Select Electric holding relay or Magnetic holding relay. | |
rl1 | Select a pin from the pull-down menu and the selected one cannot be used for other parameter configuration. | |
relay led1 | Select a pin from the pull-down menu and the selected one cannot be used for other parameter configuration.Note: It is recommended to select None for the single light solution, and select as needed for the double light solution. |
|
channel1_status | Select it as needed.
|
When the configuring is finished, click Online Firmware Generation.
Development debugging. Follow the interface prompts, view the circuit schematic, download the Tuya Cloud Test app, and perform debugging.
After debugging is completed, Click Next: Product Configuration. You will see Product Configuration page.
Configure items according to operating instructions. When the configuring is finished, click Next: Test Services.
Follow the prompts on the page to perform a self-service test with the Tuya Cloud Test app and produce a test report. You can also subscribe to the Tuya Test service. When the test is completed, click Next: Product Release.
Note:
- Tuya Cloud Test app is only available for Android.
- For more information about the Tuya Cloud Test process, see Tuya Cloud Test App.
- Do not delete developing or developed products to avoid data loss and affecting proper product usage.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback