Experiment of STM32 mpu6050 six axis sensor
no vote
Hardware resources: 1, DS0 (connected to pf9), 2, serial port 1 (baud rate: 115200, PA9 / PA10 connected to ch340), 3, alitek 2.8/3.5/4.3/7-inch TFTLCD module (driven by FSMC, FSMC_ Ne4 connected to LCD chip selection / A6 connected to RS) 4, key0 key (connected to PE4) 5, mpu6050 sensor (connected to PB8 (SCL) and PB9 (SDA), Int (PC0) is not used). Experimental phenomenon: after the experiment is started, first initialize mpu6050, then use DMP library to initialize mpu6050 and enable DMP. Finally, in the dead cycle, read the data of temperature sensor, acceleration sensor, gyroscope, Euler angle after DMP attitude calculation, and report it to the upper computer through serial port (temperature is not reported), and use the upper computer software (ano)_ Four axis upper computer_ The mpu6050 sensor status curve and 3D posture can be displayed in real time, and the data upload function can be turned on / off by key0. At the same time, the temperature and Euler angle are displayed on the LCD module. DS0 to indicate that the program is running. In addition, this routine can also call MPU through usmart_ Read_ Byte/MPU_ Write_ Byte function to read and write mpu6050 register (only in upload off state)