Jump to content

MPU6050 doesn't list on OPi0


Recommended Posts

Hey all

 

I'm trying to get an Orange Pi Zero (256MB) to talk with an MPU6050.

(ARMBIAN 5.31 stable Ubuntu 16.04.2 LTS 3.4.113-sun8i)

 

I've installed i2c. 

 

When I have a little OLED screen attached I get:

root@orangepizero:~# sudo i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- 3c -- -- --
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

This is good, the OLED is at address 0x3c, and there's something built in at 0x48 which is alreaedy being used.

 

But when I plug in my MPU6050 i get:


root@orangepizero:~# sudo i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

I.e. it is undetected

 

So i tested with the following all connected on the same I2C bus:

 

* Orange PI Zero

* Arduino Uno

* MPU6050

* OLED 128x64

 

The arduino will happily work with the MPU6050, whilst the opi will see the oled on the 0x3c address. All electrical connections are triple-checked (OLED is connected after the MPU6050 in the circuit).

 

This suggests that the OPi is unable to communicate with the MPU6050 for some unknown reason. Does anybody have any hints as to what could be going wrong?

 

I know that the MPU6050 should be seen on 0x68 (AD0 is low). Maybe addresses above 0x63 have an issue?

 

 

 

 

Link to comment
Share on other sites

mainline currently doesn't boot on my opi0

Armbian_5.27.170614_Orangepizero_Ubuntu_xenial_dev_4.11.3

 

2 red flashes after boot, and doesn't respond to ssh

 

switching in old sd card works fine (legacy)

 

is there an older mainline build which works well?

Link to comment
Share on other sites

no. But i definitely should get one.

 

it seems to be perhaps an SD card issue. Which is a shame because it's brand new and i just ordered 200 of the same. From the same batch the first one works fine, the second one doesn't. 

SanDisk 8GB MicroSD HC1 (genuine)

 

Investigating...

Link to comment
Share on other sites

The UU at 0x48 is used by pcf8591 kernel driver.
Please add pcf8591 to /etc/modprobe.d/fbdev-blacklist.conf and reboot.
 

Before edit

$ sudo i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 

After edit

$ sudo i2cdetect -y 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


 

Link to comment
Share on other sites

27 minutes ago, martinayotte said:

@zador.blood.stained, I don't understand your reply. We are talking about OPi0 here, right ?

We are talking about the legacy kernel

 

On 30.07.2017 at 1:43 PM, Elliot Woods said:

(ARMBIAN 5.31 stable Ubuntu 16.04.2 LTS 3.4.113-sun8i)

 

obviously mainline won't try to load anything that is not listed explicitly either in /etc/modules or DT

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines