

Smart plug
3D printed Smart Plug
- Size
- 45 × 1 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 25
- Nets
- 21
- Pads
- 178
- Tracks, vias
- 157, 3
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 28 Dec 2018
- Updated
- 17 Feb 2023
Overview
Smart plug is an open-source printed circuit board by thingler, from the thingler/smart-plug repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 45 × 1 mm with 25 parts on 21 nets, routed with 157 tracks and 3 vias.
It is built around the BTA316B-600E,118, STGD5NB120SZT4 and TPS560430X3FDBV, with the FODM3012 and ABS10A among its other parts. Its parts include 8 resistors, 7 capacitors, 4 ICs, 2 transistors and 1 diode. It belongs with the home automation and IoT boards and the ESP32 and RISC-V boards of this library.
Main components
5BTA316B-600E,118
D2PAK1.5V 10mA 15mA 16A 600V D2PAK Thyristors (SCR)/Modules ROHSWeEn SemiconductorsThyristors (SCR)/ModulesSTGD5NB120SZT4
DPAKIGBT Transistors / ModulesSTMicroelectronicsTPS560430X3FDBV
SOT-23-6-40℃~+125℃@(TJ) 1 1.1MHz 3.3V 4V~36V 600mA Buck Buck Built-in Fixed Yes SOT-23-6 DC-DC Converters ROHSTexas InstrumentsDC-DC ConvertersFODM3012
SMD-4P-40℃~+100℃ 1 1.2V 10V/us 250V 3.75kV 300uA 4 70mA Random phase triggering TRIAC SMD-4P Triac, SCR Output Optoisolators ROHSonsemiTriac, SCR Output OptoisolatorsABS10A
SOPA-4-55℃~+150℃ 1.1V@1A 1A 1kV 35A 5uA@1kV Single-Phase Rectifier SOPA-4 Bridge Rectifiers ROHSDiodes IncorporatedBridge Rectifiers
README
README.mdThingler Smart Plug
Thingler Smart Plug is a 3D printed smart plug based on the popular ESP32 micro controller. This device is using the Thingler ESP32-PICO Module.
Software has been written to either connect to the AWS IOT service or it can use the Matter connectrivity standard.

