

Matter usb switch
A smart plug for USB with energy measurement and Matter over Thread support
- Size
- 79.5 × 20 mm
- Copper layers
- 4
- Thickness
- 1.6 mm
- Parts
- 65
- Nets
- 53
- Pads
- 230
- Tracks, vias
- 460, 187
- Pours
- 32
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 12 Oct 2025
- Updated
- 28 Feb 2026
Overview
Matter usb switch is an open-source printed circuit board by IvanVeloz, from the IvanVeloz/smart-usb-plug repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 79.5 × 20 mm with 65 parts on 53 nets, routed with 460 tracks and 187 vias.
It is built around the ESP32-C6-MINI-1-N4, MIC2544-2YM and TLV1117-33IDCYRG3, with the TLV803SDBZR, TS3USB30ERSWR-MS and RC0402JR-070RL among its other parts. Its parts include 23 resistors, 15 capacitors, 8 diodes, 6 ICs and 3 connectors. It belongs with the home automation and IoT and sensors and measurement boards and the ESP32 and RISC-V boards of this library.
Main components
12ESP32-C6-MINI-1-N4
SMD-53P-106dBm -40℃~+85℃ 2.4GHz 21dBm 354mA 3V~3.6V 71mA ESP32-C6FH4 Integrated Bluetooth function、Integrated Zigbee function On-board PCB Antenna UART、SPI、I2C、GPIO、I2S SMD-53P WiFi Modules ROHSEspressif SystemsWiFi ModulesMIC2544-2YM
SOIC-8-40℃~+85℃ 1 1.5A 2.7V~5.5V 80mΩ Active Low High Side Switch 软启动、集成电荷泵、Overcurrent Protection、Over temperature protection、锁存保护、Short-Circuit Protection、反向电流阻断 SOIC-8 Power Distribution Switches ROHSMicrochip TechnologyPower Distribution SwitchesTLV1117-33IDCYRG3
SOT-223-4-40℃~+125℃@(Tj) 1 1.3V@(800mA) 15V 3.3V 5mA 75dB@(120Hz) 800mA Fixed Over Current Protection、Thermal shutdown Positive SOT-223-4 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSTexas InstrumentsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsTLV803SDBZR
SOT-23-40℃~+125℃@(Tj) 1 1.1V~6V 2.93V 200ms 9uA Active Low No No Open Drain Voltage Monitor SOT-23 Supervisor and Reset ICs ROHSTexas InstrumentsSupervisor And Reset ICsTS3USB30ERSWR-MS
UQFN-10(1.4x1.8)UQFN-10(1.4x1.8) Analog Switches, Multiplexers ROHSMSKSEMIAnalog Switches, MultiplexersRC0402JR-070RL
UncategorisedUnknown makerRC0402FR-0710KL
UncategorisedUnknown maker1N4148WT
SOD-523-55℃~+150℃ 1.25V@150mA 100V 150mA 150mW 1uA@75V 2A 4ns Independent SOD-523 Switching Diodes ROHShongjiachengSwitching DiodesPESD9L3.3ST5G
SOD-923(0402)-55℃~+125℃ 0.5pF 14V 3.3V 4A@8/20us 5.8V 60W@8/20us 80nA IEC 61000-4-2、IEC 61000-4-5 SOD-923(0402) ESD and Surge Protection (TVS/ESD) ROHSTECH PUBLICESD And Surge Protection (TVS/ESD)KMR231GLFS
SMD,4.6x2.8mm-40℃~+85℃ 1.9mm 2.8mm 32V 3N 4.6mm 50mA Gull Wing Round Button SPST Surface Mount,Vertical SMD,4.6x2.8mm Tactile Switches ROHSC&KTactile SwitchesPESD5V0L1UL
SOD-8821 10nA 12V 25pF 3.5A@8/20us 42W@8/20us 5V 6.8V ESD IEC 61000-4-2 Unidirectional SOD-882 ESD and Surge Protection (TVS/ESD) ROHSUMWESD And Surge Protection (TVS/ESD)20021121-00006C4LF
SMD,P=1.27mm1.27mm 1.27mm 2 2x3P 3.05mm 6P Black Copper alloy Pin Header Surface Mount,Vertical With post SMD,P=1.27mm Pin Headers ROHSAmphenolPin Headers
README
README.mdSmart USB Plug
Motivation
Smart plugs are ubiquitous. Smart plugs with energy measurement are a little rarer. With Matter, evern rarer. This project started out of my frustrations and ever-niching demands. Let me explain.
I recently got back into the aquarium hobby. In this hobby, nano tanks are in, and with that comes nano equipment. I was delighted to find the equipment needed the tank is USB A. So I set up my aquarium, my plants, added some snails, some shrimp. I then went to put the light on a timer. But timers are so 2006. We're in 2026 and aquarists are using smart plugs. Ugh.
Where do I start... Ideally I'd want smart plugs with energy monitoring so I can check on the equipment. Aquariums are life support systems for fish. A filter or a heater fails and the fish are dead. The plants need light on a schedule.
So I spent way too much time on the internet looking for the smart plug I wanted, to no avail. I settled for some Zigbee 120V smart plugs. They're nice, but they are inadequate for the task.
I tried to make the traditional 120V smart plugs work, but I found a few issues:
- They are bulky. This 1.6 gallon shrimp tank needed a whole 6 outlet power strip because the plugs block 2 outlets each. The original power brick is the size of an iPhone's and blocks nothing.
- They are not sensitive enough. The aquarium draws 3W total. The smart plugs struggled with this: their resolution is too low to be useful. One of them jumped between 0W and 1W and I'm pretty sure its average is meaningless.
- They are innefficient. In terms of energy, space, and conceptually. You need one USB brick per smart plug. I rest my case.
I went to look for USB switches and found only one option on Amazon. It didn't have energy monitoring. So here we are, I designed my own.
Overview
This is a smart plug that uses USB A instead of the usual 120/240V mains plugs. Crucially, it has energy monitoring too.

