Lesson 33: Speed test
How fast is the robot?
- In physics you find a speed by measuring a distance and a time.
- The robot has a timer:
brain.timer.time(SECONDS)tells you how many seconds have passed since the program started. - When you know the speed, you can work out how long to drive to go a set distance.
Words for this lesson
| Word | Meaning |
|---|---|
| speed | distance ÷ time, here in mm/s |
| timer | a clock that counts seconds |
| time taken | the later time minus the earlier time |
Speed, distance, time
| You know | You want | Use |
|---|---|---|
| distance and time | speed | speed = distance ÷ time |
| speed and time | distance | distance = speed × time |
| distance and speed | time | time = distance ÷ speed |
- Example: the gap is 600 mm and the speed is 200 mm/s, so drive for 600 ÷ 200 = 3 s.
In the exam (IGCSE Physics 0625)
- 0625/23/M/J/24 Q3: an athlete runs 2.4 km in 12 minutes. What is the average speed? Answer B: 3.3 m/s. Change the units first: 2400 m ÷ 720 s = 3.3 m/s.
- Your robot works in mm and seconds: 200 mm/s is 0.2 m/s.
Kesulitan 3/5 · 200 koin + bonus kecil pada penyelesaian pertama hari ini
Measure the robot's speed like in a physics practical. Read the timer with brain.timer.time(SECONDS), drive 600 mm, and read the timer again. Speed = distance ÷ time. Print Speed: , the speed rounded to a whole number, and mm/s.
Klik Jalankan untuk melihat output di sini.
Kesulitan 4/5 · 280 koin + bonus kecil pada penyelesaian pertama hari ini
Now use the speed to stop 200 mm in front of a wall without looking at the sensor while driving. After the test drive, measure the gap: the distance to the wall minus 200 mm. Then start driving, wait for time = distance ÷ speed, and stop. The wall is in a different place on each map.
Klik Jalankan untuk melihat output di sini.