Skip to content
This repository has been archived by the owner. It is now read-only.
In this lesson, students will create a Raspberry Pi-powered Harry Potter style sorting hat. Students will also learn how to connect a Pibrella and program it to control the sorting hat
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
code
lesson-1 Update worksheet.md Aug 10, 2015
CONTRIBUTING.md Create CONTRIBUTING.md Dec 30, 2014
LICENCE.md Create LICENCE.md Dec 30, 2014
README.md Archive resource Jan 24, 2019
cover.png
hardware.yml Remove URLs from harware.yml Mar 22, 2016
ks2.md Rename ks2.yml to ks2.md Jan 12, 2015
ks3.md Update to new style Jan 11, 2015
learn.md updating with curriculum links Mar 23, 2017
meta.yml Update meta.yml Aug 8, 2015
overview.md Copy edit Aug 5, 2015
software.md copy edit Aug 11, 2015
software.yml Move teacher instructions to software page Jan 14, 2015

README.md

This is an archived resource. The repo will remain available but the resource will no longer be maintained or updated. Some or all parts of the resource may no longer work. To see our latest resources, please visit raspberrypi.org.

Raspberry Pi Sorting Hat

Sorting children into houses can be time-consuming, but with magic Hogwarts were able to sort their yearly intake into houses really easily. Let's replace the magic with some code to achieve the same result!

In this lesson, students will create a Raspberry Pi-powered Harry Potter-style Sorting Hat, using the button on a Pibrella add-on board.

It is assumed that students have prior knowledge of the programming concepts of loops, conditionals and functions in Python. Alternatively, the lesson can also be completed using Scratch.

Students will learn

  • How to create a random group generator based on the Harry Potter Sorting Hat.
  • How to use functions, variables, randomisation, conditionals, and loops.

Computing program of study met

KS2:

  • Design, write and debug programs that accomplish specific goals; solve problems by breaking them into smaller parts.
  • Select, use and combine a variety of software on a range of digital devices to design and create a range of programs.
  • Use sequence, selection and repetition in programs; work with variables and various forms of input and output.
  • Use logical reasoning to explain how some simple algorithms work; detect and correct errors in algorithms and programs.

KS3:

  • Use two or more programming languages, at least one of which is textual, to solve a variety of computational problems.

Resources

For the majority of the lesson, it is suggested that work is carried out by students on a Raspberry Pi in pairs or a small group. Each pair or group should have access to the standard equipment described below:

  • A Raspberry Pi
  • The latest NOOBS SD card with Raspbian installed
  • A keyboard and mouse connected to the Raspberry Pi
  • A monitor connected to the Raspberry Pi
  • A Pibrella
  • 1 x speakers or headphones
  • Hat

Lesson Plan

Licence

Unless otherwise specified, everything in this repository is covered by the following licence:

Creative Commons Licence

Sorting Hat Lesson by Raspberry Pi Certified Educator Simon Johnson and the Raspberry Pi Foundation is licenced under a Creative Commons Attribution 4.0 International License.

Based on a work at https://github.com/raspberrypilearning/sorting-hat-lesson & http://teachwithict.weebly.com/harry-potter-sorting-hat.html

You can’t perform that action at this time.