7

I am currently working with a Raspberry Pi (Model B+) and have some experience with Arduino (and it's derivates).

Now, there are three Libs for GPIO access with Python for the Pi:

  • WiringPi (WiringPi2)
  • RPi.GPIO
  • RPIO

What are the advantages/disatvantages of each, since I cannot find a comprehensive list.

RPIO (latest update to version 0.10.1 2 years ago according to github) is said to replace RPi.GPIO which is somehow still maintained (latest update to version 0.5.9 2015年01月04日). Furthermore, the latest update to WiringPi2 on github is 7 months ago.

More specifically, the RPIO is said to provide better PWM results (among other things, I'm gonna control a servo) than RPi.GPIO which did a good job so far.

I'd like to work with just one Python GPIO lib.

UPDATE:

I now migrated my whole code to work with the pigpio framework which works like a charme.

asked Feb 4, 2015 at 13:09
2

1 Answer 1

3

I tried RPi.GPIO for a PWM LED strip and found I could not get a stable refresh. You might not notice it so much with a servo but it was very evident with the LEDs. I resigned myself to using hardware for PWM on RPi.

answered Feb 10, 2015 at 20:04
1
  • 2
    With RPi.GPIO, LEDs can be dimmed, but the servo was stuttering so I use RPIO for that (RPIO uses DMA to create a nice PWM-signal/square-wave). Currenty working with RPi.GPIO for "regular" GPIO access and RPIO for PWM, since migration isn't complete yet. Commented Feb 11, 2015 at 13:07

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.