Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use Shelly 1 mini gen3: Examples, Pinouts, and Specs

Image of Shelly 1 mini gen3Design with Shelly 1 mini gen3 in Cirkit Designer

Introduction

The Shelly 1 Mini Gen3 (Manufacturer Part ID: shelly1mg3) is a compact Wi-Fi relay switch designed for seamless integration into smart home systems. Manufactured by Shelly, this device enables remote control of electrical appliances and lighting through a smartphone app or home automation platforms. Its small size and versatile compatibility make it an ideal choice for retrofitting existing electrical installations with smart functionality.

Explore Projects Built with Shelly 1 mini gen3

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM: A project utilizing Shelly 1 mini gen3 in a practical application
Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM

This circuit features a Beelink MINI S12 N95 computer connected to a 7-inch display via HDMI for video output and two USB connections for power and touch screen functionality. An Arduino UNO is interfaced with a fingerprint scanner for biometric input. The Beelink MINI S12 N95 is powered by a PC power supply, which in turn is connected to a 240V power source. Additionally, an ESP32 CAM module is powered and programmed via a USB plug and an FTDI programmer, respectively, for wireless camera capabilities.

Open Project in Cirkit Designer
Image of Cellular-Enabled IoT Device with Real-Time Clock and Power Management: A project utilizing Shelly 1 mini gen3 in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management

This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Parameter Value
Power Supply 110-240V AC, 50/60Hz or 24-30V DC
Maximum Load 16A (Resistive Load)
Wireless Connectivity Wi-Fi 802.11 b/g/n, 2.4 GHz
Operating Temperature -20°C to +40°C
Dimensions 41mm x 36mm x 17mm
Power Consumption < 1W
Supported Protocols MQTT, HTTP, CoAP
App Compatibility Shelly Cloud App (iOS/Android)

Pin Configuration and Descriptions

The Shelly 1 Mini Gen3 has a simple terminal block for wiring. Below is the pin configuration:

Pin Label Description
L Line input for AC power (110-240V AC)
N Neutral input for AC power
O Output terminal for the connected load (e.g., light, fan)
I Input terminal for the switch (used for manual control)
SW Switch terminal for connecting a physical wall switch
+ Positive terminal for DC power (if using 24-30V DC instead of AC)
- Negative terminal for DC power (if using 24-30V DC instead of AC)

Usage Instructions

How to Use the Shelly 1 Mini Gen3 in a Circuit

  1. Power Connection:

    • For AC power: Connect the L and N terminals to the live and neutral wires of your AC power supply.
    • For DC power: Connect the + and - terminals to the positive and negative terminals of your DC power source (24-30V DC).
  2. Load Connection:

    • Connect the device or appliance you want to control to the O terminal.
    • Ensure the load does not exceed the maximum rating of 16A.
  3. Switch Connection (Optional):

    • If you want to use a physical wall switch, connect it to the SW and I terminals.
  4. Wi-Fi Setup:

    • Download the Shelly Cloud App from the iOS App Store or Google Play Store.
    • Power on the Shelly 1 Mini Gen3 and follow the app's instructions to connect it to your Wi-Fi network.
  5. Integration with Home Automation:

    • Use the app to configure the device for integration with platforms like Google Home, Amazon Alexa, or Home Assistant.
    • For advanced users, configure MQTT or HTTP protocols for custom automation.

Important Considerations and Best Practices

Example Code for Arduino Integration

The Shelly 1 Mini Gen3 can be controlled via HTTP requests. Below is an example of how to toggle the relay using an Arduino UNO with Wi-Fi capabilities (e.g., ESP8266 module):

#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

// Wi-Fi credentials
const char* ssid = "YourWiFiSSID";       // Replace with your Wi-Fi SSID
const char* password = "YourWiFiPassword"; // Replace with your Wi-Fi password

// Shelly 1 Mini Gen3 IP address
const char* shellyIP = "192.168.1.100";  // Replace with the Shelly's IP address

void setup() {
  Serial.begin(115200); // Initialize serial communication
  WiFi.begin(ssid, password); // Connect to Wi-Fi

  // Wait for Wi-Fi connection
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting to Wi-Fi...");
  }
  Serial.println("Connected to Wi-Fi");
}

void loop() {
  // Create an HTTP client
  HTTPClient http;

  // URL to toggle the relay
  String url = String("http://") + shellyIP + "/relay/0?turn=toggle";

  // Send the HTTP GET request
  http.begin(url);
  int httpCode = http.GET();

  // Check the response
  if (httpCode > 0) {
    Serial.println("Relay toggled successfully");
  } else {
    Serial.println("Failed to toggle relay");
  }

  http.end(); // Close the connection

  delay(5000); // Wait 5 seconds before toggling again
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Device Not Connecting to Wi-Fi:

    • Ensure the Wi-Fi network is 2.4 GHz, as the Shelly 1 Mini Gen3 does not support 5 GHz networks.
    • Check that the Wi-Fi credentials entered in the app are correct.
    • Move the device closer to the router during the initial setup.
  2. Relay Not Switching:

    • Verify that the load connected to the O terminal is within the maximum rating (16A).
    • Check the wiring to ensure all connections are secure and correct.
  3. Device Not Responding to HTTP Requests:

    • Confirm that the Shelly 1 Mini Gen3 is powered on and connected to the network.
    • Verify the IP address of the device in the HTTP request.
    • Ensure the device's firmware is up to date.
  4. Overheating:

    • Ensure the device is not installed in an enclosed or poorly ventilated space.
    • Check that the load does not exceed the maximum power rating.

FAQs

This concludes the documentation for the Shelly 1 Mini Gen3. For further assistance, refer to the official Shelly support resources.