AED 29.95
Description
The Dual WiFi Relay Module is an advanced control solution built on the ESP-01 WiFi module and powered by the STM8S103 high-performance microprocessor. It enables seamless wireless control of a dual-channel relay via a mobile application, requiring only minimal setup within a local area network (LAN). This makes it ideal for home automation, industrial control, and other IoT applications.
Features:
-
Integrated Components
- Equipped with an ESP-01 WiFi module for reliable wireless communication.
- Powered by the STM8S103 microcontroller, ensuring stable and efficient operation.
-
Dual Operating Modes
- Mode 1: Direct connection between the mobile phone and the WiFi module for simple, standalone operation.
- Mode 2: Connection via a router for extended range and functionality.
- Additional Function: The module can serve as a USB relay if the ESP-01 module is removed.
-
Impressive Transmission Distance
- Direct Mode: Achieves a maximum transmission range of 100 meters in open environments.
- Router Mode: Range is dependent on the router's signal strength, enabling flexible deployment.
-
Smart Configuration
- Utilizes SmartConfig technology for easy account and password setup through the mobile app.
- Supports saving user credentials for quick reconnections.
-
Durable Relay Design
- Built-in 5V 10A 250V AC relay (or 10A 30V DC) rated for over 100,000 switching cycles.
- Features diode discharge protection for enhanced durability and a fast response time.
-
User-Friendly Board Design
- Mode selection jumpers and real-time status indicators make configuration straightforward.
- Includes reserved UART debugging interface and SWIM program download interface for development and troubleshooting.
Specifications:
- Model: ESP8266
- Channels: Dual-channel relay control.
- Board Dimensions: 59 x 40 mm (2.3 x 1.6 inches).
- Weight: Approximately 36 grams.
- Power Supply: 5V input.
Pinout:
Pin/Port | Description |
IN+, IN- | 5V power input |
5V, GND, SWIM, NRST | STM8S Single Chip Mycoco program download port |
TX, RX | UART serial port pins |
Button S1 | Mode switch (default mode is Mode 1) |
Button S2 | Restore factory settings |
LED D7 (Red) | Mode 1 indicator |
LED D5 (Blue) | Mode 2 indicator |
LED D6 (Green) | Working Condition Indicator: |
1. Lights off: Module is in self-configuration or disconnected. | |
2. Flashes quickly (0.5s): Waiting for WiFi account/password configuration via the app.
|
|
3. Flashes slowly (2s): Configuration completed; waiting for TCP connection.
|
|
4. Lights on: TCP connection with the phone is completed. | |
LED D28 & D4 (Red) | Relay indicating light; shines when the relay is turned on. |
2 Reserved Jumper Caps |
Normal use: Plug into the bottom (RX connects to RX1, TX connects to TX1). Independent use: Insert USB-to-TTL serial port module for debugging ESP-01 (top position).
|
COM1, COM2 | Common ground terminals for relays. |
NO1, NO2 |
Normal open terminals: Open before relay is activated; connects to COM1/COM2 after activation.
|
NC1, NC2 |
Normal closed terminals: Connected to COM1/COM2 before activation; open after relay is activated.
|
Relay Control Instructions (Hexadecimal HEX Form) | Turn on 1st relay: A0 01 01 A2 Turn off 1st relay: A0 01 00 A1 Turn on 2nd relay: A0 02 01 A3 Turn off 2nd relay: A0 02 00 A2 |
Operating Instructions for the Dual WiFi Relay Module
Required Tools and Applications
- Power Adapter: 5V/1A.
- Mobile Apps:
- ESP Touch-Demo (for initial WiFi setup).
- EasyTCP-20 (for relay control commands).
Setup Steps
Step 1: Connect the power supply.
- Attach the power adapter's positive (+) and negative (-) terminals to the module’s IN+ and IN- respectively.
Step 2: Configure WiFi (Mode 2 only).
- Install the ESP Touch-Demo app on an Android device.
- Use this app to configure the ESP-01 module with your WiFi credentials (SSID and password).
Step 3: Install the TCP transmission app.
- Download and install EasyTCP-20 on your Android device.
- Use this app to send relay control instructions:
- Open the app, click SWITCH, and enter the relay control commands (in HEX format) along with their respective labels.
Instructions for Operating Modes
Mode 1: Direct Connection
-
Module Initialization:
- Insert the ESP-01 module and power on the device.
- After ~4 seconds, the green LED will begin flashing every 2 seconds, indicating the setup is complete.
-
Connect to the Module:
- Connect your phone directly to the ESP-01’s hotspot (AP mode).
-
Control the Relay:
- Open the EasyTCP-20 app.
- Click CONNECT. Once connected, the green LED will flash slowly and then stabilize.
- Use the app’s gray boxes to send commands to toggle the relay.
Mode 2: Router Connection
-
Switch to Mode 2:
- Insert the ESP-01 module and power on the device.
- Press the S1 button to switch to Mode 2. The blue LED will light up, and after ~1 minute, it will flash every 0.5 seconds, indicating the module is ready for WiFi setup.
-
Configure WiFi:
- Connect your phone to the router.
- Open the ESP Touch-Demo app, enter the router’s password, and click Confirm.
- After successful configuration, the app will display the module's IP address (e.g., 192.168.0.189).
- The module will automatically save the WiFi credentials for future use.
-
Control the Relay:
- Open the EasyTCP-20 app.
- Enter the module’s IP address in the app and click CONNECT. Once connected, the green LED will flash slowly and stabilize.
- Use the app’s gray boxes to send commands to toggle the relay.
Additional Notes
-
Initial Configuration:
- The first-time WiFi setup may take ~1 minute. Subsequent reconnections require ~20 seconds.
-
Changing the Router:
- To reset the WiFi credentials, press the S2 button or perform a power cycle.
- Reconfigure the WiFi settings using Mode 2 setup steps.
-
Connection Stability:
- If the router signal is weak, the green LED will turn off and the module will attempt to reconnect.
- Once reconnected, the green LED will flash every 2 seconds and stabilize.
-
Timeout Mechanism:
- Inactivity for 6 minutes will disconnect the TCP connection.
- Reconnect via the EasyTCP-20 app by clicking CONNECT again.
-
Mode Transition Restrictions:
- The button functions are only valid when the green LED flashes every 2 seconds or is steady.
Package contents:
1 x Two-channel WiFi relay.
Video: