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
We're sorry! You do not have access to this document because you are not currently subscribed to this channel. To subscribe to this channel, please submit a request.


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