the sense Hat Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
mcnahum
Posts: 3
Joined: Mon Oct 19, 2020 7:25 pm

the sense Hat

Post by mcnahum »

Hi,
I'm quite new with DietPi, but I recently installed Diet Pi on a Pi3 to host Pi-hole

all was good until I decided to use the Sense hat I have on it. ( for this: https://github.com/simianAstronaut/pi-hole-visualizer)

I did like usual the sudo apt-get install sense-hat to install it but now every time I try a python to do something on the hat it's not detecting it... did I missed something?

python dns_stats.py
Traceback (most recent call last):
File "dns_stats.py", line 14, in <module>
import config
File "/root/Pi-holeVisualizer/config.py", line 11, in <module>
SENSE = SenseHat()
File "/usr/lib/python2.7/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
User avatar
Joulinar
Posts: 2566
Joined: Sat Nov 16, 2019 12:49 am

Re: the sense Hat

Post by Joulinar »

Hi,

many thanks for your message. Looks like your HAT device is not recognised by the system

Code: Select all

OSError: Cannot detect RPi-Sense FB device
Can you check I2C status within dietpi-config > 4 : Advanced Options > I2C state. It should be set to On
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mcnahum
Posts: 3
Joined: Mon Oct 19, 2020 7:25 pm

Re: the sense Hat

Post by mcnahum »

Yes it was not activated, I activate it ... convinced that's the root cause ... but no it's still not working...

any other step I could have missed?
User avatar
Joulinar
Posts: 2566
Joined: Sat Nov 16, 2019 12:49 am

Re: the sense Hat

Post by Joulinar »

I was looking around and found quite some reports on various boards. Most of the are talking about issues with the Hat themselves. For some users it was working to remove the Hat and re-plug it carefully. Or to set dtoverlay=rpi-sense to the bottom of /boot/config.txt

An ultimative test would be running standard Raspberry OS to see if it is working there.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mcnahum
Posts: 3
Joined: Mon Oct 19, 2020 7:25 pm

Re: the sense Hat

Post by mcnahum »

Thanks yes adding dtoverlay=rpi-sense to the bottom of /boot/config.txt worked for me.
User avatar
Joulinar
Posts: 2566
Joined: Sat Nov 16, 2019 12:49 am

Re: the sense Hat

Post by Joulinar »

yeah probably something wrong on detecting the Hat correctly. But good that this is working now.

Just for reference, that's where I got my knowledge from https://github.com/astro-pi/python-sens ... -171975646
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply