Anybody using RP5 and GPIOs to control their device? It appears that pigpiod is not working on the new pi. Any alternatives ?
cheers
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
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.