Raspberry Pi 5 and GPIOs

Anybody using RP5 and GPIOs to control their device? It appears that pigpiod is not working on the new pi. Any alternatives ?
cheers

1 Like

Iā€™m also having issues with the RPi5 and GPIO.

It seems the RPI.GPIO library no longer works with RPi5.

Iā€™m trying to make progress using a package rpi-lgpio. This is supposed to provide a compatibility layer. Itā€™s not exactly straightforward for a beginner. Iā€™ve created a Python virtual environment using the line

python -m venv --system-site-packages env

activated that with

source env/bin/activate

in the root directory and installed the lgpio package with

sudo apt remove python3-rpi.gpio pip3 install rpi-lgpio

This hasnā€™t worked so far, I still get the ā€˜output not set upā€™ error. Using pinctrl Iā€™ve set my example, GPIO17 to output from none.

Iā€™m just clutching at straws now so any comment would be appreciated.

It looks like the new RPI5 IO architecture is a significant departure from the prev versions. I wonā€™t hold my breath on this one ā€¦ itā€™ll take a while for the relevant libraries to get updated.

I can go back to the RPI 4 , but whereā€™s the fun in that :slightly_smiling_face:

I2C is working , so I switched to an I/O expander ( PCF8575) instead. That complicates things a bit as I need to adapt the generic stepper motor custom output , but ok ā€¦ thereā€™s a path fwd.

Thereā€™s always a path forward. I think I might look into writing a Python script as an output, using the gpiozero library. Really new to this but seems reasonable. If not might just get a zero 2, would be the path of least resistance.

I noticed the Output support for the pi5 GPIO, however is the boolean INPUT for GPIO not supported yet? I just need one!

I was able to get a Pi 5-compatible output (On/Off) working, but I havenā€™t developed an input to read pin states yet.

I can test if, when needed, I have pi5 with mycodo master installed latest 64bit OS fully updated,

Do you know of any documents detailing how to read pin states from a Pi 5 using Python (with example code)?

This Thread is the only one so far that touches base with a work around. I donā€™t think a ā€œwork aroundā€ would be good for mycodo. I am not a coder. I hope to see inputs coming soon. And have not tried it.