1. Project function introduction
Based on the N32G430C8L7 ammeter, you can switch between fast charging and non-fast charging modes through the switch. Maximum support 10V 6.5A fast charging.
2. Project attributes
are based on the official routine project of the LiChuang Training Summer Camp
3. Open source agreement
GPL 3.0
4. Hardware part
1. After current sampling through INA199, output to the MCU N32G430C8L7 PA2 pin
2. After voltage division through a 91kΩ resistor, input the voltage of the 10kΩ resistor to the MCU N32G430C8L7 PA1 pin
3. The external crystal oscillator is not installed by default, reserved for later expansion.
4. The fast charge function can be turned off by turning off the two switches.
5. BL9342 performs DCDC step-down. When the input voltage is lower than 5V, it cannot provide enough voltage to power the internal circuit (can be solved by external power supply or replacing BL9342).
The screen is a 0.91-inch OLED screen.
5. The software part
is based on the official open source project routine changes of LiChuang
. 1. The screen pins need to be changed in the MonoScreen.c file lines 643, 652, GPIOB on line 16 and PIO_PIN_() on line 14/15. 13 and 15 lines of Softl2c.h, GPIOB and 14 and 16 lines of GPIO_PIN_()
2. If an external crystal oscillator is needed, change 128000000 to 8000000 in line 66 of system_n32g403.c
3. You can use Nations MCU Download Tool or Keil of National Technology for burning (TTL, ST-LINK J-LINK, etc. can be burned)
4. If you need to burn, press and hold BOOT and power on. (When burning with Nations MCU Download Tool, press and hold BOOT until the burning is completed)
6. BOM list
* 7. Competition LOGO verification



* 8. Demonstrate your project and record it into a video and upload it for
more details: https://www.bilibili.com/video/BV19P411G7QC?share_source=copy_web&vd_source=bfcf42a67724578a10652d8449d205d2