pimoroni / rgbmatrix5x5-python

Python library for the Pimoroni 5x5 RGB Matrix Breakout
https://shop.pimoroni.com/products/5x5-rgb-matrix-breakout
MIT License
12 stars 5 forks source link

Using the 5x5 matrix alongside the camera freezes the camera #11

Open Oliverhiggins93 opened 3 years ago

Oliverhiggins93 commented 3 years ago

Hi,

I'm not sure exactly why this happens, but on my Raspberry Pi 4 I am having issues with using the RGB5x5 matrix and the Raspberry pi HQ camera.

I can turn on the pi with the camera plugged in and the matrix plugged into the correct GPIO pins, everything runs normally. If I type Raspistill -k into the terminal, the camera will begin to stream a preview overlay in the normal way. However, if I now use the 5x5 matrix using any of the included python code, the camera will freeze. It will not always freeze when the first LED pixel is lit, often it will freeze on the 2nd or 3rd pixel. Once the camera is frozen I have to reset the Pi to get normal operation back again - I cannot get rid of the overlay once it is frozen.

Do you think there could be an issue with i2c communication crossing over here? I thought perhaps it was a power issue, but I am using the official raspberry pi power supply and there's no other evidence of voltage issues.

Oliverhiggins93 commented 3 years ago

Just to add to this, the freezing seems to happen when .clear() is called

libbymiller commented 3 years ago

It might be this - https://planb.nicecupoftea.org/2019/03/27/an-i2c-heat-sensor-with-a-raspberry-pi-camera/ (a different peripheral but same problem with i2c bus perhaps?)

Oliverhiggins93 commented 3 years ago

Thanks for this, this is a great suggestion!