🚢 Minor shipping delays possible due to BFCM excitement, please bear with us 🐻 #YARRBOOTY IS BACK! Come have some fun and WIN SOME PRIZES! CLICK FOR DETAILS! 🏴‍☠️
🚢 Minor shipping delays possible due to BFCM excitement, please bear with us 🐻 #YARRBOOTY IS BACK! Come have some fun and WIN SOME PRIZES! CLICK FOR DETAILS! 🏴‍☠️
Black Friday / Cyber Monday Deals!

2-Channel SPST Relay Unit

by M5Stack

2-Channel SPST Relay Unit is equipped with two high-current relays that work under AC250V 8A or DC28V 8A.

Each relay adopts independent IO control, and status indicator LED. It is suitable for home appliance power control, or ON/OFF switch for industrial equipment.

The relay is driven by IO output high and low level signals, so before connecting to the main control, please make sure that the connected port IO supports configuration as output mode. (Note: G36 of ESP32 is not allowed to be configured as output mode, so PortB will not be able to drive normally)

Features

  • 2-channel relay
  • AC-250V/DC-28V @ 8A
  • Status Indicator LED

Includes

  • 1x 2RELAY Unit
  • 1x HY2.0-4P cable (20cm)
  • 2x VH3.96-4P Plug terminal

Applications

  • AC/DC signal switching
  • Digital equipment power on and off

Specification

Specifications Parameters
Maximum on-off voltage AC-250V/DC-28V
Rated current 8A
Coil control voltage DC5V
Coil power consumption 5V@154mA
Coil action time ≤ 8ms
Coil release time ≤ 5ms
Contact form A normally open type
Contact material AgSnO2
Relay indicator Blue x2
Net weight 20g
Gross weight 31g
Product size 56 x 24 x 19mm
Packing size 93 x 138mm

PinMap

M5CORE - PORT A G21 G22
2RELAY RELAY-A RELAY-B

Example

Arduino

#include <Arduino.h>

#define RELAY_A 21
#define RELAY_B 22

void setup() {
pinMode(RELAY_A, OUTPUT);
pinMode(RELAY_B, OUTPUT);
}

void loop(void) {
digitalWrite(RELAY_A, LOW);
digitalWrite(RELAY_B, LOW);
delay(2000);
digitalWrite(RELAY_A, HIGH);
digitalWrite(RELAY_B, HIGH);
delay(2000);
}