gavinlyonsrepo / RpiMotorLib

A python 3 library to connect various motor systems to a raspberry pi single board computer
https://gavinlyonsrepo.github.io/
Other
301 stars 75 forks source link

Rpi5 #26

Open lankycanadian opened 3 months ago

lankycanadian commented 3 months ago

I'm getting an error "cannot determine soc peripheral base address" with the GPIO library. It looks as though GPIO has been replaced on the rpi5 https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3

Do you have any plans to update this library to work on a Pi 5?

gavinlyonsrepo commented 3 months ago

Hi

RPi.GPIO library will not work with Raspberry pi 5 due to changes in how it handles the peripheral access. I must try and figure out if RPI.GPIO is going to be ungraded to work with Raspberry pi 5(probably not) first. If it is not going to be upgraded, I will have to find another path forward. Not sure how long this will take, In meantime I added a RP5 note to readme.

regards

bmagsalan commented 2 months ago

I'm getting an error "cannot determine soc peripheral base address" with the GPIO library. It looks as though GPIO has been replaced on the rpi5 https://www.tomshardware.com/how-to/control-raspberry-pi-5-gpio-with-python-3

Do you have any plans to update this library to work on a Pi 5?

Yeah I ran into the same issue so I wrote a shared library for it using c++ and wiringPi.

Tested with arm64 bookworm on Raspberry Pi 5 with 2 x 28BYJ-48 stepper motors.

https://github.com/bmagsalan/StepperMotor

Motors movement is asynchronous so you can move them at the same time.

The library is scalable so feel free to expand on it.