Guide
1/22/2018 micro:bot Kit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/microbot-kit-experiment-guide/all#about-the-motobit-board 69/75
Unlike the action of most motors that continuously rotate, a servo motor can rotate to and hold a specific angle until it
is told to rotate to a different angle. You can control the angle of the servo by sending it a Pulse Width Modulation
(PWM) pulse train (turning a pin on and off really fast at different intervals); the PWM signal is mapped to a specific
angle from 0 to 180 degrees in the servo block in MakeCode.
Inside of the servo there is a gearbox connected to a motor that drives the shaft. There is also a potentiometer that
gives feedback on the rotational position of the servo, which is then compared to the incoming PWM signal. The
servo adjusts accordingly to match the two signals.
Hardware Hookup
In this experiment you will actually be using two different servo motors to create a Battle Bot! One will be used as a
“left” jousting lance and the other as the “right”. If you look at the servos, you will notice that they three wires have