Movement is controlled only by the number of pre-defined steps in each direction hard-coded in the sketch.
The robot has no sensors for positioning, orientation, or a way to detect the edges of the table.
Turning exactly at the right time and by the right angle is critical avoid falling off and crashing on the floor in an embarrassing pile of messy wires. First, lets see the little steppers in action! Our main character, StepperBot, is “instructed” to move in a square path on my coffee table, making 90 degree turns at the corners.