Problems with Servo Rotation on Micro:bit Driver Expansion Board

So I'm running a Goteck micro metal gear servo (SKU:SER0011) on the Micro:bit Driver Expansion Board (SKU:DFR0548) using the recommended library (https://github.com/DFRobot/pxt-motor) and the following code:
The problem that I am having is that I am not getting the full 180 degrees rotation. The servo will rotate to 180 degrees, but not to 0 - it stops just over half way.
When I connect the servo to GPIO pin 0 I get the full 180 degree rotation. This is without a library and using the following code:
Is this a hardware problem, or maybe an issue with the github library? Any advice would be appreciated.
Code: Select all
input.onButtonPressed(Button.A, () => {
motor.servo(motor.Servos.S1, 0)
})
input.onButtonPressed(Button.B, () => {
motor.servo(motor.Servos.S1, 180)
})
The problem that I am having is that I am not getting the full 180 degrees rotation. The servo will rotate to 180 degrees, but not to 0 - it stops just over half way.
When I connect the servo to GPIO pin 0 I get the full 180 degree rotation. This is without a library and using the following code:
Code: Select all
input.onButtonPressed(Button.A, () => {
pins.servoWritePin(AnalogPin.P0, 0)
})
input.onButtonPressed(Button.B, () => {
pins.servoWritePin(AnalogPin.P0, 180)
})
pins.servoSetPulse(AnalogPin.P0, 1000)
Is this a hardware problem, or maybe an issue with the github library? Any advice would be appreciated.
2019-02-08 23:37:47 i have same problem here
and i have no idea of it
any one can tell me ,how to let it move to 180
cycheung
and i have no idea of it
any one can tell me ,how to let it move to 180
