Harry Potter and the Raspberry Pi Powered Wand

We have no thought if Laptop Science is taught at Hogwarts, but when it had been then we’re positive that the Raspberry Pi would play a serious half in it. Uninterested in casting spells on the press of a button, this project from Mo “That’s-so-Mo” makes use of the wand from a Harry Potter Coding Equipment and a Raspberry Pi Zero W as a gesture controller for the not too long ago launched Hogwarts Legacy sport.
i_used_a_rpi_zero_w_and_a_kano_wand_to_cast from r/raspberry_pi
Mo’s undertaking is nice. Certain we will mash buttons to solid spells, however the gesture controller provides a bit of extra authenticity to the motion. The wand itself is Kano’s formally licensed Harry Potter wand. If the title Kano sounds acquainted it’s due to its earlier kits which merged the unique Raspberry Pi {hardware} bundled with its personal orange keyboard and plenty of laptop science based mostly initiatives. The wand is supposed for use as a method to study coding, however Mo’s undertaking makes use of it for one thing rather more enjoyable.
The undertaking is constructed utilizing a Python module from GammaGames, this handles scanning for wands and capturing gestures over a Bluetooth connection. Mo’s undertaking makes use of this module to seize the gestures that are then transformed into keypresses which are then despatched to the PC operating Hogwarts Legacy. The keypresses are transmitted to the PC by cleverly turning the Raspberry Pi Zero W (a Raspberry Pi Zero 2 W is also used) right into a USB HID system. Right here is the place Mo elevates the undertaking from easy controller to an actual wand. The Harry Potter neighborhood has rigorously curated the actions required for every spell to be solid. Mo has included these actions as gestures and now you may must adapt your swishes to make use of “Lumos”, “Wingardium Leviosa” or if you happen to’re prepared for a while in Azkaban, “Avada Kedavra”.
This enjoyable undertaking is a credit score to Mo. It’s rather more than a easy USB HID system, it’s magic for these wishing to immerse themselves on this planet of Harry Potter.
Head over to Mo’s GitHub repository to study how one can be a part of the subsequent Compute Science class at Hogwarts.