AI Fusion Lab Kit and the 4-digit 7segments

Hi! I can’t seem to get the 1.8 4-digit 7-segment display to work, I get these errors :

Traceback (most recent call last):
File “/home/pi/ai-lab-kit/python/1.8_4-Digit.py”, line 7, in
SDI = Pin(17,mode=Mode.OUT) # Serial Data Input
^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/fusion_hat/pin.py”, line 169, in init
self.setup(mode, pull, active_state, bounce_time)
File “/usr/local/lib/python3.11/dist-packages/fusion_hat/pin.py”, line 207, in setup
GPIO.setup(self._pin_num, self._mode.value, pull_up_down=self._pull.value)
RuntimeError: Cannot determine SOC peripheral base address

I can get the circuit to work with the Pi5 only (without the Fusion Hat) So it’s not my circuit wiring that’s at fault. Has anybody got it to work with the Fusion Hat?

EDIT: Is it possible that installing the neopixel library with :

(sudo pip3 install adafruit-circuitpython-neopixel-spi --break) in 1.9 NeoPixel LED Strip exercise

broke the dependencies, because I ran the preceding exercises and they give the same error message when using GPIO17, GPIO4’,GPIO24 etc, but when not using the GPIOs like for the servo or the RGB LED the scripts work.

Another question: Can you run a script without the Fusion Hat being involved? Like just connecting the power to the Pi5 not the Hat?

2nd EDIT I just now, made another micro SD card with the Fusion Hat installation and the error message did not appear. So maybe it would be wise and professional to tell or instruct your users either to not install the neopixel library or to do it in a virtual environment.

It looks like neopixel reinstalled the old version of RPi.GPIO.

We have encountered this issue before.

The solution is already documented in the FAQ:

To put it simply, if you get an SOC-related error, just uninstall RPi.GPIO again.

Thank you for the tip and the instructions, I’ve uninstalled the RPi.GPIO. Now my question is: is that library (RPi.GPIO) compatible with the Raspberry Pi5? I’ve been using RPi-lgpio because of that.

The RPi.GPIO library works fine for output functions on the Raspberry Pi 5, but there are issues with input functions. Of course, you can also test it yourself to see if the input issue has been resolved now.