Note: * is a required field,
please fill it in during the registration stage↓
* 1. Project Introduction
USB power meter, real-time display of current, voltage and power, monitor USB output.
* 2. Project attributes
This project is a replica of the official fast charging version case
* 3. Hardware part Main
control:
N32G430C8L7 microcontroller product uses a high-performance 32-bit ARM Cortex™-M4F core, integrated floating-point unit (FPU) and digital signal processing (DSP), and supports parallel computing instructions. The highest operating frequency is 128MHz, integrated up to 64KB on-chip encrypted storage Flash, and supports multi-user partition permission management, and supports 16KB embedded SRAM. It has a built-in internal high-speed AHB bus, two low-speed peripheral clock buses APB and bus matrix, supports 40 reusable I/Os, provides rich high-performance analog interfaces, including 1 12-bit 4.7Msps ADC, supports 16 external input channels and 3 internal channels, and provides a variety of digital communication interfaces, including 4 U(S)ARTs, 2 I2Cs, 2 SPI/I2S, and 1 CAN 2.0B communication interface. N32G430C8L7 microcontroller products can work stably in the temperature range of -40°C to +105°C, with a supply voltage of 2.4V to 3.6V, and provide multiple power consumption modes.
Current sampling circuit:
Use INA199 to sample low-end current
Voltage sampling circuit:
Use two high-precision resistors for voltage division, and send the measured voltage to ADC
Buck circuit:
Refer to the official case and use BL9342. After checking the data sheet, it is found that the chip can only stably output 3.3V when the input reaches 6V, and the input voltage of the EN pin must not be higher than 6V. It can stably drive OLED when it is above 5.2V. The output is only 2.2V when the input is 5V, and the chip needs to be replaced.
*4. Competition LOGO verification