Zam
Posts: 7
Joined: Thu Aug 03, 2017 2:28 pm

OSError: Cannot detect RPi-Sense FB device

Tue Aug 29, 2017 6:05 pm

Hello everyone! I have read a lot about this problem but I still can not solve it.

I have a project with the sense hat and LabView, The sense hat worked very well, I left it for a few days and when I wanted to execute one of the examples I get the following error

Traceback (most recent call last):
File "/home/pi/Desktop/PY Sense Hat/Rainbow.py", line 2, in <module>
sense = SenseHat()
File "usr/lib/python3/dist-packages/sense_hat/sense_hat.py", line 39, in init
raise OSError ('Cannot detect %s device' % self.SENSE_HAT_FB_NAME)
OSError: Cannot detect RPi-Sense FB device

Also when I connect the raspberry, the leds of the sense hat immediately turn on and off, just like a white flash

I have raspberry pi 3 and kernel 4.9
Thanks for your attention

User avatar
Davespice
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 1602
Joined: Fri Oct 14, 2011 8:06 pm
Location: London, United Kingdom
Contact: Website Twitter

Re: OSError: Cannot detect RPi-Sense FB device

Fri Sep 01, 2017 3:54 pm

The white flash makes me think the AVR chip on the Sense HAT, which drives the LEDs, has had it's memory corrupted.
If you don't see the rainbow test card then something is not right with the hardware for sure. Do you have another Pi you can try it on?

Zam
Posts: 7
Joined: Thu Aug 03, 2017 2:28 pm

Re: OSError: Cannot detect RPi-Sense FB device

Mon Sep 04, 2017 5:24 pm

Davespice wrote:
Fri Sep 01, 2017 3:54 pm
The white flash makes me think the AVR chip on the Sense HAT, which drives the LEDs, has had it's memory corrupted.
If you don't see the rainbow test card then something is not right with the hardware for sure. Do you have another Pi you can try it on?
Hi Dave :D I tried with a Raspberry Pi 2 and the led matrix of the sense hat lights up rainbow color. But it stays on until I turn off the Raspberry.

I do not know why with the RPI3 the sense hat blinks white

User avatar
Davespice
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 1602
Joined: Fri Oct 14, 2011 8:06 pm
Location: London, United Kingdom
Contact: Website Twitter

Re: OSError: Cannot detect RPi-Sense FB device

Tue Sep 05, 2017 9:11 am

It may be that the EEPROM is not working then. This is a small chip which is used to identify the HAT to the Raspberry Pi. So it may be that it's just not detecting the HAT correctly.

You can force the Raspberry Pi to believe a Sense HAT is connected though and that can sometimes solve the rainbow-forever problem.

Run this command in a terminal window;

Code: Select all

sudo nano /boot/config.txt
Scroll to the bottom of the file and add this line;

Code: Select all

dtoverlay=rpi-sense
Then press Ctrl - O followed by Enter to Save, and Ctrl - X to quit.
Then do a reboot. See if that helps.

Zam
Posts: 7
Joined: Thu Aug 03, 2017 2:28 pm

Re: OSError: Cannot detect RPi-Sense FB device

Tue Sep 05, 2017 4:36 pm

Davespice wrote:
Tue Sep 05, 2017 9:11 am
It may be that the EEPROM is not working then. This is a small chip which is used to identify the HAT to the Raspberry Pi. So it may be that it's just not detecting the HAT correctly.

You can force the Raspberry Pi to believe a Sense HAT is connected though and that can sometimes solve the rainbow-forever problem.

Run this command in a terminal window;

Code: Select all

sudo nano /boot/config.txt
Scroll to the bottom of the file and add this line;

Code: Select all

dtoverlay=rpi-sense
Then press Ctrl - O followed by Enter to Save, and Ctrl - X to quit.
Then do a reboot. See if that helps.
Thank's Dave, I put dtoverlay=rpi-sense in /boot/config.txt but rainbow-forever problem continues, the LEDS will not turn off even if I turn off the raspberry, they only turn off when I disconnect the raspberry :(

User avatar
Davespice
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 1602
Joined: Fri Oct 14, 2011 8:06 pm
Location: London, United Kingdom
Contact: Website Twitter

Re: OSError: Cannot detect RPi-Sense FB device

Fri Sep 08, 2017 12:11 pm

I think you have a faulty Sense HAT, I would return it to the retailer.

Zam
Posts: 7
Joined: Thu Aug 03, 2017 2:28 pm

Re: OSError: Cannot detect RPi-Sense FB device

Tue Sep 12, 2017 6:00 pm

Davespice wrote:
Fri Sep 08, 2017 12:11 pm
I think you have a faulty Sense HAT, I would return it to the retailer.
Please dont tell me that :( The Sense hat it is not mine It's from the company where I'm doing my professional practices

Zam
Posts: 7
Joined: Thu Aug 03, 2017 2:28 pm

Re: OSError: Cannot detect RPi-Sense FB device

Wed Sep 13, 2017 4:27 pm

Davespice wrote:
Fri Sep 08, 2017 12:11 pm
I think you have a faulty Sense HAT, I would return it to the retailer.
Hi Dave, when i put

Code: Select all

sudo i2cdetect -y 1
in terminal the output is:

Code: Select all

pi@raspberrypi:~ $ sudo i2cdetect -y 1
     
0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 

10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- -- 

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 

50: -- -- -- -- -- -- -- -- -- -- -- -- 5c -- -- 5f 

60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- -- 

70: -- -- -- -- -- -- -- --    
this means that the sensors of the sense hat are detected by my Raspberry???

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 4564
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: OSError: Cannot detect RPi-Sense FB device

Wed Sep 13, 2017 4:35 pm

It looks like everything but the actual 'brain' (an AVR microcontroller) of it is detected. That prevents the joystick and LEDs from working.

If you're brave and don't mind potentially making things worse, you can try re-programming it:
https://github.com/raspberrypi/rpi-sense

Return to “Astro Pi”

Who is online

Users browsing this forum: No registered users and 2 guests