AlexVend
Posts: 5
Joined: Mon Apr 05, 2021 7:37 am

Raspberry Pi and i2c

Wed Apr 14, 2021 8:18 am

Hello everybody. A few days ago, my raspberry pi 3B stopped detecting grove base hat as a module. I've already tried reinstalling the system, reconnecting the hat, but nothing seems to work. I also checked to see if the power on the hat's microcontroller was working. Has anyone faced such a problem?
This is my grove base hat: https://wiki.seeedstudio.com/Grove_Base ... pberry_Pi/

NotRequired
Posts: 237
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: Raspberry Pi and i2c

Wed Apr 14, 2021 11:17 am

Have you tried to re-seat (remove, clean and re-attach) the HAT?
Glowing in the dark!

alphanumeric
Posts: 2897
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Raspberry Pi and i2c

Wed Apr 14, 2021 11:20 am

Do you have a sensor plugged into it?
What does i2c detect -y 1 show, does it take a long time to run?

AlexVend
Posts: 5
Joined: Mon Apr 05, 2021 7:37 am

Re: Raspberry Pi and i2c

Thu Apr 15, 2021 12:05 pm

Several times I tried detaching and attaching the hat, resetting raspbian but nothing happened. What do you mean by cleaning?
Grove - GSR sensor, grove emg sensor and ear-clip-heart rate sensor are connected to the hat. Start time is normal. All I did with the hat was check the power on the pins. Everything was normal. In picture 42 it is a module with a battery for the Raspberry pi.
Attachments
1.jpg
1.jpg (13.64 KiB) Viewed 232 times

alphanumeric
Posts: 2897
Joined: Tue Jan 19, 2016 2:17 pm
Location: Sydney, Nova Scotia, Canada

Re: Raspberry Pi and i2c

Thu Apr 15, 2021 12:24 pm

Something isn't working that's for sure. There should be other addresses showing for those other three sensors. Do each of the sensors have a different address?
Last edited by alphanumeric on Fri Apr 16, 2021 11:03 am, edited 1 time in total.

NotRequired
Posts: 237
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: Raspberry Pi and i2c

Thu Apr 15, 2021 12:47 pm

Have you tried to run the i2cdetect command as sudo? A change in the access rights to i2c could be a software related explanation.

If it suddenly stopped working without any change to the system or any physical damage, I think either the HAT or the GPIO-pins are borked. If you by change have another Pi laying around, try to see if that detects the HAT / the sensors attached to it. If not, the HAT is most likely broken. If the other Pi detects the HAT, then the GPIO on the current Pi is broken.
Glowing in the dark!

AlexVend
Posts: 5
Joined: Mon Apr 05, 2021 7:37 am

Re: Raspberry Pi and i2c

Thu Apr 15, 2021 1:11 pm

Could it be related to this error?
Attachments
jB4NT.jpg
jB4NT.jpg (85.15 KiB) Viewed 201 times

NotRequired
Posts: 237
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: Raspberry Pi and i2c

Thu Apr 15, 2021 1:42 pm

What info does the suggested "systemctl status ..." provide?
Glowing in the dark!

AlexVend
Posts: 5
Joined: Mon Apr 05, 2021 7:37 am

Re: Raspberry Pi and i2c

Fri Apr 16, 2021 9:36 am

Systemctl status displayed:
Attachments
3.png
3.png (139.68 KiB) Viewed 143 times

NotRequired
Posts: 237
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: Raspberry Pi and i2c

Fri Apr 16, 2021 1:00 pm

Please post the output (copy paste) in code tags instead of screenshots..

Run the command "systemctl | grep failed". This will produce a list of failed services (should be two). For each failed service run the command "systemctl status service-name". An example:

Code: Select all

$ systemctl | grep failed
● vboxweb.service                                       loaded failed failed    VirtualBox Web Service
$ systemctl status vboxweb
● vboxweb.service - VirtualBox Web Service
     Loaded: loaded (/lib/systemd/system/vboxweb.service; enabled; vendor preset: enabled)
     Active: failed (Result: protocol) since Fri 2021-04-16 09:47:20 CEST; 5h 7min ago
    Process: 1185 ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start (code=exited, status=0/SUCCESS)

apr 16 09:47:20 xxx systemd[1]: Starting VirtualBox Web Service...
...
This should give some clues about your problem..
Glowing in the dark!

Return to “Interfacing (DSI, CSI, I2C, etc.)”