9WrR1r1D

#The7thLiChuangElectricityCompetition#USB power meter

 
Overview


1. Introduction to project functions
        USB power meter measures voltage, current and power during USB charging
 
* 2. Project attributes
        LiChuang training camp project
 
* 3. Open source agreement
        GPL3.0
 
* 4. Hardware part
        EDA: LiChuang EDA professional version;
 
        Main control: N32G430K8L7, C8L7 was not selected. The project mainly requires 2 AD ports. The official schematic library is not available for drawing the circuit, so I drew it as if I had learned the professional version of the schematic library. I drew the symbols myself. There are standard parts in the LQFP32 library. In order to facilitate manual welding, the pad distance was slightly adjusted;
 
        Current detection: INA199A1 current sensing amplifier. According to the data sheet, the x1 magnification is 50 times. The package of this component is a bit small. It was found that the official package has a smaller pad, so hot air welding is more suitable. Soldering with a soldering iron will be much more difficult;
       
        Voltage detection: series voltage division, so I won’t explain it in detail;
         
     Voltage conversion: 5v->3.3V The picture is drawn according to the official one. No new components were bought. The LDO bought with the coupon before was used. SK6014AS5-33, if you use other SOT-23-6 LDO, it should not be a big problem. Please confirm whether the pin functions are consistent.
 
      Display: The 0.91 OLED used in the training camp example is all IIC communication. The actual test uses the existing 0.96 OLED on hand. The driver code is the same and can be used directly without modification.
 
*5.
        If the IO port used by AD is not changed in the software part, then the example code provided by the training camp can be used. The burner uses the homemade ST-LINK V2.1. For other burners, please note that you should select the corresponding recorder in the Keil project settings before downloading. The official course will have an update on August 23. Here is the link address of the official course: https://oshwhub.com/limengmeng12345/ji-chu-ying-usb-dian-ya-biao#P1
     
Note:
        If the sampled voltage or current is inaccurate, you can modify the values ​​of VOLTAGE_FACTOR and CURRENT_FACTOR in the main.c file according to the actual value. The specific calculation formula is:
VOLTAGE_FACTOR = actual voltage / displayed voltage
CURRENT_FACTOR = actual current / displayed current
*6. There will be at the bottom of the BOM list
        page.
 
*7. The verification of the competition LOGO is shown
        in the figure (it is a bit depressing that the code of JLC JLC JLC is marked, but why the guest editor position is not placed according to the position)
 
* 8. Finished product video
 
 

参考设计图片
×
Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-15 03:21:26

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号