You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Python hardware controller is unable to run on the Raspberry Pi 5 - it depends on the rpi-gpio package, which does not work on the Raspberry Pi 5 (see https://adafruit-playground.com/u/MakerMelissa/pages/comparing-libgpiod-and-gpiozero-speeds-on-the-raspberry-pi-5 for details). Additionally, the Python segmenter depends on scikit-image and opencv-contrib-python-headless, which do not have any available piwheel (i.e. armv7l) builds on bookworm.
Goals
Make the Python hardware controller able to run on the Raspberry Pi 5, ideally with the 64-bit version of the Raspberry Pi OS
Make the Python segmenter able to run on the Raspberry Pi 5, ideally with the 64-bit version of the Raspberry Pi OS
If possible, maintain compatibility with the last 32-bit version of Raspberry Pi OS 11 (bullseye), which was the base for PlanktoScope software v2023.9.0
ethanjli
changed the title
backend/controller: Resolve incompatibilities between the Python backend and the Raspberry Pi 5
backend: Resolve incompatibilities between the Python backend and the Raspberry Pi 5
Dec 31, 2023
It might be possible to containerize the Python hardware controller using https://github.com/dtcooper/raspberrypi-os-docker as a base image, but I'm not sure whether this would specifically solve the rpi-gpio problem since the difference between the Pi 4 and the Pi 5 is a different memory mapping for GPIO.
rpi-lgpio, which probably would not require extensive changes to the hardware controller, but which is not widely used and does not have any examples in-the-wild of usage in a Docker container
@Oumayma-hy As we rewrite the Python hardware controller, let's try to do it in a way that reduces the amount of additional work needed to make it compatible with the Raspberry Pi 5, i.e. by only using Python packages which other people have found to work on the Raspberry Pi 5. Probably 80% of this is just a matter of switching from the rpi-gpio library to the gpiod library (if that library is fine) or else the gpiozero library (if gpiod really does not meet our needs).
Motivation
Currently, the Python hardware controller is unable to run on the Raspberry Pi 5 - it depends on the
rpi-gpio
package, which does not work on the Raspberry Pi 5 (see https://adafruit-playground.com/u/MakerMelissa/pages/comparing-libgpiod-and-gpiozero-speeds-on-the-raspberry-pi-5 for details). Additionally, the Python segmenter depends on scikit-image and opencv-contrib-python-headless, which do not have any available piwheel (i.e. armv7l) builds on bookworm.Goals
Steps
rpi-gpio
package to some other GPIO libraryUnresolved Questions
Implementation History
The text was updated successfully, but these errors were encountered: