Previous site
Lesson 7 / 8

Car Lab: Predicting Travel Distance with Data

Build a car, change its motor settings and measure the distance travelled. Find a pattern in a scatter plot and predict a new travel distance.

Ages 13–15
App to useCuroAI · DataWeb version
Car Lab: Predicting Travel Distance with Data

Start your car research

Notes for teachers

For ages 13–15 · two sessions, 90 minutes total. Use session 1 for the research question, assembly and driving code; session 2 for measuring, plotting, predicting and reporting. Rotate assembly, operation, measuring and recording roles.

You are researchers testing a new car. Instead of saying “It runs well”, which measurements could describe its performance?

The car for this investigation
Research question
Will a higher motor setting make the car travel farther in the same 5 seconds? State your prediction and reason before testing.

The motor setting (%) is a command sent to the motor. It is not a direct measurement of the car’s actual speed.

Assemble the test car

Follow the photos in order. Join the blocks firmly and check that the wheels turn freely.

Completed car
View the front and side

Do the wheels touch the floor evenly, and are the blocks secure? With power off, gently push the car and check that it rolls straight.

Connect and program the car

Open Curo AI Studio ↗

  1. Power and group

    Switch on both DC motors and check your kit’s group number.

  2. Connect blocks

    Select Connect blocks at the top right of the app and enter the group number.

  3. Pair your motors

    Choose a motor and pair it in Chrome’s dialog. Do not select a motor that is already connected.

Change the setting; keep the time fixed

Set both motors to 40%, drive for 5 seconds, then turn both off. For later trials, change both settings together to 50%, 60%, 70% and 80%.

Example code

The motors face opposite ways, so their rotation directions differ. Test briefly to check that the car moves straight ahead. Stop both motors before touching the wheels and keep the driving path clear.

Experiment and record

Conditions for a fair comparison
ItemMethod and explanation
Change · independent variableBoth motor settings: 40%, 50%, 60%, 70%, 80%
Measure · dependent variableDistance travelled in 5 seconds (cm)
Keep fixed · controlled variablesKeep the 5-second driving time, car, surface, starting position and load the same.
  1. Line up

    Align the same point on the car with the starting line and set both motors.

  2. Drive for 5 seconds

    After it stops, measure the distance travelled by the same reference point in cm and record it.

  3. Repeat with a new setting

    Test from 40% to 80% in order. If possible, repeat each setting and compare the variation.

Distance record · printable
Motor setting (%)Example distance (cm)Our distance (cm)
405________
506________
608.5________
7010________
8013________

The example distances are practice data from the lesson. They are not guaranteed results for your car. Enter your own measurements in your group’s column.

Analyse data and predict

Add Data Charts from Extensions at the bottom left of the app. Clear the points, set a title, then load (setting, distance) pairs separated by semicolons. Finally, show the scatter plot.

Example code

For example, 40,5 means a setting of 40% and a distance of 5 cm. Use a decimal point (.) in the app’s data string. Replace the example string with your group’s measurements for your own analysis.

Scatter plot of the lesson’s example data
40608010005101520

Horizontal: motor setting (%) · vertical: distance in 5 seconds (cm)

What does one point represent?

A pair of values from one trial: its setting and distance. For example, (40, 5) means the car travelled 5 cm in 5 seconds at a 40% setting.

Which way do the points trend?

In the example, distance tends to increase with the setting. Check whether your data show the same pattern. For a point far from the pattern, check the surface, starting position and wheels.

Predict the distance at 100%

100% is outside the measured range of 40–80%. The prediction assumes the pattern continues; it is not a real measurement. Record your estimate and reason first. Only if space and safety allow, test it for the same 5 seconds and compare.

View a calculation using the example data

Fitting a straight line to the five example points predicts about 16.5 cm at 100%. This is a linear estimate from the example data, not a guaranteed distance for the real car.

Example · dashed line: linear trend; yellow point: prediction
40608010005101520 16.5

Horizontal: motor setting (%) · vertical: distance in 5 seconds (cm)

Report your findings and reflect
ItemMethod and explanation
ResultsHow did distance change with the setting? Use evidence from the table and scatter plot.
Prediction and comparisonWhat distance did you predict at 100%? If you tested it, describe the difference and possible reasons.
ReflectionChoose one thing you did well and one to practise: measuring, recording, explaining the plot or predicting.

Stop the program, turn off the motors and put away the blocks and measuring tools.

Built it, coded it and tested it? Tap to save your progress.