Skip to the content
PCBKitNew board
2 layers50.8 × 18.1 mmSmart usb switch, the printed circuit board in 3D

An ESP8266-based smart USB type-A switch

Size
50.8 × 18.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
10
Nets
28
Pads
60
Tracks, vias
116, 3
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
10 Dec 2019
Updated
18 Sep 2020

Overview

Smart usb switch is an open-source printed circuit board by sowbug, from the sowbug/smart-usb-switch repository on GitHub. It is a 2-layer board of 50.8 × 18.1 mm with 10 parts on 28 nets, routed with 116 tracks and 3 vias.

It is built around the ESP-12F and MIC5219-3.3YM5-TR. Its parts include 4 connectors, 2 ICs, 2 switches, 1 resistor and 1 transistor. It belongs with the ESP8266 boards of this library.

Main components

2

README

README.md

smart-usb-switch

An inline USB type-A power switch that's controlled by an ESP8266 (ESP-12F) on GPIO4. You can load this device with any firmware you want, including for example ESPHome.

Version 2 has two buttons on the back. If you build this board yourself, you can put 0, 1, or 2 of the button components in place.

The PCB could probably be a little smaller, but the ESP-12F takes up a lot of real estate.

How to program

These instructions are for ESPHome, but since it's just an ESP8266, you can do anything you want instead.

Soldering jumper pins on the terminal points is optional. Get ESPHome ready with a .yaml file like the one included in this project. Connect the PROG terminals to each other. Using a USB-TTL adapter that is configured to use 3.3-volt logic levels, connect GND, 3V3, TX, RX (in other words, match up the labels on the USB-TTL adapter with the ones on the smart switch, but connect RX to TXD and TX to RXD). Then build the ESPHome image and upload with esphome your-config.yaml run or however else you use ESPHome.

Bill of Materials

See smart-usb-switch.csv.

Parts

10
QtyValueFootprintReferences
2SW_PushButton_Switch_SMD:SW_SPST_SKQG_WithStemSW1, SW2
1Conn_01x02Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ4
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1DMN6140L-13Package_TO_SOT_SMD:SOT-23Q1
1ESP-12FRF_Module:ESP-12EU1
1MIC5219-3.3YM5-TRPackage_TO_SOT_SMD:SOT-23-5U2
1R10KResistor_SMD:R_0805_2012MetricR1
1USB_AConnector_USB:USB_A_Stewart_SS-52100-001_HorizontalJ2
1USB_AConnector_USB:USB_A_CNCTech_1001-011-01101_HorizontalJ1

Questions

How big is the Smart usb switch PCB?

It measures 50.8 × 18.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Smart usb switch use?

10 parts, built around the ESP-12F and MIC5219-3.3YM5-TR. 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 usb switch KiCad files?

From the sowbug/smart-usb-switch repository on GitHub, at the commit this page was made from: the board is smart-usb-switch.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Smart usb switch design in my own project?

Its repository states no licence, so its author keeps all rights: ask sowbug before reusing the design.

Similar boards

  • 2 layers51 × 21 mmMitayi Pico D1, the printed circuit board in 3D

    Mitayi Pico D1

    CIRCUITSTATE/Mitayi-Pico-D1

    Open-Source RP2040 Microcontroller Development Board

    75 parts36MIT
  • 2 layers34 × 96 mmGem solder, the printed circuit board in 3D

    Gem solder

    arlenko/gem-solder

    💎 DIY soldering iron controller

    114 parts12CERN-OHL-S-2.0
  • 2 layers145 × 27 mmLed array driver, the printed circuit board in 3D

    Led array driver

    themainframe/led-matrix-driver-pcb

    PCB CAM files for my LED Matrix Driver Project based on ESP32

    93 parts2
  • 4 layers54.6 × 54.6 mmECP5, the printed circuit board in 3D

    ECP5

    gildobjanschi/ECP5_BGA381_RISCV_EXT

    Extension board for ECP5_BGA381_RISCV

    78 parts1MIT
  • 2 layers140 × 64.8 mmConsole hardware, the printed circuit board in 3D

    Console hardware

    ECE411-Practicum-Group11/ECE411-PracticumProject-G11

    Fall 2022 ECE 411 Practicum Project for Group 11

    68 partsCC0-1.0
  • 2 layers24.7 × 22.7 mmIMU Breakout, the printed circuit board in 3D

    IMU Breakout

    irclark2000/IMU-Breakout

    Breakout board for LSM6DSV16XTR

    14 partsMIT
  • 2 layers106.3 × 105.3 mmESPDrone OG, the printed circuit board in 3D

    ESPDrone OG

    judsonantu/KICADprojects

    This repo hols all the opensource projects i work with

    116 parts
  • 4 layers55 × 85 mmPokodoro, the printed circuit board in 3D

    Pokodoro

    justinjchae/poko

    Poko: a phone-free MagSafe companion. nRF52840 + Zephyr, round display, haptic ring, voice memos, iPhone app, parametric CAD, KiCad.

    52 parts