PID-based odometry and dead-reckoning for a mobile robot with differential steering, implemented for a Lego RCX module. Detailed article describes theory of operation. Open Source software written in the NQC language and released under an MIT license.