Note: This article references the open-source project "Current Sensing USB HUB Based on CH334H and AT32F403A - JLCPCB EDA Open Source Hardware Platform (oshwhub.com)". Circuit and UI designs were implemented based on this, and the main controller was changed to a high-capacity STM32G0B0RET6 with 512k Flash and 144k RAM, priced at only 11 RMB on Taobao.
Images show
: Front


: Back:

File transfer speed:
Project Description :
This project uses a CH334H QFN packaged USB 2.0 HUB chip, supporting a single-LED mode, as shown by the blue LED STA in the lower right corner of the image, which is constantly lit during operation. Four INA199A2 current sensing amplifiers are used to detect the current of the four USB ports. Four TPS2069 power electronic switches are used for overcurrent protection when the USB port current exceeds 1.5A. The main control chip is an STM32G0B0RET6, which performs current and voltage sampling and refreshes the data onto the screen.
Hardware Description:
This project's verification and development were conducted in version V1.0.0. The screen was found to be slightly off-left, and was moved in the new project's version V1.0.1. Other aspects remained unchanged. This version is unverified but should be fine. The KEY0 and KEY1 buttons are slightly awkward to use; their positions can be adjusted.
Software Description:
This project uses IAR+STM32CubeMX for development, and the UI uses LVGL.
Programming:
This project has four pin headers in the upper right corner: SWC, SWD, GND, and UART1_TX. Downloading the program only requires connecting the first three to the programmer. This project provides the program source code and a hex file, which you can choose. The hex file can be programmed using STM32Programmer or STM32 ST-LINK Utility software.
Acrylic Shell:
This project only includes the top and bottom acrylic shells. These can be ordered directly from the LCSC online store.