RoboticsGeneral

Problems with Servo Rotation on Micro:bit Driver Expansion Board

userHead seanvernall 2018-08-07 08:11:57 5651 Views3 Replies
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:
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-26 22:54:55 I have faced quite the same issue, but not the same. userHeadPic linda00019
2019-02-08 15: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
userHeadPic cycheung
2018-10-07 16:40:02 Anybody? userHeadPic seanvernall