2020-03-19 21:06:45 +08:00
# RELAY
2018-12-26 11:14:53 +08:00
2020-07-09 17:48:46 +08:00
<el-tag effect="plain">SKU:U023</el-tag>
2020-03-19 14:40:22 +08:00
2020-10-28 19:06:02 +08:00
<div class="product_pic"><img src="assets/img/product_pics/unit/relay/unit_relay_01.webp"></div>
2018-12-26 11:14:53 +08:00
## Description
2020-12-14 11:44:36 +08:00
**RELAY** as it says is an M5Unit that implement a Relay functions. Relay can be used as an electrically operated switch, uses an electromagnet to mechanically operate a switch, where it is necessary to control a large power load circuit by a separate low-power signal such as digital signal output from a microprocessor.
The Relay support input voltage of up to 30V DC and 220V AC.
2018-12-26 11:14:53 +08:00
2019-05-05 11:28:54 +08:00
There are 3 pins named: ON, OFF, COM. You can program to make COM connect to ON or OFF, just by high and low out put of a digital GPIO.
2018-12-26 11:14:53 +08:00
2019-05-05 11:28:54 +08:00
## Product Features
2019-03-26 10:06:32 +08:00
2020-12-14 11:44:36 +08:00
- Single-BUS control
- Up to 3A @ 30 V DC or 220 V AC
- Software Development Platform: Arduino, UIFlow (Blockly, Python)
2019-05-05 11:28:54 +08:00
- Two Lego-compatible holes
2018-12-26 11:14:53 +08:00
2019-03-26 10:06:32 +08:00
## Include
2018-12-26 11:14:53 +08:00
2019-03-26 10:06:32 +08:00
- 1x RELAY Unit
- 1x Grove Cable
2019-05-05 11:28:54 +08:00
- 1x 3.96 soket
2019-03-26 10:06:32 +08:00
2020-02-12 16:55:19 +08:00
## Applications
2019-03-26 10:06:32 +08:00
- Remote control of high-power appliances, such as refrigerators, air conditioners, TVs, etc.
2018-12-26 11:14:53 +08:00
2020-05-29 16:36:24 +08:00
## Specification
<table>
<tr style="font-weight:bold">
<td>Resources</td>
<td>Parameter</td>
</tr>
<tr>
2020-11-18 19:00:45 +08:00
<td>Net weight</td>
2020-05-29 16:36:24 +08:00
<td>12g</td>
</tr>
<tr>
<td>Gross weight</td>
<td>26g</td>
</tr>
<tr>
<td>Product Size</td>
<td>48*24*21mm</td>
</tr>
<tr>
<td>Package Size</td>
<td>60*57*17mm</td>
</tr>
</table>
2020-03-12 21:12:31 +08:00
## EasyLoader
2018-12-26 11:14:53 +08:00
2020-03-12 21:12:31 +08:00
>EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification. Please install the corresponding driver according to the device type. M5Core host [Please click here to view the CP210X driver installation tutorial ](en/arduino/arduino_development ), M5StickC/V/T/ATOM series can be used without driver)
2019-06-13 18:06:23 +08:00
2020-03-12 21:12:31 +08:00
<div class="easyloader-box">
<div style="background-color:white;">
2020-04-08 14:09:44 +08:00
<div><img src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/easyloader_intro.webp"></div>
2020-03-12 21:12:31 +08:00
<div class="easyloader-btn">
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/Windows/UNIT/For%20M5Core/EasyLoader_Relay_UNIT_With_M5Core.exe">Windows</a>
2020-04-14 17:55:39 +08:00
<a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/EasyLoader/MacOS/UNIT/EasyLoader_Relay_UNIT_With_M5Core.dmg">MacOS</a>
2020-03-12 21:12:31 +08:00
<!-- <a>Linux</a>
<a>MacOS</a> -->
</div>
</div>
<div>
<video id="example_video" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/Product_example_video/Unit/Relay_UNIT.mp4" type="video/mp4">
</video>
<div class="easyloader-mask">
<a>
<svg id="play-btn" t="1583228776634" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4152" width="75" height="75"><path d="M512 0C229.216 0 0 229.216 0 512s229.216 512 512 512 512-229.216 512-512S794.784 0 512 0z m0 928C282.24 928 96 741.76 96 512S282.24 96 512 96s416 186.24 416 416-186.24 416-416 416zM384 288l384 224-384 224z" p-id="4153" fill="#007aff "></path></svg></a>
<p>Description:</p>
<p>The relay coil is turned on and off, and the contact is used as a switch for circuit control.</p>
</div>
</div>
</div>
2019-06-11 19:20:48 +08:00
2020-05-07 10:52:47 +08:00
## Schematic
<img src="assets/img/product_pics/unit/relay_sch.JPG">
### PinMap
<table>
<tr><td>M5Core(GROVE B)</td><td>GPIO36</td><td>GPIO26</td><td>5V</td><td>GND</td></tr>
<tr><td>RELAY Unit</td><td> </td><td>RELAY Controlling Pin</td><td>5V</td><td>GND</td></tr>
</table>
2019-06-11 19:20:48 +08:00
## Example
2019-06-06 20:01:45 +08:00
2021-02-05 16:54:45 +08:00
### 1. Arduino
2018-12-26 11:14:53 +08:00
2021-02-05 16:54:45 +08:00
- [Click here to download the Arduino example ](https://github.com/m5stack/M5Stack/tree/master/examples/Unit/RELAY )
2018-12-29 14:46:55 +08:00
2018-12-26 11:14:53 +08:00
### 2. UIFlow
2021-02-05 16:54:45 +08:00
- [Click here to download the UIFlow example ](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/RELAY/UIFlow )
2018-12-26 11:14:53 +08:00
2020-04-08 14:09:44 +08:00
<img src="assets/img/product_pics/unit/unit_example/RELAY/example_unit_relay_01.webp">
2018-12-26 11:14:53 +08:00
2020-02-11 18:00:45 +08:00
## Video
2018-12-26 11:14:53 +08:00
2019-01-26 18:10:47 +08:00
**Program with UIFlow**
2018-12-29 14:46:55 +08:00
2019-03-20 16:32:45 +08:00
<video width="500" height="315" controls>
<source src="https://m5stack.oss-cn-shenzhen.aliyuncs.com/video/LukeVideo/Blinking%20a%20bulb%20with%20the%20M5%20Relay%20unit..mp4" type="video/mp4">
2020-02-11 18:00:45 +08:00
</video>
2020-12-14 11:44:36 +08:00
<el-divider content-position="right">Last updated: 2020-12-14</el-divider>
2020-02-11 18:00:45 +08:00
<script>
var purchase_link = 'https://m5stack.com/collections/m5-unit/products/mini-3a-relay-unit';
anchor_search(purchase_link);
scrollFunc();
2020-12-14 11:44:36 +08:00
</script>