Grove not Detecting devices

Hi All,

Have been trying to connect 12c devices to my GrovePi+ mounted on my Raspberry Pi3.

I have run 12c detect and the it shows the normal 04 indicating it found the board.

But will not show any 12c devices that I try to connect.

I have performed all the usual checks and all appears ok including re-installing its firmware, remounting it, and trying an SD card that I know works on another pi3.

Could the board have developed a fault?

Please can you advise a course of action, or possible fix.

Regards Michael

Hey @whimickrh,

Since you are able to see the 04 when you run the i2cdetect command`, I don’t think there is an issue with the GrovePi board.So can you tell us which sensor you are using and which port you are connecting it to. Also can you post a picture of the setup with your reply.

-Shoban

Thank you for replying,

I sorry I have not got back earlier.
I have managed to get it to detect 12c devices.
For it to work I have to run a python script that has
import grovepi
import RPi.GPIO as GPIO
from grovepi import *

after which 12c detect found the device.

I had to do this using the sdcard image and git download using noobs.
Do you have any ideas why this is?

Michael

Hi @whimickrh,
Are you using our Raspbian for robots image or a noobs image.

Can you post a screenshots of what you get when you run i2cdetect command, run the python script and run the i2cdetect command.

Can you also post a picture of your setup.

Hi Karan

I am using noobs v1.9.2 Raspbian.

I have tried using the SDcard Image 2016.06.26_Dexter_Industries_jessie, both give me the same problem, I need to run a python file.

Attached is a text file with the output.

Also are there any python Driver for the Grove BME280 sensor yet?

Regards Michael

12cdetect.txt (1.54 KB)

Thanks for uploading the log. I have not seen this specific issue before, but I have seen the device on address 0x68 and 0x77 disappear before because the Raspbian tries to take control over them. Can you try out another I2C sensor if you have any of those lying around and let us know if you see the same problem with them too.

The BME280 is a newer sensor, so it might take us some time to get its example done.

Hi Karan,

My Micro SD card had to be replaced so I had to re-install Noobs 1.9.2, then ran Raspi_config to setup including making sure 12C is turned on. And update Raspbain Jessie

After which I ran the GrovePI install, followed by sudo i2cdetect -y 1, please see 12cdetect.txt.

You will see that Grove 12c BMP280 Sensor and OLED 96x96 are not detected.

After that I ran grove_i2c_barometic_sensor_example.py with the following results , Please see out_put_grove_i2c_barometic_sensor.txt

You will see errors.

I so I ran all_tests.sh. see log_1.txt, then and checked Raspi_config 12c and , the reboot.

Ran all_tests.sh. see log_2.txt

Both show errors.

I will run sudo apt-get update and sudo apt-get -f install

Michael

log_1.txt (6.23 KB)

log-2.txt (6.23 KB)

@whimickrh: Can you just connect the grovepi first, then run i2cdetect after that connect just the oled and again run i2cdetect and then connect the BMP280 and then run i2cdetect and post what you get.

Would it be possible for you to burn Dexter Industried Raspbian for robot and see if it works any better there.

Hi Karan,

I installed the 26/06/2016 Dexter Image and ran

pi@dex:~ $ sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –

10: – -- – -- – -- – -- – -- – -- – -- – --

20: – -- – -- – -- – -- – -- – -- – -- – --

30: – -- – -- – -- – -- – -- – -- – -- – --

40: – -- – -- – -- – -- – -- – -- – -- – --

50: – -- – -- – -- – -- – -- – -- – -- – --

60: – -- – -- – -- – -- – -- – -- – -- – --

70: – -- – -- – -- – --

pi@dex:~ $

Plugged in 96x96 OLED

sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –

10: – -- – -- – -- – -- – -- – -- – -- – --

20: – -- – -- – -- – -- – -- – -- – -- – --

30: – -- – -- – -- – -- – -- – -- 3c – -- –

40: – -- – -- – -- – -- – -- – -- – -- – --

50: – -- – -- – -- – -- – -- – -- – -- – --

60: – -- – -- – -- – -- – -- – -- – -- – --

70: – -- – -- – -- – --

pi@dex:~ $

Plus BMP280

pi@dex:~ $ sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –

10: – -- – -- – -- – -- – -- – -- – -- – --

20: – -- – -- – -- – -- – -- – -- – -- – --

30: – -- – -- – -- – -- – -- – -- 3c – -- –

40: – -- – -- – -- – -- – -- – -- – -- – --

50: – -- – -- – -- – -- – -- – -- – -- – --

60: – -- – -- – -- – -- – -- – -- – -- – --

70: – -- – -- – -- – 77

pi@dex:~ $

Looks like it found them.

Tomorrow I will format microSD 8gb card install latest Raspbian followed by latest GrovePi+ from Git.

I will not update my Pi3 but run raspi-config to make sure settings are correct.

then run the same tests and let you know.

Regards Michael

Hi Karan,

I tried a second installation of Noobs 1.9.2

Activated 12c with Raspi-config

Git cloned GrovePi to Desktop

Installed - reboot

pi@PI3DEX2:~ $ sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –

10: – -- – -- – -- – -- – -- – -- – -- – --

20: – -- – -- – -- – -- – -- – -- – -- – --

30: – -- – -- – -- – -- – -- – -- – -- – --

40: – -- – -- – -- – -- – -- – -- – -- – --

50: – -- – -- – -- – -- – -- – -- – -- – --

60: – -- – -- – -- – -- – -- – -- – -- – --

70: – -- – -- – -- – --

pi@PI3DEX2:~ $

Normal - plug in 96 OLED

Removed cat’s foot

pi@PI3DEX2:~ $ sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –

10: – -- – -- – -- – -- – -- – -- – -- – --

20: – -- – -- – -- – -- – -- – -- – -- – --

30: – -- – -- – -- – -- – -- – -- 3c – -- –

40: – -- – -- – -- – -- – -- – -- – -- – --

50: – -- – -- – -- – -- – -- – -- – -- – --

60: – -- – -- – -- – -- – -- – -- – -- – --

70: – -- – -- – -- – --

pi@PI3DEX2:~ $

Seemed to have detect the 96 OLED

Plugged in BMP(280)))))))))))))rtyui

Removed cat’s paw from keyboard.

pi@PI3DEX2:~ $ sudo i2cdetect -y 1

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – 04 – -- – -- – -- – -- – -- –

10: – -- – -- – -- – -- – -- – -- – -- – --

20: – -- – -- – -- – -- – -- – -- – -- – --

30: – -- – -- – -- – -- – -- – -- 3c – -- –

40: – -- – -- – -- – -- – -- – -- – -- – --

50: – -- – -- – -- – -- – -- – -- – -- – --

60: – -- – -- – -- – -- – -- – -- – -- – --

70: – -- – -- – -- – 77

pi@PI3DEX2:~ $

BMP(280) detected

The only thing that I did different is I did not run.

sudo apt-get update

sudo apt-get upgrade

before installing git.

Or have the Cat’s help!!!.

Could there be some changes made when Updating Pi3 Boards?

One observation I would like to make is that there appears to variations between GrovePI+ Boards.

A notable difference being the labelling of the ports.

One of my Groves have large lettering to identify the ports, and other very small, So I need magnifying glass to read the labels.

Both my boards we purchased for well-known suppliers in the UK, CPC and Cool Components.

A future addition could be to use colour coded ports.

Regards Michael

@whimickrh,
Great to hear that it is working for you now. We have never seen problems like this before so not really sure why it happened. One of the things that we have seen causing a lot of weird problems like this is a power supply which is not good enough. The Pi and the GrovePi along with all the peripherals might need 2A at 5V so you should power it with a good enough power supply and a good USB cable.

We had upgraded the GrovePi boards a while back and had got them certified so one of the boards you would be having would be an older board and the other one with the smaller labels is a newer one. Sorry for the very small labels on the newer ones, we also noticed that they were smaller that what we though they had to be. Both the boards should be good enough to use. We’ll be updating them in the next version . You can also use the port diagrams here for reference.

P.S.: maybe keep the cat around the next time you are working on a project. Maybe even let her code a bit if it helps in solving the problem.

-Karan