Cracking the Code Creating a simple automated driving simulator

Cracking the Code Creating a simple automated driving simulator

A primary school class is using Scratch visual programming language to code instructions to make a car race around a track, helped by science presenter Minna Kane. They first draw the track using paint tools, then pick a car “Sprite”, or icon, to instruct to drive around it. They paint the headlights of the car different colours, and use IF/THEN commands in a FOREVER loop to tell the car to change direction if the headlight colour meets the background colour at the edge of their track. In this way, they can tell their car to stay on the road. They enter speed as a variable, and find that at higher speeds it is harder for the car to stay on the track, as the program has less time to react. They lower the speed to debug the program. Minna Kane wonders if speed is the only parameter that would affect the program like this, and encourages viewers to experiment themselves. Teacher notes: This could be used across a number of curriculum objectives. Design and write programs that accomplish specific goals, including simulating physical systems, working with variables and to show the use of selection and repetition in programs. It could also be used to demonstrate how a simple algorithm works.

  • 2013
  • 00:05:12
  • 9-12
  • Added on: 09/03/2019 users can access content from outside their institution. You must find your access code and then create an account.


Automobile driving simulators [LCSH] Scratch (Computer program language) [LCSH] Programming languages (Electronic computers) [LCSH] Computer programming [LCSH] Computer science [LCSH] Information technology [LCSH]
Minna Kane (Host), Chris Atteshlis (Producer), Tim Froggatt (Producer)
Closed captioning
Not available
MARC Record
View Download

Teacher Guide(s)

  • How to Use Video Effectively in the Classroom [.pdf]

    How to Use Video Effectively in the Classroom [.pdf]

Can be found in

The new version of Curio is available!

Access this page through the new version and discover a whole new experience.

Try the new version