Getting Started

Getting Started with 2 Channel WiFi Relay Module

9 views June 23, 2026 aryakrishna 0

Introduction

The 2 Channel WiFi Relay Module is a network-enabled relay controller designed for remote switching, monitoring, and automation applications. It allows users to control two independent relay outputs through a web interface, REST API, MQTT, and Smart Action automation features.

The module can be used in a wide range of home and industrial automation projects, including lighting control, pump management, equipment monitoring, alarm systems, and remote switching applications.

Supporting Features:

  • 2 relay outputs (SPDT)
  • 4 high voltage digital inputs – upto 24V
  • WiFi connectivity for remote access
  • Built-in web-based configuration interface
  • Smart Action automation engine
  • REST API support for integration
  • MQTT support for IoT applications
  • Digital input monitoring
  • Real-time relay status monitoring
  • Local and remote operation

Prerequisites

  1. A 2 Channel WiFi Relay Module.
  2. A power source (12V DC power adapter with 1.5A current output).
  3. A Wi-Fi-enabled device (laptop or smartphone).
  4. Access to your Wi-Fi network.
  5. A modern web browser (Chrome, Safari, Edge, etc.).
  6. Optional: MQTT broker details, SSL certificates (for HTTPS and MQTTS).

LED Indicators

ColorStateIndication
RedSolid (2 seconds)Device is powered on
PurpleBlinkingAP Mode: Waiting for STA Device to get conneted
PurpleSolidAP Mode: STA Device is connected
GreenBlinkingStation Mode: Trying to connect to Wi-Fi network
GreenSolidStation Mode: Connected to Wi-Fi network
BlueBlinkingTrying to connect to MQTT broker / Not connected
BlueSolidConnected to MQTT broker
Blue + White BlinkSolid Blue with White Blinking in the BackgroundMQTT publishing is active — white LED blinks at every publish interval
YellowSolidFalling back to AP (Configuration mode)
RedBlinking Factory reset initialized

Let’s get started

Follow these steps to set up and start using your 2 Channel WiFi Relay module:

Step 1: Power the Device

The 2 channel WiFi Relay Module operates using a 12V DC power adapter (1.5A current output). Use a 12V DC adapter to power the board reliably. Once powered, the Power LED glows solid red for 2 seconds, signaling that the system has started properly.

Step 2: Configuration Mode: The Access Point Mode

The 2 Channel WiFi Relay Module features a built-in Wi-Fi Access Point (AP) made for easy, direct configuration, no app or special software needed.

  1. Connect to the Access Point:
    • On Power on the device automatically enters AP mode, indicated by a blinking purple LED.
    • On your PC or mobile device, open Wi-Fi settings.
    • Look for a network with the SSID similar to the module’s Default Hostname.
    • Connect to it using the Default Password.
    • Once connected, the purple LED will turn solid, confirming successful connection.
  2. Accessing the Configuration Page:
    • Open any web browser and enter: 192.168.4.1.
    • Login using the default credentials when prompted.
    • You will now see the configuration dashboard.
  3. Explore the Web Dashboard
    • View live relay, inputs(Digital).
    • Change network settings.
    • Configure MQTT/MQTTs.
    • Upload HTTPs/MQTTs certificates.
    • Perform reboot or factory reset.
  4. Changing the Network Configuration
    • From the dashboard, go to Network Settings.
    • Choose automatic IP assignment (DHCP) or configure a manual IP.
    • Enter your Wi-Fi credentials (SSID & password) to connect to your local Wi-Fi network.
    • The device on reboot will switch to Wi-Fi Station mode. The LED will blink green while connecting and turn solid green when connected to the network of your choice.
  5. Reboot

Note: Once all the necessary settings are completed, reboot the device to enable the set changes.

You can reboot the device in two ways:

  • From Web Interface: Click Reboot on the Device settings page under the Device Management section.
  • Using the Multi-Purpose Switch: A single click will reboot the device with the saved configuration.

Step 3: HTTPS Settings

Enabling HTTPS ensures secure, encrypted communication with the device dashboard.

  1. What You Need:
    • Server Certificate (.pem): Authenticates the device.
    • Server Key (.pem): Matches the certificate and secures the session.
  2. How to Enable:
    • Upload the certificate and key via the web interface in the Network Settings Page under the HTTPS Settings section.
    • Reboot the device to apply changes.

On the next power on, you can access your 2 Channel WiFi Relay module over HTTPs.

Step 4: MQTT/MQTTS Integration

The 2 Channel WiFi Relay Module can publish real-time relay and input data to your MQTT broker, supporting both unencrypted (MQTT) and encrypted (MQTTS) communication.

  1. Make sure the device is connected to Wi-Fi network of your choice in Station Mode.
  2. Go to MQTT Settings on the dashboard.
  3. Enter the Broker details.
  4. Enable MQTTS (if required) by uploading the client and CA certificates along with the Client key.
  5. Submit and reboot the device.

Once the device is rebooted, it connects to the configured MQTT/MQTTs broker and starts publishing the data. The connectivity status and the publish status can be viewed on the LED indicator.

Step 5: Control the Relays

The module includes two independently controlled relay outputs.

Turn Relay 1 ON

  1. Navigate to the Home Page.
  2. Locate Relay 1 under Relay Status & Control section.
  3. Click on the control button.

The relay status indicator will update to reflect the new state.

Turn Relay 1 OFF

  1. Click on the control button again.
  2. Verify the relay status changes.

Repeat the same process for Relay 2.

Step 5: Monitor Inputs and Relay Status

The dashboard displays the current status of:

  • Relay 1
  • Relay 2
  • Digital Inputs
  • Network Connectivity

Monitoring these values helps verify proper operation and provides visibility into connected devices.

Step 6: Backup Management

2 Channel WiFi Relay module support easy backup and restore of configuration data to simplify deployment and maintenance. From the web dashboard, navigate to the Device Settings tab and click Download under the Backup Management Section to save current data as a csv file on your local device.

Step 7: Device Management

  1. Reboot
    • Applies settings or refreshes device behavior.
    • Initiates reconnection to the network.
  2. Factory Reset
    • Restores all settings to factory defaults.
    • Erases saved Wi-Fi, MQTT, calibration, and password information.

⚠️ Use Factory Reset only when necessary. Always back up your configurations and data before a Factory reset.

Step 8: Create Your First Smart Action

Smart Actions allow the module to automatically perform actions when specified conditions occur.

Example: Turn Relay 1 ON When Input 1 Becomes Active

  1. Navigate to Smart Actions.
  2. Click Add New Action.
  3. Configure the following:
    • Trigger: Input 1 Active
    • Action: Turn Relay 1 ON
  4. Save the configuration.

The module will now automatically activate Relay 1 whenever Input 1 is triggered.

Real-World Applications

  • Industrial Monitoring
    Track conditions across multiple zones and prevent costly downtime.
  • Smart Agriculture
    Improve crop yield with precise environmental monitoring.
  • Smart Buildings
    Optimize HVAC systems and energy usage with real-time insights.
  • Security & Access Control
    Operate gates, garage doors,  to enhance security and streamline entry management.
  • Home Automation
    Control lights, fans, pumps, and appliances remotely over Wi-Fi.

Best Practices

  • Secure your credentials and HTTPS keys.
  • Back up your configurations and data before factory reset.
  • Ensure stable network connection for consistent data publishing.

Support

For detailed instructions, troubleshooting tips, or downloads, refer to the [User Manual] or Connect With Us

This guide gives you everything you need to monitor and control relays, monitor inputs and set the smart actions on 2 Channel WiFi Relay Module.

Was this helpful?

Leave A Comment
*
*