9BmS9vy

#The7thLiChuangElectricityContest#USB voltage and current meter

 
Overview

1. Project function introduction
Based on the N32G430C8L7 chip of National Technology, the USB voltage and current meter can measure the voltage, current and power of the load and display it through the 0.91-inch SSD1603 OLED with an accuracy of 1%.
 
 
 
2. Hardware part Main
control circuit: Refer to the "N32G430C8L7_STB Development Board Hardware Usage Guide" of National Technology
 
Power supply: AMS1117-3.3V is used .
The following is the voltage conversion circuit
pdd1bB8kebY6yqSHzHfXj5rnJlcv2DcsWYQO4pyQ.png 
Current sampling circuit: Use INA199A1DCKR
C7ENgmVR0pbJ9EED7z9SFau4N9ZEX3yQPUhMXv7C.png 
voltage sampling circuit:
sl8lEhbMw0h2mqO6aD34FEwjba80NSqW1EXfNomk.png 
 
3. Software part
Use the official program code, modify the definition of the display pin interface, library function and screen initialization code, and in order to improve the measurement accuracy, also modify the ratio of the actual voltage to the meter voltage and the ratio of the actual current to the meter current. For the program burning method, I use the PWLINK 2 burner of Chuangxin Workshop, which needs to be burned online.
 
Screen initialization code Modify
0j9nVVTIXJR5ZvsP9bDEKV0X5uZbZpt0C43r2RLs.png 
the screen pin definition Modify
XgNl1Is6OAFYmZJRL1B1zZNPhidUCRSmNflSwZwB.png 
the library function Modify
GOgaa8DfKYeCzn7r1LTbtNfeVfaKH3yvVBV8iTfK.png 
the accuracy Modify
XhwY8prEJeQS9JMfYmlv97JEOf7AP5BTpeqUOjxI.png 
the PWLINK2 burning method Need to burn online! ! ! !
cyUWSfyKUmoqc5zdJQOGLrGnoDyI2axsLLatjqpj.png 
4. Contest LOGO verification.
 
I was not familiar with EasyEDA Professional Edition and accidentally got the logo wrong.
 
5. Demonstrate your project and record it as a video and upload it
 
 
 
 
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-24 17:31:24

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号