Stufin
Home Quick Cart Profile

M5 Stack Solid State Relay Unit(BT136S)

Buy Now on Stufin

Component Name

M5 Stack Solid State Relay Unit (BT136S)

Overview

The M5 Stack Solid State Relay Unit (BT136S) is a compact and versatile IoT component designed for high-power switching applications. This relay module is part of the M5 Stack series, a popular platform for IoT development, and is based on the BT136S triac, a high-performance solid-state relay. The module provides a convenient and efficient way to control high-current devices, making it an ideal choice for various IoT projects and industrial automation applications.

Functionality

The M5 Stack Solid State Relay Unit (BT136S) is designed to switch high-power devices, such as motors, lamps, and other inductive loads, using a low-power signal from a microcontroller or other control device. The module uses the BT136S triac, which provides high power handling capabilities and fast switching times. The relay unit can be controlled using a digital signal from an M5 Stack core module or other compatible microcontrollers.

Key Features

  • High Power Handling: The BT136S triac can handle high currents up to 4A and voltages up to 250V AC, making it suitable for a wide range of applications.
  • Solid-State Reliability: The use of a triac as the switching element ensures high reliability and long lifespan, with minimal wear and tear.
  • Fast Switching Times: The relay unit can switch on and off quickly, with a typical switching time of 1ms, making it suitable for applications requiring fast switching.
  • Low Power Consumption: The module has a low power consumption of approximately 2mA when idle, making it suitable for battery-powered applications.
  • Easy Control Interface: The relay unit can be controlled using a simple digital signal from an M5 Stack core module or other compatible microcontrollers.
  • Compact Design: The module is compact and lightweight, making it easy to integrate into a variety of applications.
  • isolation: The relay unit provides electrical isolation between the control signal and the load, ensuring safe and reliable operation.
  • Wide Operating Temperature: The module can operate in a wide temperature range from -40C to 85C, making it suitable for use in a variety of environments.

Module Pinout

The M5 Stack Solid State Relay Unit (BT136S) has a simple pinout that includes

VCC

Power supply input (typically 5V)

GND

Ground connection

SIG

Digital control signal input

NC

Normally Closed relay contact

NO

Normally Open relay contact

COM

Common relay contact

Typical Applications

The M5 Stack Solid State Relay Unit (BT136S) is suitable for a wide range of applications, including

Home automation systems

Industrial automation systems

Motor control systems

LED lighting control systems

HVAC control systems

Security systems

Conclusion

The M5 Stack Solid State Relay Unit (BT136S) is a compact and versatile IoT component that provides reliable and efficient high-power switching capabilities. Its fast switching times, low power consumption, and compact design make it an ideal choice for various IoT projects and industrial automation applications.

Pin Configuration

  • M5 Stack Solid State Relay Unit (BT136S) Pinout Explanation and Connection Guide
  • The M5 Stack Solid State Relay Unit (BT136S) is a versatile IoT component designed for controlling AC loads using a microcontroller or other digital devices. The module features a relay switch based on the BT136S triac, which can handle up to 2A of current. Here is a detailed explanation of the pins and how to connect them:
  • Pinout:
  • 1. GND (Ground):
  • Function: Ground connection for the relay module
  • Connection: Connect to the ground pin of your microcontroller or power source
  • 2. VCC (Power Supply):
  • Function: Power supply for the relay module
  • Connection: Connect to a 5V power source (e.g., from a microcontroller or a battery)
  • 3. SIG (Signal):
  • Function: Input signal pin to control the relay
  • Connection: Connect to a digital output pin of your microcontroller (e.g., GPIO)
  • 4. NC (Normally Closed):
  • Function: Normally closed contact of the relay
  • Connection: Connect to one terminal of the AC load (e.g., a light bulb)
  • 5. NO (Normally Open):
  • Function: Normally open contact of the relay
  • Connection: Connect to the other terminal of the AC load (e.g., a light bulb)
  • 6. COM (Common):
  • Function: Common contact of the relay
  • Connection: Connect to the power source of the AC load (e.g., mains voltage)
  • Connection Structure:
  • To connect the M5 Stack Solid State Relay Unit (BT136S) to your microcontroller and AC load, follow these steps:
  • Step 1: Power the Relay Module
  • Connect the VCC pin to a 5V power source (e.g., from a microcontroller or a battery)
  • Connect the GND pin to the ground connection of the power source
  • Step 2: Control the Relay
  • Connect the SIG pin to a digital output pin of your microcontroller (e.g., GPIO)
  • In your microcontroller's code, set the SIG pin high (5V) to turn on the relay and low (0V) to turn off the relay
  • Step 3: Connect the AC Load
  • Connect one terminal of the AC load (e.g., a light bulb) to the NC pin
  • Connect the other terminal of the AC load (e.g., a light bulb) to the NO pin
  • Connect the power source of the AC load (e.g., mains voltage) to the COM pin
  • Example Connection:
  • Suppose you want to control a light bulb using an M5 Stack microcontroller and the M5 Stack Solid State Relay Unit (BT136S). Here's an example connection:
  • M5 Stack microcontroller:
  • + VCC M5 Stack VCC
  • + GND M5 Stack GND
  • + GPIO 26 SIG (relay control pin)
  • M5 Stack Solid State Relay Unit (BT136S):
  • + VCC M5 Stack VCC
  • + GND M5 Stack GND
  • + SIG M5 Stack GPIO 26
  • + NC Light bulb terminal 1
  • + NO Light bulb terminal 2
  • + COM Mains voltage (power source)
  • Remember to use proper safety precautions when working with AC loads and ensure that your microcontroller and relay module are compatible with the voltage and current requirements of the AC load.