Features
- Communication over Matter, Thread, Zigbee, WiFi, and Bluetooth. So far Thread and WiFi have been tested with great results.
- Can switch currents up to 1.5A. It also has overcurrent protection.
- Measures current with sub-milliamp resolution and voltage with millivolt resolution.
- USB data can be passed through the device or disconnected.
- The microcontroller, an ESP32-C6, can be programmed and even debugged over the USB port. Easy hacking.
- WiFi is 802.11ax. I don't want any more 802.11n 2.4GHz pollution on my WLAN. It is time to move on.
- Has a NeoPixel, because everything gets a NeoPixel now.
- It's flat and narrow enough that you can stack multiple of them on most hubs and charging stations.
Demo

Building your own
There are production files on the production directory ready to be added to JLCPCB. Just upload the zip file to their service. I also had success with OSHPark, though I did not have success hand-soldering the ESP32 module, so beware. If you plan to hand-solder a stencil is a must, and a hot plate or reflow oven are highly recommended.
Regarding the firmware, I am using HomeAssistant and ESPHome for the moment. ESPHome made the bringup so so easy and enjoyable. I was very impressed that I got Thread working as well as it has. It's been rock solid and development took only a couple of hours. You can find a copy of my ESPHome template here.
Future work
I would like to write a Matter firmware for this hardware. The end product would be something that behaves like a commercial product from a UX point of view. Honesly, ESPHome is 90% of the way there (if you have Home Assistant). But I would still like to write this Matter firmware for personal development. Also I feel Matter is a lot more approachable to the casual user (especially Matter over WiFi).
A parallel goal is trying for a Made for ESPHome certification. It looks attainable and it's something I feel would bring value to enthusiasts.
Parts
65| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 0R | Resistor_SMD:R_0402_1005Metric | R6, R15, R16, R22, R23 |
| 5 | 100n | Capacitor_SMD:C_0402_1005Metric | C6, C7, C9, C10, C13 |
| 4 | 10k | Resistor_SMD:R_0402_1005Metric | R5, R8, R9, R10 |
| 4 | 12p | Capacitor_SMD:C_0402_1005Metric | C3, C4, C14, C15 |
| 4 | 33k | Resistor_SMD:R_0402_1005Metric | R4, R11, R12, R19 |
| 3 | 3k3 | Resistor_SMD:R_0402_1005Metric | R3, R14, R18 |
| 3 | TestPoint | TestPoint:TestPoint_Pad_D1.0mm | TP1, TP2, TP3 |
| 2 | 10n | Capacitor_SMD:C_0402_1005Metric | C5, C12 |
| 2 | 10µF 25V | Capacitor_SMD:C_0805_2012Metric | C1, C2 |
| 2 | 1N4148WT | Diode_SMD:D_SOD-523 | D1, D2 |
| 2 | 499R | Resistor_SMD:R_0402_1005Metric | R20, R21 |
| 2 | 4µ7 | Capacitor_SMD:C_0402_1005Metric | C8, C11 |
| 2 | ESD9L3.3 | PCM_Diode_SMD_AKL:D_SOD-923 | D4, D6 |
| 2 | KMR231GLFS | Button_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2 | SW1, SW2 |
| 2 | PESD5V0L1UL | Diode_SMD:D_SOD-882 | D5, D7 |
| 1 | 0R | Resistor_SMD:R_1206_3216Metric | R13 |
| 1 | 1.27mm | Connector_PinHeader_1.27mm:PinHeader_2x03_P1.27mm_Vertical_SMD | J2 |
| 1 | 10M | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 10R | Resistor_SMD:R_0805_2012Metric | R17 |
| 1 | 154R 0.5% | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | 32.768kHz | Crystal:Crystal_SMD_3215-2Pin_3.2x1.5mm | Y1 |
| 1 | 33m 1% | Resistor_SMD:R_1206_3216Metric | R7 |
| 1 | 48037-2200 | LibIvanVeloz:USB_48037-2200_MOL | J1 |
| 1 | Amber | LED_SMD:LED_0402_1005Metric | D8 |
| 1 | BSS138 | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | ESP32-C6-MINI-1-N4 | LibIvanVeloz:ESP32-C6-MINI-1 | U4 |
| 1 | GND | TestPoint:TestPoint_Pad_D1.0mm | TP6 |
| 1 | ICAL | TestPoint:TestPoint_Pad_D1.0mm | TP4 |
| 1 | INA193 | Package_TO_SOT_SMD:SOT-23-5 | U5 |
| 1 | MIC2544-2YM-TR | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U2 |
| 1 | TLV1117-33IDCYR | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | TLV803SDBZR | Package_TO_SOT_SMD:SOT-23 | U6 |
| 1 | TS3USB30ERSWR | Package_DFN_QFN:UQFN-10_1.4x1.8mm_P0.4mm | U3 |
| 1 | USB1055 | LibIvanVeloz:USB_USB1055_GCT | J3 |
| 1 | VCAL | TestPoint:TestPoint_Pad_D1.0mm | TP5 |
| 1 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D3 |
Questions
How big is the Matter usb switch PCB?
It measures 79.5 × 20 mm and has 4 copper layers, 1.6 mm thick.
What parts does the Matter usb switch use?
65 parts, built around the ESP32-C6-MINI-1-N4, MIC2544-2YM, TLV1117-33IDCYRG3 and TLV803SDBZR. 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 Matter usb switch KiCad files?
From the IvanVeloz/smart-usb-plug repository on GitHub, at the commit this page was made from: the board is matter-usb-switch.kicad_pcb and its schematic matter-usb-switch.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Matter usb switch 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 layers98.5 × 30 mm

- 4 layers60 × 80 mm

Wisp
huulanka/wisp
Open-source ESP32 room climate monitor — CO2, VOC, humidity, temperature and light sensing with custom PCB, MQTT/HomeKit integration, and OTA firmware updates. Full hardware + software, from schematic to BOM.
91 partsMIT - 6 layers37 × 37 mm

Fc f405 2026-10-16 1025
ara-mkr/f405-flight-controller
This is a flight controller I designed as a side project. It was fun and pretty challenging, and I'm planning to build a drone with it at some point!
122 partsCERN-OHL-P-2.0 - 4 layers85.3 × 131.6 mm

Battery Monitor 1.2
team-mountaineers-urc-2023/electronics
Block diagrams, schematics, and PCB files related to the electronics subteam
167 parts2BSD-3-Clause - 2 layers100 × 100 mm

- 6 layers100 × 100 mm

- 8 layers50 × 50 mm

- 8 layers50 × 50 mm
