The Adafruit Latching Mini Relay FeatherWing is a compact, easy-to-use module designed to control high-current loads with a low-current digital signal. This relay module is particularly useful in applications where it is necessary to switch devices on and off without continuous power to the relay coil, as it maintains its state even when power is removed. Common applications include home automation, industrial controls, and IoT devices where power efficiency is crucial.
Pin Name | Description |
---|---|
GND | Ground connection for the control circuit. |
Signal | Digital input to control the relay (3-5V logic level). |
+3V | Power supply for the relay coil (3V). |
NC | Normally Closed contact - connected to Common when relay is not active. |
NO | Normally Open contact - connected to Common when relay is active. |
COM | Common contact - the common point for switching. |
// Pin connected to the relay control signal
const int relayPin = 2;
void setup() {
// Set the relay control pin as an output
pinMode(relayPin, OUTPUT);
// Start with the relay in a known state (unlatched)
digitalWrite(relayPin, LOW);
}
void loop() {
// Latch the relay
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Unlatch the relay
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}
Q: Can the relay be used with AC loads? A: Yes, the relay can switch AC loads up to 125V AC, but ensure the load does not exceed 2A.
Q: Is it necessary to power down the system to change the relay state? A: No, the latching feature allows the relay to maintain its state without continuous power, and it can be controlled by toggling the control signal.
Q: How do I know if the relay is in the latched or unlatched state? A: You can determine the state by checking the continuity between the COM and NO/NC contacts with a multimeter or by observing the behavior of the connected load.