* 1. Project function introduction:
Power meter based on N32G430C8L7 + MPU6050 attitude detection
* 2. Project attributes:
Please enter the content...
Note: Please indicate whether the project is open to the public for the first time; whether the project is original; whether the project has won awards in other competitions, if so, please describe the details of the awards; whether the project has participated in the defense at school.
* 3. Open source agreement:
Please enter the content...
Note: Altruism is self-interest, please read the following content carefully.
Embrace open source and give unlimited value to the project. It is recommended that more than 80% of the core functions of the project be open source;
if a part of the functions is irreplaceable and the project cannot solve the corresponding problem after deleting it, then the functions implemented by this part are the core functions of the project; for example, if an electronic load is designed and a host computer software is designed to monitor power changes, the electronic load is the core function and the host computer software is an auxiliary function; for example, an isolated 485 module is used in the electronic load to communicate with the host computer, then the communication function implemented by this 485 module is an auxiliary function;
the project should choose an open source protocol that suits it. If the project quotes other open source projects, the source should be indicated and the original author's open source protocol regulations should be followed; original projects are recommended to use the GPL3.0 open source protocol;
functions implemented by directly quoting the original circuit or original code of the open source project cannot be used as the core functions of your own project, and functions directly implemented using general modules on the market cannot be used as the core functions of your own project.
Please fill in the form during the competition stage↓
*4. Hardware Current
sampling: INA199A1DCKR is used to monitor the load current. The gain of this model is 50, and the full scale is 66mv under 3.3V reference. Using a 10mΩ sampling resistor, it can detect approximately 6.6A current. The selected sampling resistor power is 3w, and the maximum current can be around 17A.

Voltage sampling: Voltage sampling uses resistor voltage division, with a pressure ratio of 91:10, and can measure approximately 30V voltage under 3.3V reference. Chip power

supply: The power supply uses 1117-3.3 with a maximum input of 18V and an output of 3.3v to provide 3.3 power supply to the chip and on-board devices;
Each power supply port of the MCU chip needs to add a 100nf capacitor, and pin 1 needs an additional 4.7uf capacitor.

Display screen and MPU6050: The display screen and MPU6050 communicate with the MCU through the IIC interface, and PB8, PB9 (I2C1) and PB10, PB11 (I2C2) are brought out as communication ports.
0.96OLED (SSD1603) display screen module and GY521 (MPU6050) module are used for
fast charging: The board that was first installed was not connected to D+ and D-, and could only provide 5V. After the 0.5A output,
the D+D- is connected by flying wires on the board. As in the current circuit connection, the 9V2A PD fast charge can be achieved using an ordinary fast charging cable.
However, when using the super fast charging of a mobile phone (OnePlus 9RT), the device will restart when the current reaches about 4A, and the load has no output. It may be because the CC line and VCONN are not connected, causing the protocol to shut down the output. In
addition, I found that the U port end of my data cable seems to have only 5 pins. The cable U port found on the Internet has 6 wires. How can it be connected with the 6 wires on the C port end? .
*5. Software part
The software part uses two routines provided by the training camp. Based on the posture detection project, the power detection is combined and used together. The main change is to change the IIC interface to the IIC interface used by
the display screen. Hardware IIC: SDA and SCL need to be changed to the corresponding IO, and changed to the corresponding I2C multiplexing mapping.

MPU6050 uses software IIC: IO configuration and IO operation need to be changed to the corresponding port.

Simulate the hourglass: Draw a triangle on the upper and lower sides of the outer frame, and draw a solid triangle inside the quicksand, all based on the provided line function.
Reduce or increase the volume of the upper and lower triangles according to the timing, and draw the triangle plus the flow line in real time to achieve the flow effect;
judge the upper and lower positions according to the output information of the posture, and change the volume increase and decrease and the flow direction.
Note: If your project involves software development, please upload the corresponding project source code in the attachment. Here you can explain in detail your software flow chart, functional module block diagram, explanation or popular science of related algorithms, source code structure, compilation environment construction and configuration, source code compilation method, program burning method, etc. It is recommended to introduce your ideas to others in the form of pictures and texts.
*6. BOM list
Please enter the content...
Note: BOM list involved in the project. Please upload a screenshot of the BOM in this location. Please upload the list details in PDF format to the attachment. It is recommended to include model, brand, name, package, procurement channel, purpose and other content. The specific content and form should be based on the clear expression of the project composition.
*7. For competition LOGO verification
, please upload a project picture containing the competition logo. The logo is printed on the PCB in the form of silk screen.
Click zip to download the competition logo! (Competition logo).zip
* 8. Demonstrate your project and record it into a video. Upload
video requirements: Please shoot in horizontal screen, with a resolution of not less than 1280×720, format Mp4/Mov, and a single video size limited to 100M;
video title: LiChuang Electric Race: {Project Name}-{Video Module Name}; such as LiChuang Electric Race: "Autonomous Driving"-Team Introduction.
More details: https://diy.szlcsc.com/posts/d76d9cb41705430e9a54e7a5feed07a5
Search
Copy