Stufin
Home Quick Cart Profile

5V 10A PCB Mount Sugar Cube Relay - SPDT

Buy Now on Stufin

Operating Voltage

5V DC

Operating Current

50mA (approx.)

Contact Rating

10A at 250V AC or 30V DC

Coil Resistance

150 ohms (approx.)

Contact Material

AgSnO2 (Silver-Tin Oxide)

Life Expectancy

100,000 operations (minimum)

Operating Temperature

-40C to 85C

Storage Temperature

-40C to 125C

Dimensions

25.5 x 18.5 x 15.5mm

Precautions

Ensure the relay module is handled and stored in a static-safe environment to prevent damage from electrostatic discharge.

Operate the relay module within the specified voltage and current ratings to prevent overheating and damage.

Use suitable wiring and connectors to ensure reliable connections and to prevent electrical shock hazards.

Follow proper safety precautions when working with high-power devices and electrical systems.

Pin Configuration

  • 5V 10A PCB Mount Sugar Cube Relay - SPDT Pinout and Connection Guide
  • The 5V 10A PCB Mount Sugar Cube Relay - SPDT is a compact and reliable relay module suitable for a wide range of IoT applications. It features a single-pole double-throw (SPDT) configuration, allowing it to switch a single load between two circuits. This documentation provides a detailed explanation of the relay's pins and their connections.
  • Pinout:
  • The relay module has a total of 5 pins, labeled as follows:
  • 1. VCC (Pin 1): Positive power supply pin, typically connected to a 5V DC power source.
  • 2. IN (Pin 2): Input control pin, used to trigger the relay. A high-level signal (5V) is required to activate the relay.
  • 3. NC (Pin 3): Normally Closed terminal, connected to the load when the relay is in the de-energized state.
  • 4. COM (Pin 4): Common terminal, connected to the load and switched between the NC and NO terminals.
  • 5. NO (Pin 5): Normally Open terminal, connected to the load when the relay is in the energized state.
  • Connection Structure:
  • To connect the relay module to your circuit, follow these steps:
  • Step 1: Power Connection
  • Connect the VCC (Pin 1) to a 5V DC power source.
  • Ensure the power source is stable and capable of providing the required current.
  • Step 2: Control Signal Connection
  • Connect the IN (Pin 2) to a digital output pin of your microcontroller or a suitable control signal source.
  • Use a suitable resistor and capacitor to debounce the control signal, if necessary.
  • Step 3: Load Connection
  • Connect the COM (Pin 4) to one terminal of the load (e.g., a light, motor, or solenoid valve).
  • Connect the NC (Pin 3) to the other terminal of the load, or to a fixed voltage/power supply (e.g., GND or 5V).
  • Connect the NO (Pin 5) to the other terminal of the load, or to a fixed voltage/power supply (e.g., GND or 5V).
  • Example Connection Diagram:
  • Here's an example connection diagram for the relay module:
  • VCC (Pin 1) 5V Power Source
  • IN (Pin 2) Arduino Digital Pin 2 (or any suitable control signal source)
  • COM (Pin 4) Load (e.g., Light)
  • NC (Pin 3) GND (or 5V Power Source)
  • NO (Pin 5) Load (e.g., Light)
  • When the relay is energized (IN pin is high), the COM terminal connects to the NO terminal, and the load is switched to the NO position. When the relay is de-energized (IN pin is low), the COM terminal connects to the NC terminal, and the load is switched to the NC position.
  • Important Notes:
  • Use proper soldering techniques and avoid overheating the relay module.
  • Ensure the relay module is properly rated for your load's voltage and current requirements.
  • Use a flyback diode or snubber circuit to protect the relay from back-EMF when switching inductive loads.
  • By following these connection guidelines, you can successfully integrate the 5V 10A PCB Mount Sugar Cube Relay - SPDT into your IoT project and achieve reliable load switching.

Code Examples

5V 10A PCB Mount Sugar Cube Relay - SPDT Documentation
Overview
The 5V 10A PCB Mount Sugar Cube Relay - SPDT is a compact, high-power relay module suitable for a wide range of IoT applications. This relay module features a single-pole double-throw (SPDT) configuration, allowing it to switch between two circuits or devices. With a maximum current rating of 10A and a voltage rating of 5V, this relay is ideal for controlling high-power devices such as motors, solenoids, and lamps.
Pinout
The relay module has a 5-pin PCB mount connector with the following pinout:
| Pin | Function |
| --- | --- |
| 1 | VCC (5V) |
| 2 | IN (Input Signal) |
| 3 | COM (Common) |
| 4 | NO (Normally Open) |
| 5 | NC (Normally Closed) |
Operating Principle
The relay operates by applying a 5V signal to the IN pin, which energizes the relay coil, switching the COM pin between the NO and NC pins.
Code Examples
### Example 1: Arduino Control
In this example, we'll use an Arduino Uno board to control the relay module.
```c++
const int relayPin = 2;  // Choose a digital pin on your Arduino board
void setup() {
  pinMode(relayPin, OUTPUT);
}
void loop() {
  digitalWrite(relayPin, HIGH);  // Turn the relay ON
  delay(1000);
  digitalWrite(relayPin, LOW);  // Turn the relay OFF
  delay(1000);
}
```
### Example 2: Raspberry Pi Python Control (using RPi.GPIO library)
In this example, we'll use a Raspberry Pi board to control the relay module using Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
relay_pin = 17  # Choose a GPIO pin on your Raspberry Pi board
GPIO.setup(relay_pin, GPIO.OUT)
while True:
    GPIO.output(relay_pin, GPIO.HIGH)  # Turn the relay ON
    time.sleep(1)
    GPIO.output(relay_pin, GPIO.LOW)  # Turn the relay OFF
    time.sleep(1)
```
### Example 3: ESP32 MicroPython Control
In this example, we'll use an ESP32 board to control the relay module using MicroPython.
```python
import machine
import time
relay_pin = machine.Pin(15, machine.Pin.OUT)  # Choose a GPIO pin on your ESP32 board
while True:
    relay_pin.value(1)  # Turn the relay ON
    time.sleep(1)
    relay_pin.value(0)  # Turn the relay OFF
    time.sleep(1)
```
Important Notes
Ensure the relay module is properly mounted on a PCB with suitable heat dissipation to prevent overheating.
 Use a suitable voltage regulator to supply 5V power to the relay module.
 When switching high-power devices, consider adding a flyback diode or snubber circuit to prevent back-EMF damage to the relay.
By following these examples and guidelines, you can effectively use the 5V 10A PCB Mount Sugar Cube Relay - SPDT in your IoT projects.