Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

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

Image of Shelly 1 mini gen3
Cirkit Designer LogoDesign 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!
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
Image of godmode: A project utilizing Shelly 1 mini gen3 in a practical application
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Beelink Mini S12 N95 and Arduino UNO Based Fingerprint Authentication System with ESP32 CAM
Image of design 3: A project utilizing Shelly 1 mini gen3 in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
Image of Bedside RGB and Lamp: A project utilizing Shelly 1 mini gen3 in a practical application
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
Image of LRCM PHASE 2 BASIC: A project utilizing Shelly 1 mini gen3 in a practical application
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.
Cirkit Designer LogoOpen Project in Cirkit Designer

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 godmode: A project utilizing Shelly 1 mini gen3 in a practical application
I2C-Controlled OLED Display with External EEPROM and Interactive Pushbuttons
This is a microcontroller-based interactive device featuring a Wemos D1 Mini, an OLED display, external EEPROM, and an I/O expander. It includes user input buttons and status LEDs, with potential MIDI interface capabilities.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of design 3: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Bedside RGB and Lamp: A project utilizing Shelly 1 mini gen3 in a practical application
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LRCM PHASE 2 BASIC: 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.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Remote control of lights, fans, and other electrical devices.
  • Integration with smart home ecosystems such as Google Home, Amazon Alexa, and Home Assistant.
  • Automation of appliances based on schedules or triggers.
  • Retrofitting traditional switches for smart functionality without replacing them.

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

  • Ensure the device is installed in a well-ventilated area to prevent overheating.
  • Always turn off the power supply before wiring the device to avoid electric shock.
  • Use appropriate wire gauges and connectors to handle the load current safely.
  • If using the device with a DC power supply, ensure the voltage is within the specified range (24-30V DC).
  • Regularly update the firmware via the Shelly Cloud App to ensure optimal performance and security.

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

  • Can I use the Shelly 1 Mini Gen3 with a 3-way switch? Yes, the device supports multi-way switch configurations. Refer to the Shelly Cloud App for wiring diagrams.

  • Does the Shelly 1 Mini Gen3 support dimming? No, this model is a relay switch and does not support dimming functionality.

  • Can I control the device without an internet connection? Yes, the Shelly 1 Mini Gen3 can be controlled locally via its IP address using HTTP or MQTT protocols.

  • Is the device compatible with Apple HomeKit? The Shelly 1 Mini Gen3 is not natively compatible with HomeKit, but it can be integrated using third-party tools like Homebridge.

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