433 MHz
433 MHz
Up to 100 meters (330 feet) in open space
4 x SPDT (Single Pole Double Throw)
10A at 250V AC or 30V DC per relay output
50mA
5V DC
63 x 55 x 25 mm (2.48 x 2.17 x 0.98 inches)
50g (1.76 oz)
Applications
| The 4 Channel Relay Wireless Module is suitable for a wide range of applications, including |
Home automation systems
Industrial control systems
IoT projects
Remote monitoring and control systems
Security systems
Smart home devices
Conclusion
The 4 Channel Relay Wireless Module is a versatile and reliable IoT component that offers a convenient and wireless solution for remotely controlling multiple loads. With its compact design, low power consumption, and high-quality relays, this module is an ideal choice for a wide range of applications.
4 Channel Relay Wireless Module DocumentationOverviewThe 4 Channel Relay Wireless Module is a remote control relay module that allows users to control up to 4 relay channels wirelessly using a remote controller or a microcontroller. This module is ideal for IoT and automation projects where remote control of devices is required.Hardware SpecificationsOperating Frequency: 433 MHz
Transmission Distance: Up to 100 meters (open air)
Relay Channels: 4
Voltage: 5V
Current: 10A per channel
Connector Type: Screw terminalsSoftware SpecificationsCommunication Protocol: Wireless RF (433 MHz)
Compatible with most microcontrollers (Arduino, Raspberry Pi, etc.)Code Examples### Example 1: Arduino Remote Control using 4 Channel Relay Wireless ModuleIn this example, we will use an Arduino board to control the 4 Channel Relay Wireless Module remotely.Components needed:Arduino Uno
4 Channel Relay Wireless Module
4 LED lamps (for demonstration purposes)Arduino Code:
```cpp
#include <VirtualWire.h>const int rxPin = 2; // Receive pin for RF module
const int txPin = 3; // Transmit pin for RF module
const int relayPins[] = {4, 5, 6, 7}; // Pin connections for relay channelsvoid setup() {
Serial.begin(9600);
vw_set_rx_pin(rxPin);
vw_set_tx_pin(txPin);
vw_setup(2000); // Initialize VirtualWire library
pinMode(relayPins[0], OUTPUT);
pinMode(relayPins[1], OUTPUT);
pinMode(relayPins[2], OUTPUT);
pinMode(relayPins[3], OUTPUT);
}void loop() {
char receivedData[4];
uint8_t relayChannel;if (vw_get_message(receivedData, 4)) {
relayChannel = receivedData[0] - '0';
if (relayChannel >= 1 && relayChannel <= 4) {
digitalWrite(relayPins[relayChannel - 1], receivedData[1] - '0');
}
}
delay(50);
}
```How it works:1. Connect the 4 Channel Relay Wireless Module to the Arduino board.
2. Connect the LED lamps to the relay channels.
3. Use a separate remote controller or another Arduino board to transmit commands to the relay module.
4. The relay module receives the commands and controls the LED lamps accordingly.### Example 2: Raspberry Pi Home Automation using 4 Channel Relay Wireless ModuleIn this example, we will use a Raspberry Pi to control the 4 Channel Relay Wireless Module wirelessly, creating a home automation system.Components needed:Raspberry Pi
4 Channel Relay Wireless Module
4 LED lamps (for demonstration purposes)Python Code:
```python
import RPi.GPIO as GPIO
import timeGPIO.setmode(GPIO.BCM)# Relay channel pin connections
relayPins = [17, 23, 24, 25]# Initialize relay pins as outputs
for pin in relayPins:
GPIO.setup(pin, GPIO.OUT)while True:
# Receive commands from remote controller or another device
command = input("Enter command (e.g., '1:on' or '2:off'): ")
channel, state = command.split(':')
channel = int(channel)
state = state.lower() == 'on'if channel >= 1 and channel <= 4:
GPIO.output(relayPins[channel - 1], state)
print(f"Relay {channel} is {'on' if state else 'off'}")
else:
print("Invalid channel")time.sleep(0.5)
```How it works:1. Connect the 4 Channel Relay Wireless Module to the Raspberry Pi.
2. Connect the LED lamps to the relay channels.
3. Use a separate remote controller or another device to send commands to the Raspberry Pi.
4. The Raspberry Pi receives the commands and controls the LED lamps accordingly.Note: In both examples, ensure that the 4 Channel Relay Wireless Module is properly paired with the remote controller or transmitter device before running the code.