Servo Issues #114
-
Attempting to use the PwmOutputDevice device = new PwmOutputDevice(18);
device.setValue(.049f); // swings to ~ 30 degrees
device.setValue(.05f); // swings to ~ 170 degrees This, on the other hand, does not engage the servo at all: ServoDevice device = ServoDevice.Builder(18).setTrim(TOWERPRO_SG90).build();
device.setAngle(30f); Am I missing something or is this really more an artifact of the Software PWM implementation? (I really don't like Python and was hoping |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I'll look into this ASAP |
Beta Was this translation helpful? Give feedback.
-
FYI I've just pushed an update that includes a few fixes in this area. There's a new set of unit tests for servo devices via native servo control (e.g. Picon Zero, Arduino), as well as hardware and software PWM. |
Beta Was this translation helpful? Give feedback.
-
Servo fix verified for both hardware (18) and software (23) PWM. Both produce full sweeps from 0 to "real close to" 180 degrees. |
Beta Was this translation helpful? Give feedback.
Servo fix verified for both hardware (18) and software (23) PWM. Both produce full sweeps from 0 to "real close to" 180 degrees.