Jump to content
Sign in to follow this  
robotmyst

Better GPIO library for PWM

Recommended Posts

Posted (edited)

Hello

 

I'm having trouble with connecting one servo to the GPIO pins and sending PWM signals. The servo seem to jiggle / twitch. I've tried to put a capacitor as well. I tried to connect it to Arduino and it seemed smoother there.

The problem I think is because the PWM signals are not granular enough. The pigpio library for Raspberry PI is something that does this better, http://abyz.me.uk/rpi/pigpio/download.html where microseconds can be sent, instead of having a very

hard limit on dutycycle value of 0-100.

 

Can anyone help and share some ideas? Have you connected a servo that runs smoothly? If so, can you share the code? 

Edited by robotmyst

Share this post


Link to post
Share on other sites

hello @robotmyst

how do you test it and what commands do you use? have you tried accessing the gpios from sysfs?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...