I would like to control a servo and a dc motor. I want to control the dc motor's speed by using pwm with a frequency >= 1000 Hz. The servo on the other hand expects a pwm frequency of only 50 Hz. So my idea is to control the dc motor using the hardware pwm capabalities of the pi and the servo motor using software pwm.
In particular, I use wiringPi (through Pi4J) for hardware pwm (I do not use the hw pwm methods provided by pi4j for this as they do not allow for setting the pwm frequency but I use P4J as a wrapper to access wiringPi).
I use ServoBlaster for the software pwm.
Both methods (hw and sw pwm) do work as expected when I use them alone. However, when I try to use both in a single java programm the software pwm via ServoBlaster won't work anymore. Of course I checked that hw pwm and sw pwm do not use the same pin.
Does anyone know if ServoBlaster and wiringPi do influence each other?