3

I'm trying to build a toy model of self-driving car for my FYP. I have a RPi3 B+ Model with a custom 3D printed chassis which uses a futaba s3003 servo for steering front wheels.

Servo is currently externally powered with a 3.7v LiPo battery and is attached to GPIO 14, but sometimes it jitters a lot. I'm wondering if I can use any 4 of those hardware pwm pins to control this servo more steadily with standard RPIO library ?

Or is it necessary to use libraries like pigpio, pi-blaster etc... I'm not familiar with them and do not know how it control a servo with it.

Bex
  • 2,929
  • 3
  • 26
  • 34

1 Answers1

1

The RPIO.GPIO Python module can provide stable servo pulses. It uses exactly the same techniques as servoblaster and (my) pigpio and uses hardware timed pulses.

You are possibly using the similarly named RPi.GPIO Python module which uses software timed PWM and will suffer jitter as you mention.

If you want jitter free operation you will need to use pigpio, servoblaster, RPIO.GPIO, pi-blaster or similar, or use external hardware.

joan
  • 71,852
  • 5
  • 76
  • 108