6V DC
6V DC
5mA
SPDT (Single Pole Double Throw)
10A at 250V AC, 30V DC
10ms
5ms
50m
Applications
The 6V Relay Cube is suitable for a wide range of IoT and automation applications, including |
Home automation systems
Industrial control systems
Robotics and mechatronics
Security systems
Lighting control systems
HVAC control systems
Safety Precautions
Ensure the relay cube is used within the specified operating parameters to prevent damage or injury.
Avoid exposing the module to extreme temperatures, humidity, or vibration.
Use proper safety precautions when working with electrical circuits and devices.
By providing a compact, reliable, and easy-to-use relay solution, the 6V Relay Cube is an excellent choice for designers and developers of IoT and automation systems.
6V Relay Cube Documentation
Overview
The 6V Relay Cube is a compact and versatile IoT component that allows users to control high-power devices with a low-power microcontroller or development board. This relay module is designed to operate at 6V and can switch up to 10A of current, making it suitable for a wide range of applications, including home automation, robotics, and industrial control.
Pinout
The 6V Relay Cube has a simple and easy-to-use pinout:
VCC: Power supply (6V)
GND: Ground
IN: Input signal (active low)
COM: Common terminal (connected to NC or NO)
NO: Normally Open terminal
NC: Normally Closed terminal
Code Examples
### Example 1: Basic Relay Control with Arduino
This example demonstrates how to use the 6V Relay Cube to control a light bulb using an Arduino Uno board.
```c++
const int relayPin = 2; // Choose a digital pin on the Arduino
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
digitalWrite(relayPin, LOW); // Turn the relay on (connects COM to NO)
delay(1000); // Wait 1 second
digitalWrite(relayPin, HIGH); // Turn the relay off (connects COM to NC)
delay(1000); // Wait 1 second
}
```
### Example 2: Using the Relay Cube with Raspberry Pi and Python
This example shows how to control the relay using a Raspberry Pi and Python.
```python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
relay_pin = 17 # Choose a GPIO pin on the Raspberry Pi
GPIO.setup(relay_pin, GPIO.OUT)
try:
while True:
GPIO.output(relay_pin, GPIO.LOW) # Turn the relay on
time.sleep(1)
GPIO.output(relay_pin, GPIO.HIGH) # Turn the relay off
time.sleep(1)
except KeyboardInterrupt:
GPIO.cleanup()
```
### Example 3: Controlling a Fan with ESP32 and MicroPython
This example demonstrates how to use the 6V Relay Cube to control a fan using an ESP32 board and MicroPython.
```python
import machine
import time
relay_pin = machine.Pin(18, machine.Pin.OUT) # Choose a digital pin on the ESP32
while True:
relay_pin.value(0) # Turn the relay on
time.sleep(5)
relay_pin.value(1) # Turn the relay off
time.sleep(5)
```
Troubleshooting Tips
Ensure the relay module is properly powered (6V) and grounded.
Verify the input signal (IN) is correctly connected to the microcontroller or development board.
Use a voltmeter to check the voltage across the relay terminals to ensure proper operation.
Avoid overloading the relay with high-current devices, as this can damage the module.
Additional Resources
Datasheet: [6V Relay Cube Datasheet](https://example.com/6v-relay-cube-datasheet.pdf)
Schematic: [6V Relay Cube Schematic](https://example.com/6v-relay-cube-schematic.pdf)
Community Forum: [6V Relay Cube Discussion Forum](https://example.com/6v-relay-cube-forum)