{"title":"Mini 3A Relay Unit","handle":"mini-3a-relay-unit","url":"/products/mini-3a-relay-unit","description":"   Description RELAY, as its namesake, is a M5Unit that implenments a Relay functions. Relay can be used as an electrically operated switch, uses an electromagnet to mechanically operate a switch,to where it is necessary to control a large power load circuit by a separate low-power signal, like a digital signal output from a mircoprocessor. Up to 30V DC and 220V AC. 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.  Product Features  Single-BUS control Up to 3A @ 30 V DC or 220 V AC Software Development Platform: Arduino, UIFlow(Blockly,Python) Two Lego-compatible holes   Kit includes  1x RELAY Unit 1x Grove Cable 1x 3.96 soket   Application Remote control of high-power appliances, such as refrigerators, Air Conditioners, TVs, etc. Learn Example  1. Arduino IDE The code below is incomplete. To get complete code, please click&nbsp;here. #include &lt;M5Stack.h&gt;  void setup() {   M5.begin();   M5.Lcd.clear(BLACK);   M5.Lcd.setTextFont(4);   M5.Lcd.setTextColor(YELLOW, BLACK);   //disable the speak noise   dacWrite(25, 0);   pinMode(26, OUTPUT);// RELAY Pin setting }  void loop(void) {   digitalWrite(26, HIGH);// RELAY Unit work   delay(500);   digitalWrite(26, LOW);// RELAY Unit stop work   delay(500); }   2. UIFlow To get complete code, please click&nbsp;here.  &nbsp; More information Schematic   PinMapM5Core(GROVE B)GPIO36GPIO265VGNDRELAY Unit/RELAY Controlling Pin5VGND&nbsp; ","vendor":"Little Bird","product_type":"physical","in_stock":false,"options":[],"variants":[{"id":4816,"title":"Default Title","sku":"M5-U023","price":4.74,"compare_at_price":0.0,"on_sale":false,"in_stock":false,"available_quantity":0,"option1":"Default Title"}]}