Lesson 9: Respond to light

Environmental measurement and programming mathematics – Students learn about measuring light levels, storing them in memory and performing mathematics to control the robots behaviour.


Understanding variables (Worksheet 9.1)

Students learn about what a variable is in computing and how to set one up in the Edison robot. They also learn about the two different sized variables; ‘bytes’ (8 bits – 0 to 255) and ‘words’ (16 bits -32,767 to +32,767).


Program 1 – Light level alarm (Worksheet 9.2)

Students write a program that sounds an alarm when the lights in the room are turned on. This program introduces the use of variables and basic mathematics using a ‘greater than’ (>) comparison.


Program 2 – Automatic lights (Worksheet 9.3)

Students write a program that drives the robot forward while monitoring light levels. If the robot drives into a dark area the front lights are automatically turned on. This program uses a ‘less than’ (<) comparison.


Program 3 – Light following (Worksheet 9.4)

Students write a program that drives the robot towards bright light, such as that from a torch/flashlight. This program introduces more computational mathematics, using subtraction and then a ‘less than’ (<) comparison.


Animal behaviours in robotics

The light following program above demonstrates a robot behaviour that is very similar to that of a moth on a warm night being attracted to a street light.

This can make a good discussion about the intelligence of both insects and robots.

Why is an insect that is attracted to light alive, but not a robot?

  • Keep up with Edison

    Sign up for our newsletter to get all things Edison delivered straight to your inbox.

  • This field is for validation purposes and should be left unchanged.

Heads up

The Australian Federal Parliament has passed a law that extends goods and services tax (GST) to low value imports of physical goods imported by consumers from 1 July 2018.

This means that all customers purchasing Edison robots and accessories with an Australian shipping address must now pay GST. The GST will be automatically added to your purchase and show as a line item on your invoice.

We've detected that you are in Australia, so we wanted to let you know that we have changed your settings to view our Australian site, which displays GST inclusive pricing.

You can change back to the GLOBAL SITE at any time using the link in the top left of the page.

OK got it!    Take me to the GLOBAL SITE instead

Pin It on Pinterest

Share This