Lemontree

#The7thLiChuangElectricityContest#USB voltage and current meter

 
Overview

* 1. Introduction to project functions
The project is mainly a reproduction of the functions in the summer training camp example, and the functions have not been changed much! The relevant valuable components have been replaced according to the components I currently have.
The USB ammeter made based on N32G430C8L7+INA199 has an accuracy of 1%, and can check the current when the USB is working.
 
* 2. Open source agreement
GPL 3.0
*3. The main
1zBpuGdOuDAXHYG72XueFcdaUEi3BZfqLREwlLJW.pngcontrol of the hardware part uses the national technology N32G430C8L7. You need to know the pin sequence when welding.
8a93gRZw5tJ60AqSuuZuxQ83FXoOOXpuus0N4Lnw.pngThe reset circuit is officially implemented with a pin header. I designed it as a button here for easier reset.
 
s86wF4YzlTaRmRNUfg6DURAfOeLzcIKOtok4NLjE.pngBOOT circuit This is very important. I didn’t connect it at the beginning to connect here, which resulted in the search for the chip MCU
 
kEZN9SzIPXwdpLKNFgQCD88BaTE31ZKR6ABNwuSq.pngcrystal oscillator circuit.
If you consider that the circuit may be upgraded later, you can add an 8mhz external crystal oscillator circuit
ppfTbTS9ioPqi3U3KIRH0gMIuykoYw35dnG4rzUK.pngINA199A1 gain: 50V/V voltage output, current shunt monitor (also known as current sensing amplifier) ​​is often used for overcurrent protection, precision current measurement or closed-loop feedback circuit for system optimization. This series of devices can sense the voltage drop across the shunt resistor at a common-mode voltage of –0.3V to 26V that is independent of the power supply voltage.
 
e2XRYK2RHCsHRsxkd1W1fdnPyreJFIwnsSqFyUj0.pngADC analog-to-digital conversion, since the pin of Guoming Technology has this function, if you want to collect voltage
 
JeYNxuuEHxa9uKtktvU6PuxojiQnoSGXPeOsCIUP.png 
, you need to add an analog-to-digital conversion IC and then a voltage regulator circuit. Since the operating voltage of the MCU is 3.3V, this circuit is needed to achieve the external voltage step-down and voltage regulation to 3.3V.
 
uTk9AVGmXldT5KgqPDCKt4bOxaNiY1y3suT133JK.pngy9cVEe8TymHEvoF415PvRG4HlL6CXBC76e2qcRG0.pngThen there are 2 pin headers. The first picture is the serial port and SW debug interface.
The second is the peripheral OLED screen interface.
 
 
*4. Software part
Compiler: ARM Compiler version 5
Debugger: ST-Link V2
can use the official serial port to download software
 
*5. Competition LOGO verification and physical pictures
 
T4MnER6zr5Hg7nVvGzU83EMOaaokm00sVZHS5HEm.pngELMLgujX4fXCZ2SzQdXXqaeTmWDzgoGNDl4mP2sc.jpeg 
YnH2uhUhjnYz4WDkWPp05k0I6LQ1Qefhero30BvY.jpeg9d37jpn6cB6vFcaSImIZF0OPhTQlhQvubuFtf1eJ.jpeg*6. Demonstrate your project and record it as a video and upload it
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-26 19:10:12

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号