The Adafruit STEMMA Non-Latching Relay Breakout is an essential electronic component designed to interface high-current loads with low-current digital control systems, such as microcontrollers. This breakout board is particularly useful in applications where it is necessary to switch on and off devices that operate at higher voltages and currents than a microcontroller can handle directly. Common applications include home automation, industrial controls, and hobbyist projects where controlling lamps, motors, or other household appliances is required.
Pin Name | Description |
---|---|
GND | Ground pin, connected to system ground |
IN | Control input, active high (3.3V to 5V) |
VCC | Power supply for the relay coil (3.3V to 5V) |
NO | Normally open contact |
COM | Common contact |
NC | Normally closed contact |
Power Supply Connection:
Control Signal:
Load Connection:
// 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 (close NO contact)
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Turn off the relay (open NO contact)
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}
Q: Can I use this relay with a 3.3V microcontroller? A: Yes, the relay can be controlled with a 3.3V logic level.
Q: Is it safe to switch AC loads with this relay? A: Yes, as long as the load does not exceed 10A at 250VAC.
Q: What is the difference between a non-latching and a latching relay? A: A non-latching relay requires continuous power to maintain its state, while a latching relay maintains its state without power once switched.
Q: Can I control this relay with PWM? A: No, PWM is not suitable for controlling relays. Use a digital HIGH or LOW signal to control the relay state.
For further assistance, please refer to the Adafruit support forums or contact technical support.