Chapter 4: Boe-Bot Navigation · Page 133
Perhaps when you got a little older, and learned division in school, you started watching
the road signs to see how far it was to the destination city. Next, you checked the
speedometer in your car. By dividing the speed into the distance, you got a pretty good
estimate of the time it would take to get there. You may not have been thinking in these
exact terms, but here is the equation you were using.
speed
distance
time =
Example – Time for English Distance
If you’re 140 miles away from your
destination, and you’re traveling 70 miles
per hour, it’s going to take 2 hours to get
there.
hours2
miles70
hour1
miles140
miles/hour 70
miles 140
time
=
×=
=
Example – Time for Metric Distance
If you’re 200 kilometers away from your
destination, and you’re traveling 100
kilometers per hour, it’s going to take 2
hours to get there.
hours2
km100
hour1
km200
/hourkilometers 100
kilometers 200
time
=
×=
=
You can do the same exercise with the Boe-Bot, except you have control over how far
away the destination is. Here’s the equation you will use:
speedBot-Boe
distance Bot-Boe
timerunservo =
You will have to test the Boe-Bot speed. The easiest way to do this is to set the Boe-Bot
next to a ruler and make it travel forward for one second. By measuring how far your
Boe-Bot traveled, you will know your Boe-Bot’s speed. If your ruler has inches, your
answer will be in inches per second (in/s), if it has centimeters your answer will be in
centimeters per second (cm/s).
√ Enter, save, and run ForwardOneSecond.bs2.