Note: * is a required field.
Please fill it in during the registration stage↓
* 1. Project function introduction
Based on N32G430C8L7+INA199, the collected attitude data is converted into the real-time attitude of the module and displayed on the OLED.
It is mainly divided into the following parts: host computer, main controller N32G430C8L7, MPU6050 sensor, OLED display module, etc. It aims to use the MPU6050 sensor to collect the original acceleration and gyroscope acceleration. After receiving the data, N32G430 converts it into the attitude of the module and displays it using OLED and the host computer.
*2. Project attributes
Lichuang open source, first public, 2022 summer training camp project Nation Mcu The 7th Lichuang Electronic Competition
Note: Please indicate whether the project is the first public; whether the project is original; whether the project has won awards in other competitions, if so, describe the details of the award; whether the project has participated in the defense at school.
* 3. Open source agreement
GPL3.0 Open source agreement
Note: Altruism is self-interest, please read the following content carefully.
Embrace open source and give the project unlimited value. It is recommended that more than 80% of the core functions
of the project be open source; if a part of the function is irreplaceable and the project cannot solve the corresponding problem after deleting it, then the function implemented by this part is the core function 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 references 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 referencing 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
The architecture of this design is shown in Figure 1 below. It is mainly divided into the following parts: host computer, main controller N32G430C8L7, MPU6050 sensor, OLED display module, etc. The purpose is to use the MPU6050 sensor to collect the original acceleration and gyroscope acceleration. After receiving the data, N32G430 converts it into the posture of the module and displays it using OLED and host computer.

The 2022 summer training camp project was perfectly reproduced using Jiali Chuang EDA.
Using N32G430:
The N32G430 series uses a 32-bit ARM Cortex-M4f core with a maximum operating frequency of 128MHz, supports floating-point operations and DSP instructions, integrates up to 64KB embedded encrypted Flash, 16KB SRAM, integrates a wealth of high-performance analog devices, built-in a 12bit 4.7M sps ADC, 3 high-speed comparators, and integrates multiple U(S)ART, i2C, SPI, CAN and other digital communication interfaces. The N32G430C8L7 microcontroller product can work stably in the temperature range of -40°C to +105°C, with a supply voltage of 2.4V to 3.6V, and provides multiple power consumption modes.
Using MPU6050:
MPU6050 is the world's first integrated 6-axis motion processing component launched by InvenSense. Compared with multi-component solutions, it eliminates the problem of inter-axis difference when combining gyroscopes and accelerometers, and reduces installation space. MPU6050 integrates 3-axis gyroscopes and 3-axis acceleration sensors, and contains a second IIC interface that can be used to connect external magnetic sensors, and uses its own digital motion processor hardware acceleration engine to output complete 9-axis fusion calculation data to the application end through the main IIC interface. With DMP, you can use the motion processing library provided by InvenSense, which is very convenient to realize attitude solution, reduce the load of processing operations on the operating system, and greatly reduce the difficulty of development.
OLED module hardware is also used.
Note: It is recommended to use Jiali Chuang EDA. If you choose other EDA tools, please upload the schematic diagram in PDF format, the PCB drawing in PDF format, and the PCB file in Gerber format in the attachment. Here you can explain in detail the implementation principle and mechanism of your project, precautions, debugging methods, testing methods, etc. It is recommended to introduce your ideas to others in the form of pictures and texts.
*5.

Initialization process of important peripherals MPU6050 and OLED in the software part:
MPU6050 initialization configuration process:
1. Initialize the IIC interface
2. Reset MPU6050
3. Set the full-scale range of the angular velocity sensor (gyroscope) and acceleration sensor
4. Set other parameters
5. Configure the system clock source and enable the angular velocity sensor and acceleration sensor
OLED initialization configuration process:
1. Initialize the IIC interface
2. Turn off the OLED display and set the OLED register parameters
3. Turn on the OLED display
(reference document: https://wenku.baidu.com/view/fb23e3a4bfeb19e8b8f67c1cfad6195f302be849.html)
The spatial coordinate conversion algorithm can be found on Baidu.
Software initialization process:
-log_init(): 500000Bd, no parity, 8-bit data, 1 stop bit
-i2c_master_init ()
-oled_init ()
-MPU_Init()
-mpu_dmp_init()
Personal Idea: This project is based on the demo case corresponding to the summer training camp real-time posture display Oled. The software flow chart is shown above. The important thing is the data acquisition of the three angles of MPU6050. Through the library provided by DMP, directly call the library after DMP initialization to obtain the Euler angle data, and then convert it into data that Oled can display through the algorithm.

*6. BOM list
The BOM list is displayed in the schematic diagram and PCB attached to the project.
Note: The BOM list involved in the project. Please upload a screenshot of the BOM in this position. Please upload the list details in the PDF format to the attachment. It is recommended to include model, brand, name, package, procurement channel, purpose, etc. The specific content and form should be based on the clear expression of the project composition.
*7. Please upload a project image containing the competition logo for verification

. 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
the demonstration video in the project attachment below.
Video requirements: Please shoot horizontally, with a resolution of no less than 1280×720, in Mp4/Mov format, and a single video size limited to 100M;
Video title: Lichuang Electric Race: {Project Name}-{Video Module Name}; For example, Lichuang Electric Race: "Autonomous Driving"-Team Introduction.
More details: https://diy.szlcsc.com/posts/d76d9cb41705430e9a54e7a5feed07a5