408 views|1 replies

501

Posts

4

Resources
The OP
 

[Ultra-small Linux development kit Quantum Tiny Linux] Onboard MPU6050 interface confirmation test [Copy link]

The board has an MPU 6050, which is an IIC interface. Let's first find the correspondence between IIC and the device, test the IIC function, and then write the device driver.

You can see that there are 4 i2c devices

We use the i2cdetect tool to detect

i2cdetect-y n

Where n is 0~3

You can see that there is a device with address 0x68 under i2c-0

There is a device with 0x30 under i2c-3

We consult the manual of mpu6050

The address of MPU6050 can only be 0x68 or 0x69, so MPU6050 is connected to i2c-0.

According to the manual, the register of mpu 0x75 is the device address.

Use i2cget -y 0 0x68 0x75 to read the 0x75 address of the 0x68 device as follows, which is correct.

After getting the iic interface corresponding to mpu6050, we can start writing the driver for mpu6050 in the next article.

This post is from Linux and Android

Latest reply

Just get the iic interface corresponding to mpu6050   Details Published on 2024-7-14 07:27

6555

Posts

0

Resources
2
 

Just get the iic interface corresponding to mpu6050

This post is from Linux and Android
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list