stm32cubemx uses mpu6050

Article Directory

Wiring diagram

Generally, there are two kinds of mpu 6050 that you buy. 1: It is a single mpu6050 chip 2: It is the mpu6050 module

If it is the first case, you can refer to the figure below.
Insert picture description here
If it is the second case, in general, only four wires are needed. Vcc is connected to the positive power supply (5V, but the general module has 3.3V voltage regulator chip, that is, 3.3V can also be connected). GND is grounded, SCL and SDA are iic, and the others are basically not connected. XCL, XDA are auxiliary iic, used to connect other devices. AD0 is used to determine the physical address of mpu6050, AD0 dangling address is 0x68, then vcc is 0x69

Code

To achieve the use of analog iic, refer to: https://blog.csdn.ne

Guess you like

Origin blog.csdn.net/qq_45467083/article/details/109456521