A 12V wireless relay is an electromechanical device that allows users to control high-power devices wirelessly. It operates at a 12V voltage level and can be triggered remotely, making it ideal for applications in home automation, industrial control, and remote power switching. The wireless relay module typically includes a relay (the switch), a wireless receiver, and an antenna.
Pin Number | Description | Notes |
---|---|---|
1 | VCC | Connect to 12V power supply |
2 | GND | Connect to ground |
3 | IN | Signal input from receiver |
4 | NO (Normally Open) | Relay switch open by default |
5 | COM (Common) | Common terminal for the switch |
6 | NC (Normally Closed) | Relay switch closed by default |
Q: Can I use this relay with AC loads? A: Yes, as long as the load is within the relay's AC rating.
Q: How can I extend the wireless range? A: Minimize obstructions, use a higher gain antenna, or consider a signal repeater.
Q: Is it possible to control multiple relays with one transmitter? A: Yes, if the relays are designed to respond to the same signal or if the transmitter can send multiple signals.
Below is an example code snippet for controlling a 12V wireless relay with an Arduino UNO. This assumes the relay's receiver is designed to accept a digital signal from the Arduino.
// Define the relay control pin
const int relayPin = 7;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
}
void loop() {
// Turn on the relay
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Turn off the relay
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}
Note: This code is for illustration purposes. The actual implementation will depend on the specific wireless relay module and the wireless receiver's requirements. Always refer to the manufacturer's datasheet for precise operation details.