SERVO Settings

Issue #28 resolved
Turgut Guneysu created an issue

Hi Guys,

Just downloaded the new version v0.1.41 and started testing the SERVO features.

I noticed that while it worked OK, the servo speed settings had to be done REVERSED for the two servos in order to make them turn in the SAME direction. It is not a major problem, but just wanted to report it, since it might be a bug; may be not!

Connections:

SERVO1: G Vc S on Pin 2

SERVO2: G Vc S on Pin 3

I am using a KEYESSTUDIO Ks0308 Motor Drive Breakout Board for micro:bit. Connection pic attached.

Comments (2)

  1. John Maloney repo owner

    This often comes up with servos and motors. It is confusing, but not actually a bug. If both servos were facing the same direction, they would turn in the same direction, but when one uses them to drive wheels, one of the servos is reversed. Many servo libraries have an “invert” or “flip” command that allows you to reverse the sense of one of the servos so that the commands “set servo 1 to 50” and “set servo 2 to 50” will make the robot or vehicle go forward.

    I will change this to a feature request for a “flip servo” command.

  2. Log in to comment