You are viewing an older revision! See the latest version

m3pi RobotRacing

Table of Contents

  1. Lap timer

Robot racing was the very first activity we tried with the m3pi robot. The challenge was to drive around the track as fast as possible either by scripting the m3pi with some hard-coded movements, or writing a line follower.

This page pulls together the resources we've pulled together.

Lap timer

The lap timer was a novel idea using Javascript running in a web browser to catch the pipe characters "|" which started and stopped the timer.

/media/uploads/chris/_scaled_mrrtimer.png

The next part of this novel timer was to use an mbed as a USB keyboard, so it can then "type" the pipe characters to the web browser. The mbed also has a beam breaker connected to it which is used to trigger the typing!

/media/uploads/chris/robot-racing-setup3.png


All wikipages