Harry Potter Sorting Hat – Project Idea

We embarked on building the Harry Potter sorting hat as our final project.  In the HP universe, all new students at Hogwarts School of Wizardry & Witchcraft are sorted into one of the four ancient houses based on the personality of the student by a magical sorting hat. The four houses are: Gryffindor, Ravenclaw, Slytherin, and Hufflepuff.

Related image

An IR sensor, color sensor, and piezo buzzers were used along with the Atmel software, an A3BU board, an Arduino Uno board, and Arduino IDE software. This combination of sensors and programming will allow the sorting of houses as per the lore of Harry Potter.

Here are some of the ideas the project utilized:

1)    An IR sensor for knowing if someone is wearing the hat.

2)    A color sensor to take in data from hair color.

3)    Piezo buzzers to play a short tune from the movie’s theme song. (The original plan was for the hat to shout the different house names as seen in the books/movies, but due to the time constraint, this was unfortunately not undertaken).

4)    All three devices (above) were to be integrated into a circuit with a voltage divider.

5)    An Arduino Uno board was to be used for the integrated sensor circuit.

6)    The A3BU would take in the data read from the Arduino and display the specific house onto its LCD screen.