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.
You can also download printable version of the full curriculum.