Wheel Encoders
Find out why driving by time goes wrong, count wheel turns with an encoder, drive exact distances, keep straight with unequal motors and turn exact corners, then deliver the register on Spark’s worst days.
- Timing and Doing Two Things at Once: Find out why sleep() makes a robot blind, read Spark’s clock with ticks_ms(), juggle several jobs in one fast loop, then give the night patrol a flashing beacon that never stops it watching.
- Knowing Where You Are: Turn wheel ticks into x, y and heading with odometry, see how its errors creep in, then drive to checkpoints and find the way home to the charger in the dark.