A USBMeter powered by CH32V003 and INA219.
- hardware: All files required for PCB production and soldering
- Gerber
- Schematic
- BOM
- Interactive Solder Helper
- firmware: Sources of USBMeter firmware
- Project managed by PlatformIO
- Based on platform-ch32v
- 3D_model: 3D models required for assembly
- STL file of the device enclosure
- JLC production file for the front panel
USBMeter's firmware project is managed by PlatformIO, please ensure it was installed on your system.
Install on macOS
brew install platformio
Compile and Upload Firmware
cd firmware
pio run --target upload
You must connect WCH-LinkE to USBMeter first.
For a complete DIY tutorial, please refer to the following series of articles.
Note: These articles are written in Chinese.
- 全开源!使用 7 毛钱的单片机 DIY USB 电流表教程,入坑硬件设计、固件开发、外观建模
- DIY USB 电流表(1):元件选型和原理图绘制
- DIY USB 电流表(2):PCB 布局布线
- DIY USB 电流表(3):PCB 免费打样详解
- DIY USB 电流表(4):PCB 焊接与调试
- DIY USB 电流表(5):使用 VSCode PlatformIO 搭建固件开发环境
- DIY USB 电流表(6):点个屏,使用 I2C 驱动 0.96 寸 OLED
- DIY USB 电流表(7):读取和显示 INA219 电流电压数据
- DIY USB 电流表(8):检测按键和绘制功率曲线
- DIY USB 电流表番外篇:使用 PlatformIO Inspect 分析和优化固件体积
- DIY USB 电流表(9):Flash 模拟 EEPROM 存储累计电量
- DIY USB 电流表(10):完结篇,外壳和面板设计
- CH32V003-GameConsole
- INA219_WE
MIT License