The 1-Channel Relay (5V 10A) is an electronic switching device that allows you to control a high current circuit with a low voltage signal. This relay module is particularly useful in home automation, robotics, and industrial control systems where interfacing between low-level logic from microcontrollers and high-power loads is required.
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Connect to 5V power supply |
2 | GND | Connect to ground |
3 | IN | Control signal input (active LOW) |
4 | NO | Normally open contact to load |
5 | COM | Common contact to load |
6 | NC | Normally closed contact to load |
Power Connections:
Control Signal:
Load Connections:
// Define the relay control pin
const int relayPin = 2;
void setup() {
// Set the relay pin as an output
pinMode(relayPin, OUTPUT);
// Start with the relay deactivated (Normally Open)
digitalWrite(relayPin, HIGH);
}
void loop() {
// Activate the relay
digitalWrite(relayPin, LOW);
delay(5000); // Keep the relay activated for 5 seconds
// Deactivate the relay
digitalWrite(relayPin, HIGH);
delay(5000); // Keep the relay deactivated for 5 seconds
}
Q: Can I control this relay with a 3.3V signal? A: The relay is designed for a 5V control signal. A 3.3V signal may not reliably activate the relay.
Q: Is it safe to control AC mains with this relay? A: Yes, but ensure you have a solid understanding of working with high voltage and take all necessary safety precautions.
Q: Can I use PWM to control the relay? A: No, the relay requires a steady LOW signal to activate. PWM may cause erratic behavior.
Remember to always follow safety guidelines when working with electronics, especially when controlling high-power loads.