The SparkFun Beefcake Relay Control Kit is designed to facilitate the control of high-power devices and appliances using a low-power signal from a microcontroller such as an Arduino. This kit is ideal for projects that require the switching of devices that operate at higher currents or voltages than a microcontroller can handle directly. Common applications include home automation, industrial controls, and automotive electronics.
Pin Number | Description | Notes |
---|---|---|
1 | Control Input (IN) | Connect to microcontroller output |
2 | Ground (GND) | Connect to microcontroller ground |
3 | Voltage Input (VCC) | 5V from a separate power supply |
4 | Normally Closed (NC) | Relay output pin |
5 | Common (COM) | Relay output pin |
6 | Normally Open (NO) | Relay output pin |
Power Connections:
Control Signal:
Load Connections:
// Define the relay control pin
const int relayPin = 2;
void setup() {
// Set the relay control pin as an output
pinMode(relayPin, OUTPUT);
}
void loop() {
// Turn on the relay (activate the connected load)
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Turn off the relay (deactivate the connected load)
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}
Q: Can I control this relay with a 3.3V microcontroller? A: Yes, the control input can accept a 3.3V signal.
Q: What is the purpose of the LED indicator? A: The LED indicator provides a visual confirmation that the relay is activated.
Q: Can I switch AC loads with this relay? A: Yes, the relay can switch AC loads up to 20A @ 220VAC, but always ensure proper safety precautions when working with high voltage.
Q: How can I control multiple relays? A: You can control multiple relays by using multiple digital output pins from your microcontroller, one for each relay control input. Make sure your microcontroller can handle the current draw from all relay coils when activated simultaneously.