pimoroni / fourletter-phat

Python library for the Pimoroni Four Letter pHAT
https://shop.pimoroni.com/products/four-letter-phat
MIT License
29 stars 13 forks source link

Unit hangs #18

Open ebolisa opened 1 year ago

ebolisa commented 1 year ago

Hi, I've been running this hat for quite some time as an alarm clock display connected to a Rpi 0 2. The latter is also connected to a sound card (used to play music in place of a standard alarm buzzer) but using, obviously, different pins.

I noticed the display randomly (every 2/3 weeks) hangs so, I thought it was the Pi board doing as I experienced this failure with similar Pi0 cards in the past. However, because I can SSH in and execute a reboot, I'm convinced the display hat is hanging (not refreshing). I already eliminated a possible temperature or PS issue. Because there's no feedback from the board (at least I don't know that), I cannot catch it in my code to issue a possible reset.

Having said that, what could cause it? Could it be the onboard chip? TIA

Gadgetoid commented 1 year ago

It uses the Holtek HT16K33 which is pretty common. If there were some specific problem with the chip, I'd expect to have seen this reported more often. I had a look over Adafruit's libraries and can't see any mention of this. It must be something specific to your setup- that could mean some software bug outside of the library, a power or minor stability issue. It's hard to tell when it's so rare!

Do you need to reboot in order to recover the display, or does re-launching the python code work?

ebolisa commented 1 year ago

Hi, I've full control of the Rpi board but not of the display so, yes, I need to reboot.