Search found 2 matches
- Mon Jan 17, 2022 4:30 pm
- Forum: Development of MicroPython
- Topic: Servo in STM32 port
- Replies: 4
- Views: 24135
Re: Servo in STM32 port
Further to my previous post, I did some more experimentation I set calibration as s4.calibration(640,2400,640,2470,2200) Then manages to get to servo to move through 180 degrees as follows servo.angle(0) went to left extreme servo.angle(45) went to midpoint - 90 degrees servo.angle(90) went to right...
- Mon Jan 17, 2022 4:07 pm
- Forum: Development of MicroPython
- Topic: Servo in STM32 port
- Replies: 4
- Views: 24135
Re: Servo in STM32 port
Has anyone got this to work correctly? I have an STM32 based pyboard and cannot get the builtin Servo module to turn to an angle less than 0 degrees. A typical SG90 servo has a midpoint of 1500 microsec, 90 degrees at 2500, -90 at 1000. servo.calibration() shows values that correspond to the above. ...