astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
505 stars 253 forks source link

Error: Weird behavior in the sensehat #136

Open PetriJF opened 1 year ago

PetriJF commented 1 year ago

Hello everyone

I am using a sense hat for one of my projects and I am getting some weird behavior. Up until yesterday everything was fine, but today the LED matrix flashed a quick white blink then changes to the rainbow until the raspberry pi boots up into ubuntu 22,04 completely. Afterwards, it just turns off.

I thought it was weird and tried running some code. I received this error: OSError: IMU Init Failed

I did an i2cdetect and this is what I get (Note that on 41 and 42 I have 2 other devices)

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

00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- 41 42 -- -- -- UU -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- 5f 60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- -- 70: 70 -- -- -- -- -- -- --

I checked ls -l /dev/i2c-1 and it gives: crw-rw---- 1 root dialout 89, 1 Sep 9 21:49 /dev/i2c-1

I tried sudo nano /boot/config.txt and added dtoverlay=rpi-sense to it.

Would anyone happen to know what could be causing the problem?

Thank you for your time!

bsimmo commented 1 year ago

I don't know yet, but for diagnostics of the HAT itself Grab the latest RPi OS and try it with that. It's the only one RPi themselves support and it should work on there.

Which SenseHAT version 1 or 2? And which Pi?

Check your power (undervoltage) Take the HAT one and of the Pi a few times (connections).

Had Ubuntu just updated itself?

On Wed, 15 Feb 2023, 11:54 pm PetriJF, @.***> wrote:

Hello everyone

I am using a sense hat for one of my projects and I am getting some weird behavior. Up until yesterday everything was fine, but today the LED matrix flashed a quick white blink then changes to the rainbow until the raspberry pi boots up into ubuntu 22,04 completely. Afterwards, it just turns off.

I thought it was weird and tried running some code. I received this error: OSError: IMU Init Failed

I did an i2cdetect and this is what I get (Note that on 41 and 42 I have 2 other devices) 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- 41 42 -- -- -- UU -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- 5f 60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- -- 70: 70 -- -- -- -- -- -- --

I checked ls -l /dev/i2c-1 and it gives: crw-rw---- 1 root dialout 89, 1 Sep 9 21:49 /dev/i2c-1

I tried sudo nano /boot/config.txt and added dtoverlay=rpi-sense to it.

Would anyone happen to know what could be causing the problem?

Thank you for your time!

— Reply to this email directly, view it on GitHub https://github.com/astro-pi/python-sense-hat/issues/136, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN4LJHXLBBW6IO6BV3LWXVUFFANCNFSM6AAAAAAU5PLNR4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

bsimmo commented 1 year ago

Try support in the RPi support forum https://forums.raspberrypi.com/viewforum.php?f=104

On Wed, 15 Feb 2023, 11:54 pm PetriJF, @.***> wrote:

Hello everyone

I am using a sense hat for one of my projects and I am getting some weird behavior. Up until yesterday everything was fine, but today the LED matrix flashed a quick white blink then changes to the rainbow until the raspberry pi boots up into ubuntu 22,04 completely. Afterwards, it just turns off.

I thought it was weird and tried running some code. I received this error: OSError: IMU Init Failed

I did an i2cdetect and this is what I get (Note that on 41 and 42 I have 2 other devices) 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- 41 42 -- -- -- UU -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- UU -- -- 5f 60: -- -- -- -- -- -- -- -- -- -- 6a -- -- -- -- -- 70: 70 -- -- -- -- -- -- --

I checked ls -l /dev/i2c-1 and it gives: crw-rw---- 1 root dialout 89, 1 Sep 9 21:49 /dev/i2c-1

I tried sudo nano /boot/config.txt and added dtoverlay=rpi-sense to it.

Would anyone happen to know what could be causing the problem?

Thank you for your time!

— Reply to this email directly, view it on GitHub https://github.com/astro-pi/python-sense-hat/issues/136, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN4LJHXLBBW6IO6BV3LWXVUFFANCNFSM6AAAAAAU5PLNR4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

PetriJF commented 1 year ago

Hello!

Thank you for your response! I am using the raspberry pi 4b with the version 1.0 sensehat from 2015. I will try the forum as well.

PetriJF commented 1 year ago

Regarding voltages, they are slightly higher at 3.8 and 5.9. Would that cause the problem?