The KF-301 Relay is an electromagnetic switch module widely used in electronics for controlling high power devices and circuits using low power signals. It is particularly useful in situations where you need to control AC or DC loads with a microcontroller like an Arduino UNO. Common applications include home automation, industrial controls, and switching devices on and off remotely.
Pin Number | Description | Notes |
---|---|---|
1 | Normally Open (NO) | Contact closes when coil is energized |
2 | Common (COM) | Connects to NO or NC depending on coil state |
3 | Normally Closed (NC) | Contact opens when coil is energized |
4 | Coil+ (VCC) | Connect to 5V supply |
5 | Coil- (GND) | Connect to ground |
6 | Input Signal (IN) | Trigger signal from microcontroller |
// Define the relay control pin
#define RELAY_PIN 7
void setup() {
// Set the relay control pin as an output
pinMode(RELAY_PIN, OUTPUT);
}
void loop() {
// Turn on the relay by setting the control pin HIGH
digitalWrite(RELAY_PIN, HIGH);
delay(1000); // Wait for 1 second
// Turn off the relay by setting the control pin LOW
digitalWrite(RELAY_PIN, LOW);
delay(1000); // Wait for 1 second
}
Q: Can I control the KF-301 Relay with a 3.3V signal? A: The relay requires a 5V signal to reliably actuate. Use a level shifter if you're controlling it with a 3.3V microcontroller.
Q: Is it safe to switch AC loads with the KF-301 Relay? A: Yes, but ensure you have proper knowledge of working with high voltage and take necessary safety precautions.
Q: How can I extend the life of the relay? A: Minimize the load on the contacts, use snubber circuits for inductive loads, and avoid frequent switching if possible.