牛卧堂MCU技术交流

标题: [M451] Use I2C to Drive MPU6050 [打印本页]

作者: admin    时间: 2022-9-30 10:16
标题: [M451] Use I2C to Drive MPU6050

The sample code uses M451 GPIO to simulate I2C to initialize 6-axis sensor, and reads 6-axis sensor data through I2C.The M451 sends data to PC through UART, so that the position change of 6-axis sensor can be seen intuitively in PC software. The 6-axis sensor used in this code is InvenSense MPU 6050, which communicates with I2C protocol. Initialization and control interface functions can be found in the MPU6050.c function prototype, sensor settings and data acquisition refer to the specifications of MPU6050.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 0107165333





欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/) Powered by Discuz! X3.2