
The Harry Potter Kano Coding Kit pairs a build-it-yourself Bluetooth motion-sensing wand with a companion coding app.
How It Works:
- Hardware Assembly: You start by snapping together the wand’s outer plastic shell around a printed circuit board (PCB). The board houses an accelerometer, gyroscope, magnetometer, rumble pack, RGB LED, and a button, powered by two AAA batteries.
- Block-Based Coding: Once paired via Bluetooth Low Energy to a tablet or computer (Windows, macOS, iPad, or Android tablets), you use the Kano app to complete more than 70 step-by-step challenges across locations like Hogwarts, Diagon Alley, and the Forbidden Forest.
- Spell Casting: You drag and drop visual code blocks—learning logic like loops, variables, and if-then statements—to program what happens on screen when you wave the wand in specific motions (such as making feathers fly, spawning pumpkins, or changing spell colors). You can also view the underlying JavaScript generated by your blocks.
Notable Quirks & Considerations:
- Software Support: Kano Computing shifted focus away from its older hardware kits in the early 2020s, and the companion app was last updated in 2021.
- Calibration: Because the wand relies on internal motion sensors rather than a camera, it occasionally needs to be re-centered during play, and some users report finicky Bluetooth disconnects.
I had originally thought to built a Processing 4 sketch to work with the wand. However, Processing 4 (which runs on desktop Java) does not have a reliable, cross-platform native Bluetooth Low Energy (BLE) library to connect directly to the Kano wand.
A lightweight Python BLE bridge (bleak + python-osc) running in the background on a Mac, Windows, or Linux machine. It connects to the wand’s Nordic nRF52832 chip, subscribes to the reverse-engineered BLE characteristics, and streams the data over local UDP via Open Sound Control (OSC).A Processing 4 sketch using the oscP5 library that listens for those OSC packets and maps the wand’s 3D orientation and button presses to visuals—or forwards them anywhere else.
The two-part setup above was a failed attempt. It would’ve worked if it was a newer Bluetooth hardware. The Kano wand does not support OS-level Security Manager (SMP) pairing. When Windows tries to bond with it, the wand rejects the pairing request, causing Windows to abort with that red error. I have tried downgrading my Python to 3.12, resetting power cycle on my PC, implementing longer connection wait time, nothing seems to work.
Since it worked fine with the nRF connection app on my phone, I am going to try using my phone as a wireless BLE-to-Wi-Fi bridge, so it completely bypasses Windows’ Bluetooth stack. The most straight forward way to do this is a Web Bluetooth + WebSocket relay:
- Runs a tiny Python script on my PC (phone_relay.py) that hosts a local webpage + WebSocket server on the Wi-Fi network (I was only able to get this to work on my phone’s tethering Wi-Fi) and translates incoming messages straight into the exact same OSC packets (127.0.0.1:12000) the Processing 4 sketch already expects.
- My phone opens that webpage in Chrome (Android) or Bluefy (specifically for iPhone because standard iOS Safari/Chrome blocks Web Bluetooth), connects directly to the Kano wand via Web Bluetooth, and streams the quaternion and button data over Wi-Fi to my PC.
To set up Python on a Windows PC:
- Download the Python Installer: Go to the official Python downloads page and click the yellow button to download the installer for Windows. I used the latest Python manager 26.4.
https://www.python.org/downloads/release/pymanager-264/ - Run the Installer: Say yes to all questions
- Verify the Installation: I can confirm the current version of the Python installed on my computer by running the following command in the terminal (cmd):
python --version
- Install dependencies
In the terminal, install aiohttp (serves the phone webpage + WebSocket), cryptography (creates the local HTTPS certificate so Web Bluetooth works), and python-oscpip install aiohttp cryptography python-osc - Save, Unzip, and Run phone_relay.py
- Open File Explorer and go to the folder where the .py script is unzipped and saved.
- Click the address bar at the top of the File Explorer window, type cmd, and press Enter.
- This opens a terminal window already pointed at that exact folder.
- Type python followed by your file’s name and press Enter
python phone_relay.py
Note to myself: something similar as the image below except that the URL might be different from network to network.

Note to myself: After some trails and errors, the setup that worked for me was through my phone’s Wi-Fi hotspot, and the URL appears differently what’s in the image: https://10.213.146.64:8443
- Connect the wand on your phone:
- Make sure Bluetooth and Location are both switched ON in your Android quick settings (Android requires Location enabled for Chrome to scan nearby BLE devices).
- Press the button on your Kano wand once so the LED starts pulsing.
- On your phone’s Kano Wand Wi-Fi Bridge page, tap the blue Connect Wand button.When the Chrome Bluetooth popup appears, tap Kano-Wand-0d-ab-63 and tap Pair.
Note to myself: The text below the button changes to Streaming live to Processing 4!, and your PC’s terminal prints Phone connected to WebSocket relay!.
- Launch the Processing 4 sketch
Make sure the oscP5 library is installed in Processing 4:- Go to Sketch → Import Library… → Manage Libraries…
- Search for oscP5 and click Install.
- It was magical when it works!
Point the wand comfortably at the screen and press the wand’s button once to re-center (“tare”) its forward orientation.
Note to myself: Tilting, pitching, and rolling the wand rotates the 3D wand on my PC screen in real time, and holding the wand button turns the tip cyan.
- Wand Button or Spacebar: Point the wand straight at the monitor and press the wand’s button (or SPACE) to set that direction as dead-center forward.
- Hold Wand Button: Turns the wand tip cyan (buttonState == 1), which I can hook into any spell-casting or drawing trigger inside draw()
Note to myself: Always uses a new Incognito tab on the phone: Chrome silently blocks WebSocket/page reconnections when a local IP’s self-signed certificate fingerprint changes until you hard-reload the tab and accept the certificate again. On phones,










