Sparki has three special motors called stepper motors. It has two for the wheels and one in the gripper. They are used to provide precise movement.
Each time the next step is activated in the stepper, the teeth on the internal gear move forward just a little bit to line up straight with that step’s coil, then stands still as it continues to be pulled towards that step’s coil. Only when that coil is turned off, and the next step’s coil is turned on does it move. Otherwise, it will not move. By counting the steps moved, and multiplying it by the rotation per step, you can measure how much the stepper motor has rotated.
How It Works
Stepper motors are specially designed to provide predictable movement. Most motors are designed to just spin when they are turned on, and will do so until they are turned off. These motors can spin at different speeds depending on the voltage the are running or how much force they have to overcome, so it is hard to tell how much they have turned. Stepper motors solve this problem by being designed to only move forward a small, predictable amount each time they are turned on, and they are turned on in steps. This graphic demonstrates how stepper motors move from step to step:Each time the next step is activated in the stepper, the teeth on the internal gear move forward just a little bit to line up straight with that step’s coil, then stands still as it continues to be pulled towards that step’s coil. Only when that coil is turned off, and the next step’s coil is turned on does it move. Otherwise, it will not move. By counting the steps moved, and multiplying it by the rotation per step, you can measure how much the stepper motor has rotated.