Control Smart Home With Magic Wand Video

In this video I show the end result of my “Smart Wand” project. Originally inspired by the interactive wands from Universal’s Wizarding World of Harry Potter, this project lets you control your smart home devices by moving your wand in a pattern corresponding to the desired spell.

While originally inspired by a trip to Universal, I actually put in the effort of creating it for my son’s Harry Potter themed birthday party (hence the secret message in the video). For the birthday party we had two wand stations working where the kids cast various spells to perform magic such as playing a song, changing the lights, turning on a fountain, and popping popcorn.

The project uses various types of fun technology including: 3D printing, Raspberry Pi Zero W, Raspberry Pi NoIR Camera, Home Assistant, and Python.

I have the full details of the project including source code, STLs for 3D printing, and detailed instructions. The details are split into three different posts:

  1. Wand
  2. WiFi Streaming IR Camera / Emitter
  3. Software

Control Smart Home With Magic Wand – Part 3: Software (PyPotter)

This is the third and final detailed post about controlling your smart home with a magic wand. This post will cover the software (which I’m calling PyPotter) that analyzes the streamed IR video feed to determine if a wand is present, and if so tracks the pattern the wand is making to see if it matches any of the pre-defined patterns. If the wand pattern does match a pre-defined pattern the software will make a call to your smart home controller to perform the desired action. With the right configuration you can make it do almost anything. I’ve personally turned on and off lights, changed the color of lights, played music, cooked popcorn, revealed a hidden message, and turned on a fountain all with different wand motions.

Continue reading “Control Smart Home With Magic Wand – Part 3: Software (PyPotter)”

Control Smart Home With Magic Wand – Part 2: WiFi Streaming IR Camera / Emitter

This is part 2 of the Smart Home Magic Wand series which focuses on the WiFi streaming IR camera / emitter. This is what will emit IR light out to the wand and read the reflected IR light back from the tip of the wand. Part 1 gives more background on the project and discusses the wand in depth.

This IR Camera system combines a Raspberry Pi Zero W, a Pi NoIR Camera V2, an IR filter, IR lights, and a 3D printed case to create a WiFi streaming IR camera that will be used as the input to the software that will be discussed in Part 3.

Continue reading “Control Smart Home With Magic Wand – Part 2: WiFi Streaming IR Camera / Emitter”