Back to Python projects

Rainbow Predictor

In this project you will use the temperature and humidity sensors on the Sense HAT to predict when there’s a good chance of spotting a rainbow. When the right conditions are detected you will display a rainbow on the Sense HAT LED Matrix.

Start project Download lesson plan PDF
Rainbow predictor

What you will learn

  • Physical computing - sensors
  • Boolean AND
  • RGB Colours
  • Sense HAT display

What you will need

  • We recommend using Trinket to write Python code online

Supporting material

Curriculum alignment for this project

Use this guide to see how Code Club delivers on the NDTC.

Years F-2

Years F-2

ACTDIK001 Meets

Recognise and explore digital systems (hardware and software components) for a purpose

ACTDIK002 Meets

Recognise and explore patterns in data and represent data as pictures, symbols and diagrams

ACTDIP003 Meets

Collect, explore and sort data, and use digital systems to present the data creatively

ACTDIP004 Meets

Follow, describe and represent a sequence of steps and decisions (algorithms) needed to solve simple problems

ACTDIP005 Meets

Explore how people safely use common information systems to meet information, communication and recreation needs

ACTDIP006 Meets

Create and organise ideas and information using information systems independently and with others, and share these with known people in safe online environments