ofxGPIO icon indicating copy to clipboard operation
ofxGPIO copied to clipboard

servo example on rpi 2 - no movement

Open 0Kraft opened this issue 6 years ago • 1 comments

hi, first of all thank you for you extraordinary work!

can you give me some hint why my servo isn't moving. your example code compiles without errors, runs without errors. but servo stands still. when i try to move the servo with python code it works fine, so its no power or current issue or general I/O issue. it's a small sg90 servo. Do you have an idea where i can start to investigate?

Greetings

0Kraft avatar Oct 30 '18 19:10 0Kraft

Hi @0Kraft,

there are problems with the management of PWM in ofxgpio. you can try to use pin number 18 (GPIO18) to see if the example works. be sure to run the example as a super user to avoid problems with permits.

in the future I will fix this.

Ciao

kashimAstro avatar Nov 07 '18 08:11 kashimAstro