Skip to the content
PCBKitNew board
4 layers79.5 × 20 mmMatter usb switch, the printed circuit board in 3D

Matter usb switch

IvanVeloz/smart-usb-plug2

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

12

README

README.md

Smart USB Plug

Photo of the USB plug PCB assembly.

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.

Render of the USB plug PCB assembly.

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

Video clip of the USB switch turning a lamp on and off, being controlled by Apple Home on an iPhone.

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
QtyValueFootprintReferences
50RResistor_SMD:R_0402_1005MetricR6, R15, R16, R22, R23
5100nCapacitor_SMD:C_0402_1005MetricC6, C7, C9, C10, C13
410kResistor_SMD:R_0402_1005MetricR5, R8, R9, R10
412pCapacitor_SMD:C_0402_1005MetricC3, C4, C14, C15
433kResistor_SMD:R_0402_1005MetricR4, R11, R12, R19
33k3Resistor_SMD:R_0402_1005MetricR3, R14, R18
3TestPointTestPoint:TestPoint_Pad_D1.0mmTP1, TP2, TP3
210nCapacitor_SMD:C_0402_1005MetricC5, C12
210µF 25VCapacitor_SMD:C_0805_2012MetricC1, C2
21N4148WTDiode_SMD:D_SOD-523D1, D2
2499RResistor_SMD:R_0402_1005MetricR20, R21
24µ7Capacitor_SMD:C_0402_1005MetricC8, C11
2ESD9L3.3PCM_Diode_SMD_AKL:D_SOD-923D4, D6
2KMR231GLFSButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2SW1, SW2
2PESD5V0L1ULDiode_SMD:D_SOD-882D5, D7
10RResistor_SMD:R_1206_3216MetricR13
11.27mmConnector_PinHeader_1.27mm:PinHeader_2x03_P1.27mm_Vertical_SMDJ2
110MResistor_SMD:R_0402_1005MetricR2
110RResistor_SMD:R_0805_2012MetricR17
1154R 0.5%Resistor_SMD:R_0402_1005MetricR1
132.768kHzCrystal:Crystal_SMD_3215-2Pin_3.2x1.5mmY1
133m 1%Resistor_SMD:R_1206_3216MetricR7
148037-2200LibIvanVeloz:USB_48037-2200_MOLJ1
1AmberLED_SMD:LED_0402_1005MetricD8
1BSS138Package_TO_SOT_SMD:SOT-23Q1
1ESP32-C6-MINI-1-N4LibIvanVeloz:ESP32-C6-MINI-1U4
1GNDTestPoint:TestPoint_Pad_D1.0mmTP6
1ICALTestPoint:TestPoint_Pad_D1.0mmTP4
1INA193Package_TO_SOT_SMD:SOT-23-5U5
1MIC2544-2YM-TRPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU2
1TLV1117-33IDCYRPackage_TO_SOT_SMD:SOT-223-3_TabPin2U1
1TLV803SDBZRPackage_TO_SOT_SMD:SOT-23U6
1TS3USB30ERSWRPackage_DFN_QFN:UQFN-10_1.4x1.8mm_P0.4mmU3
1USB1055LibIvanVeloz:USB_USB1055_GCTJ3
1VCALTestPoint:TestPoint_Pad_D1.0mmTP5
1WS2812BLED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mmD3

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

  • 4 layers60 × 80 mmWisp, the printed circuit board in 3D

    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 mmFc f405 2026-10-16 1025, the printed circuit board in 3D

    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 mmBattery Monitor 1.2, the printed circuit board in 3D

    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 mmColorFaceBoard, the printed circuit board in 3D

    ColorFaceBoard

    y-suyama/ColorFaceBoard

    145 parts
  • 6 layers100 × 100 mmFlexLogic EVB, the printed circuit board in 3D

    FlexLogic EVB

    y-suyama/FlexLogic_EVB

    311 partsApache-2.0
  • 8 layers50 × 50 mmFlexLogicMini EVB, the printed circuit board in 3D

    FlexLogicMini EVB

    y-suyama/FlexLogicMini_EVB

    180 partsBSD-3-Clause
  • 8 layers50 × 50 mmFT2232H EVB, the printed circuit board in 3D

    FT2232H EVB

    y-suyama/FT2232H_EVB

    212 partsBSD-3-Clause