This is a guide for calibrating 360 degree servos for use with :MOVE mini for the BBC microbit. To make the task a little easier we created a couple of custom blocks for the Microsoft MakeCode editor.
The :MOVE mini uses 360 degree servos to drive the wheels. Unlike a 180 degree servo, these do not have a position feedback. To let us drive the :MOVE mini accurately we need to use some knowledge of how fast it moves, and then let it move for a certain amount of time.
Before getting started, there is a guide for adding these blocks to the MakeCode Editor, which you can find here.
Calibrating 360 Degree Servos For :MOVE mini:
To calibrate the servos for angle and distance first you need to write a little bit of code to determine how far the :MOVE mini moves (distance and angles) in a certain time.
Button A turns for 1 second. Measure the angle that the :MOVE mini turns through and then put that into the calibrate turn speed block in an on startup bracket.
Similarly, button B drives forward for 1 second. Measure how far it travels and put that into the calibrate distance block.
These values will all be slightly different for each :MOVE mini due to manufacturing tolerances in the components.