Getting started
Requirements
- KiCad for the schematics
- Thingler ESP32-PICO Module
- Either Thingler Smart Plug Matter or Thinger Smart Plug ESP32 (AWS IoT) for the ESP32 module
- 3D design
Build
Disclamer
Thingler Smart Plug is provided for informational and educational purposes only. The creator of the project and its contributors are not responsible for any damages, injuries, or losses that may result from building, modifying, or using the smart plug. Users assume all risks associated with building and using the smart plug, and should take all necessary precautions to ensure their safety. By using the smart plug or any information provided in this project, users agree to hold harmless the creator and contributors of the project from any and all claims, damages, or expenses that may arise.
:warning: Warning: The Smart Plug is designed to work with high voltage AC power from the electrical outlet. This voltage can be dangerous and even deadly if not handled properly. Only experienced individuals with proper training and knowledge should attempt to build this smart plug. If you are not experienced or confident in your ability to work with high voltage electricity, do not attempt to build or use this device. Improper use or handling of the smart plug can result in serious injury or death. Always take appropriate safety measures and precautions when working with high voltage electricity.
:warning: Warning: The circuit does not provide galvanic isolation, which means that dangerous voltages from the AC power line can be present in the circuit. Do not attempt to connect any instruments or devices to the circuit while it is connected to the AC power line.
Components
The PCB can be ordered from any fabrication houses by providing the gerber files. Note that the copper weight should be 2 oz.
The following components has been used for Smart Plug:
| Ref | Qty | Manufacturer Part Number | Manufacturer | Description | Product Link |
|---|---|---|---|---|---|
| C1, C2, C3, C5, C6 | 5 | C1206C104M5RACTU | KEMET | Multilayer Ceramic Capacitors MLCC - SMD/SMT 50V 0.1uF X7R 1206 20% | Mouser |
| C4 | 1 | TPSE477K010R0050 | KYOCERA AVX | Tantalum Capacitors - Solid SMD 10V 470uF 10% 2917 ESR= 50 mOhm | Mouser |
| C7 | 1 | C3216X7S0J336M160AC | TDK | Multilayer Ceramic Capacitors MLCC - SMD/SMT 1206 6.3V 33uF X7S 20% T: 1.6mm | Mouser |
| D1 | 1 | ABS10A-13 | Diodes Incorporated | Bridge Rectifier | Mouser |
| F1 | 1 | 0679H1000-01 | Bel Fuse | Surface Mount Fuse 1A 350 VAC 72 VCD | Mouser |
| J1-1 | 1 | ZHNL | Europe Standard Plug Insert, can only be acquired in big quantities (or as samples) | Alibaba | |
| J1-2 | 1 | ZHNL | AMD European German socket, can only be acquired in big quantities (or as samples) | Zhnlen, Alibaba | |
| L1 | 1 | ME3220-123KLC | Coilcraft | Power Inductors - SMD 12uH Unshld 10% 840mA 470mOhms | Mouser |
| Q1 | 1 | STGD5NB120SZT4 | STMicroelectronics | IGBT Transistors N-Ch 1200 Volt 5 Amp | Mouser |
| Q2 | 1 | BTA316B-600E,118 | WeEn Semiconductors | Triacs Thyristor TRIAC 600V 150A 3-Pin (2+Tab) | Mouser |
| R1, R2 | 2 | CR1206AFX-2003EAS | Bourns | Thick Film Resistors - SMD ResA-AS 1206 200k 1% 250mW TC100 | Mouser |
| R3, R4 | 2 | KTR18EZPF5103 | ROHM Semiconductor | Thick Film Resistors - SMD 1206 510Kohm 1% High VoltageAEC-Q200 | Mouser |
| R5 | 1 | CRCW1206210RFKEA | Vishay / Dale | Thick Film Resistors - SMD 1/4watt 210ohms 1% | Mouser |
| R6 | 1 | CRCW120680K6FKEA | Vishay / Dale | Thick Film Resistors - SMD 1/4watt 80.6Kohms 1% | Mouser |
| R7 | 1 | CR1206-FX-1242ELF | Bourns | Thick Film Resistors - SMD 12.4K 1% | Mouser |
| R8 | 1 | ERJ-8ENF1800V | Panasonic | Thick Film Resistors 1206 180ohms 1% AEC-Q200 | Mouser |
| U1 | 1 | THINGLER-ESP32-PICO | Thingler | ESP32 module | GitHub |
| U2 | 1 | SR086SG-G | Microchip Technology / Atmel | Switching Voltage Regulators 3.3V Adjust Off-Line Switching Regulator | Mouser |
| U3 | 1 | FODM3012R2V-NF098 | onsemi / Fairchild | Triac & SCR Output Optocouplers MFP, 250V Random Phase Triac Output | Mouser |
| U4 | 1 | TPS560430X3FDBVR | Texas Instruments | Voltage Regulators - Switching Regulators SIMPLE SWITCHER 36-V, 600-mA Buck Regulator With High-Efficiency Sleep Mode 6-SOT-23 -40 to 125 | Mouser |
Printing the 3D design
The smart plug case is designed to be printed without the need for any support material. We recommend using PETG filament as it is a strong and durable material suitable for this application. Please note that in addition to the printed case, you will also need the following components to assemble the smart plug:
- 2 x M2 nuts
- 2 x M2 * 8 screws
License
Released under GNU/GPL Version 3
Parts
25| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100n | Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder | C1, C2, C3, C5, C6 |
| 2 | 200k | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R1, R2 |
| 2 | 510k | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R3, R4 |
| 1 | 113k | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R6 |
| 1 | 12.4k | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R7 |
| 1 | 180 | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R8 |
| 1 | 210 | Resistor_SMD:R_1206_3216Metric_Pad1.42x1.75mm_HandSolder | R5 |
| 1 | 33u | Capacitor_SMD:C_1206_3216Metric_Pad1.42x1.75mm_HandSolder | C7 |
| 1 | 470u | Capacitor_Tantalum_SMD:CP_EIA-7343-15_Kemet-W | C4 |
| 1 | ABS10A | smart-plug:ABS10A | D1 |
| 1 | BTA316B-600E | smart-plug:to-263-2 | Q2 |
| 1 | FODM3012 | smart-plug:FODM3012 | U3 |
| 1 | Fuse 1A | smart-plug:fuse-2410 | F1 |
| 1 | ME3220 12u | smart-plug:ME3220 | L1 |
| 1 | SR086 | Package_SO:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.29x3mm | U2 |
| 1 | STGD5NB120SZ | Package_TO_SOT_SMD:TO-252-2 | Q1 |
| 1 | Screw_Terminal_01x04 | smart-plug:3d_power_connector | J1 |
| 1 | THINGLER-ESP32-PICO | smart-plug:Thingler-esp32-vertical | U1 |
| 1 | TPS560430X3F | Package_TO_SOT_SMD:SOT-23-6 | U4 |
Questions
How big is the Smart plug PCB?
It measures 45 × 1 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Smart plug use?
25 parts, built around the BTA316B-600E,118, STGD5NB120SZT4, TPS560430X3FDBV and FODM3012. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Smart plug KiCad files?
From the thingler/smart-plug repository on GitHub, at the commit this page was made from: the board is smart-plug.kicad_pcb and its schematic smart-plug.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Smart plug design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).
Similar boards
- 2 layers220 × 22 mm

- 2 layers159.5 × 30 mm

Type f
google/mozc-devices
Circuit diagrams and firmware source code for Gboard DIY keyboards
25 parts3kApache-2.0 - 2 layers113.5 × 95.1 mm

Sweep high
davidphilipbarr/Sweep
Sweep - a small promicro based keyboard inspired by the Ferris.
25 parts2.1k - 2 layers75 × 30 mm

- 2 layers58.4 × 114.3 mm

PicoPedal
hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!
25 parts915 - 2 layers54 × 15 mm

Xyp gpib
xyphro/UsbGpib
Versatile, cheap and portable USB to GPIB converter (USBTMC class based)
25 parts690MIT - 2 layers50 × 76 mm

- 2 layers237.5 × 102.9 mm

Storage
jes/scamp-cpu
A homebrew 16-bit CPU with a homebrew Unix-like-ish operating system.
25 parts301Unlicense