- 0.4/0.5ms and 2.4/2.5ms are the pulse widths that let me achieve full 180 degree rotation, found them by trial and error as in the datasheet (which I linked in the post) I didn't find any information about itIn the spirit of Debugging by talking to the Rubber Duck I offer the following to provoke investigation -
Are 0.4 milliseconds and 2.4 milliseconds (if I've got the decimal fractions right) the correct pulsewidths for your specific servo. Might need to check the datasheet.
Could anything else on your system be accessing GPIO4? Is OneWire enabled - that uses GPIO4 by default? There other alternate functions that default to that pin.
Can you smoothly sweep from servo.min(), via servo.mid() to servo.max() and back?
- I've no idea what OneWire is, I chose GPIO4 for no particular reason and had no idea it was special. That said, I've just tried GPIO17 and it has the same behaviour
- Yes
Statistics: Posted by _FranK_ — Tue Jan 30, 2024 1:24 pm