UsbMeter
TheBadZhang·usbMeter·hardware/usbMeter0/usbMeter.kicad_pcb
About the UsbMeter PCB
UsbMeter is an open source STM32 PCB design by TheBadZhang, published on GitHub. It is a 4-layer board measuring 17.5 × 50 mm, with 68 components from 35 distinct parts.
Its main chip is the STM32G031G8Ux, from the STM32 family. Other key parts include the LIS2HH12, TPD4E05U06DQA, SHT4x, W25Q32JVZP and W25Q128JVS. By type, the board carries 26 capacitors, 14 ICs, 14 resistors, 5 diodes, 3 connectors and 3 switches.
From the project
Type-A USB 双向电流电压表
这个版本是最初的版本,具有我能够塞入的所有功能,结果发现嘉立创免费打样只支持0.3mm的孔,导致没有办法低价进行生产,随放弃,删除大量功能,只保留了最基本的功能,做出了 V1.0.0 版本

Main components on the UsbMeter
UsbMeter bill of materials (BOM)
68 components, 35 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | LIS2HH12 | LGA-12_2x2mm_P0.5mm | U1 |
| 1 | STM32G031G8Ux | QFN-28_4x4mm_P0.5mm | U2 |
| 2 | TPD4E05U06DQA | USON-10_2.5x1.0mm_P0.5mm | U3, U8 |
| 1 | SHT4x | Sensirion_DFN-4_1.5x1.5mm_P0.8mm_SHT4x_NoCentralPad | U4 |
| 1 | W25Q32JVZP | WSON-8-1EP_6x5mm_P1.27mm_EP3.4x4mm | U5 |
| 1 | W25Q128JVS | SOIC-8_5.23x5.23mm_P1.27mm | U6 |
| 1 | CH340E | MSOP-10_3x3mm_P0.5mm | U7 |
| 1 | INA228 | VSSOP-10_3x3mm_P0.5mm | U9 |
| 2 | LP5912-3.3DRV | WSON-6-1EP_2x2mm_P0.65mm_EP1x1.6mm_ThermalVias | U10, U14 |
| 1 | CH217K | TSOT-23-6 | U11 |
| 1 | ~ | iic_oled_12864_ssd1312_2 | U12 |
| 1 | MAX9814 | DFN-14-1EP_3x3mm_P0.4mm_EP1.78x2.35mm | U13 |
| 1 | USB_A | USB_A_CNCTech_1001-011-01101_Horizontal | J1 |
| 1 | USB_A | C2763021 | J2 |
| 1 | USB_C_Receptacle_USB2.0_16P | USB_C_Receptacle_GCT_USB4105-xx-A_16P_TopMnt_Horizontal | J3 |
| 1 | Microphone_Condenser | MIC4015P_2 | MK1 |
| 3 | SW_Push | KEY-SMD_4P-L4.2-W3.4-P2.15-LS4.5-TL | SW3, SW4, SW5 |
| 1 | LED | LED_0603_1608Metric | D1 |
| 4 | WS2812B-2020 | ws2812-1010 | D2, D3, D4, D5 |
| 2 | MI0603K300R-10 FerriteBead_0603_1.5A Laird | L_0603_1608Metric | L1, L2 |
Show 15 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 4 | 0.1uF | C_0402_1005Metric | C1, C2, C9, C13 |
| 7 | 100nF | C_0402_1005Metric | C3, C15, C16, C21, C22, C24, C25 |
| 3 | 10uF | C_0402_1005Metric | C4, C19, C23 |
| 4 | 4.7uF | C_0402_1005Metric | C5, C10, C12, C20 |
| 1 | 10uF | C_0603_1608Metric | C6 |
| 3 | 1uF | C_0402_1005Metric | C7, C8, C14 |
| 3 | 2.2uF | C_0402_1005Metric | C11, C18, C26 |
| 1 | 470nF | C_0402_1005Metric | C17 |
| 6 | 5.1k | R_0402_1005Metric | R1, R2, R6, R12, R13, R14 |
| 2 | 68R | R_0402_1005Metric | R3, R5 |
| 1 | 20mR | R_1206_3216Metric | R4 |
| 2 | 100k | R_0402_1005Metric | R7, R11 |
| 1 | 560K | R_0402_1005Metric | R8 |
| 1 | 150k | R_0402_1005Metric | R9 |
| 1 | 2.2k | R_0402_1005Metric | R10 |
UsbMeter design files
The KiCad project lives in the TheBadZhang/usbMeter repository on GitHub; these links point at the commit this page was built from.
UsbMeter: common questions
What microcontroller does the UsbMeter use?
The UsbMeter is built around the STM32G031G8Ux, from the STM32 family.
How big is the UsbMeter PCB?
The UsbMeter measures 17.5 × 50 mm, has 4 copper layers and is 1.6 mm thick.
How many components are on the UsbMeter?
68 components, from 35 distinct parts. The full bill of materials is listed on this page.
Where can I download the UsbMeter design files?
From the TheBadZhang/usbMeter repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the UsbMeter design in my own project?
The repository has no license, so all rights stay with TheBadZhang. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the UsbMeter without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug STM32 firmware against it before you order a PCB.
More boards in usbMeter
Similar boards
STM32
LumenPnP Motherboard
opulo-inc
149 × 95 mm296 parts4LCC-BY-SA-4.03.7kSTM32
Type g
google
169 × 30 mm24 parts2LApache-2.02.9kSTM32
Main panel
google
234 × 84 mm26 parts4LApache-2.02.9kSTM32
Base
google
52.3 × 52.3 mm36 parts2LApache-2.02.9kSTM32
Type a
google
150 × 30 mm14 parts2LApache-2.02.9kSTM32
Type c
google
188 × 30 mm17 parts2LApache-2.02.9k