Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Interfacing (DSI, CSI, I2C, etc.) • Re: Help with reading mpu6050 configured with device tree and overlays

$
0
0

```
$ cat /sys/bus/i2c/devices/1-0068/name
mpu6050
```
... the name '1-0068' I don't have any clue where it comes from... :/

Nevertheless the mpu6050 really seems that it is there.

At this point I was expecting to get all the values from mpu6050 in some
folder inside /dev .... but it seems that is not the case or I'm failing to
find that folder..

By the way.. if I check for I2C:

```
$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
```
use Code Tags for better readability when Posting commands/results from commands

your MPU is connected to I2C-1 interface, as you've not changed the default address it is 0x68 (https://github.com/raspberrypi/linux/bl ... .dtsi#L436)
so 1-0068 should be clear how, right? it's <bus no>-<device address>

No device showing with i2cdetect looks strange; Check your wiring. Is the Interrupt connected (defaults to GPIO4) https://github.com/raspberrypi/linux/bl ... .dtsi#L438

Statistics: Posted by aBUGSworstnightmare — Mon May 12, 2025 4:54 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles