Please post what code you have, even pseudocode. I've built a small tracked robot with IR encoders on the drive wheels and ultrasonic rangefinders front and rear - but I haven't written much code yet. I'll post what I've got, but I suspect that we ought to start a thread elsewhere with a descriptive name like Robot Drive Code. Perhaps under Software/Syntax and Programs? What would you suggest, mem?