Code Examples

M5 Stack Solid State Relay Unit (BT136S) Documentation
Overview
The M5 Stack Solid State Relay Unit (BT136S) is a compact and versatile relay module designed for use with the M5 Stack series of microcontrollers. This module features a single-channel solid-state relay (SSR) that can be controlled digitally, making it ideal for a wide range of IoT and automation applications.
Specifications
Relay Type: Single-channel solid-state relay (SSR)
 Rated Capacity: 2A/250VAC
 Operating Voltage: 3.3V/5V
 Control Signal: Digital (High/Low)
 Dimensions: 24.2 x 22.2 x 12.8 mm
Pinout
The M5 Stack Solid State Relay Unit (BT136S) has a simple and intuitive pinout:
| Pin | Function |
| --- | --- |
| VCC | Power supply (3.3V/5V) |
| GND | Ground |
| SIG | Control signal (digital input) |
Code Examples
### Example 1: Basic Relay Control using M5 Stack Arduino Core
In this example, we'll demonstrate how to control the relay using the M5 Stack Arduino core.
```cpp
#include <M5Stack.h>
#define RELAY_PIN 22 // Replace with the digital pin connected to the relay
void setup() {
  M5.begin(); // Initialize the M5 Stack
  pinMode(RELAY_PIN, OUTPUT); // Set the relay control pin as an output
}
void loop() {
  digitalWrite(RELAY_PIN, HIGH); // Turn the relay ON
  delay(1000); // Wait for 1 second
  digitalWrite(RELAY_PIN, LOW); // Turn the relay OFF
  delay(1000); // Wait for 1 second
}
```
### Example 2: Home Automation using M5 Stack and Wi-Fi
In this example, we'll create a simple home automation system using the M5 Stack, Wi-Fi, and the relay module.
```cpp
#include <M5Stack.h>
#include <WiFi.h>
#define RELAY_PIN 22 // Replace with the digital pin connected to the relay
#define WIFI_SSID "your_wifi_ssid"
#define WIFI_PASSWORD "your_wifi_password"
WiFiServer server(80); // Create a Wi-Fi server
void setup() {
  M5.begin(); // Initialize the M5 Stack
  pinMode(RELAY_PIN, OUTPUT); // Set the relay control pin as an output
  WiFi.begin(WIFI_SSID, WIFI_PASSWORD); // Connect to Wi-Fi
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting to Wi-Fi...");
  }
  Serial.println("Connected to Wi-Fi");
  server.begin(); // Start the Wi-Fi server
}
void loop() {
  WiFiClient client = server.available(); // Check for incoming client requests
  if (client) {
    String request = client.readStringUntil('
');
    if (request.indexOf("relay:on") != -1) {
      digitalWrite(RELAY_PIN, HIGH); // Turn the relay ON
      client.println("HTTP/1.1 200 OK");
      client.println("Content-Type: text/html");
      client.println("");
      client.println("Relay is ON");
    } else if (request.indexOf("relay:off") != -1) {
      digitalWrite(RELAY_PIN, LOW); // Turn the relay OFF
      client.println("HTTP/1.1 200 OK");
      client.println("Content-Type: text/html");
      client.println("");
      client.println("Relay is OFF");
    }
  }
}
```
Note: These examples are meant to serve as starting points for your projects. Make sure to modify the code to suit your specific requirements and handle any necessary error checking and safety measures.