Recommended Free Tools
Yes—you can turn on an Ollivander-style lamp by waving a Harry Potter wand. The original “Raspberry Potter” project uses a Raspberry Pi, an infrared-sensitive NoIR camera, an infrared LED, computer vision, and a wand with a reflective tip. The wand does not send a wireless command: the camera tracks the reflected infrared spot, classifies its path, and tells an LED light source which effect to display.
The original Make: project was published in 2017 and updated in 2023, but its Raspberry Pi 3, Raspbian Jessie, legacy PiCamera software, and Particle Internet Button should be treated as historical components. For a new build, keep the optical idea and replace the unavailable or outdated parts.
As an Amazon Associate I earn from qualifying purchases.
How the gesture-controlled lamp works
Reflective wand tip
↓
IR illuminator + NoIR camera
↓
Raspberry Pi + OpenCV trajectory tracking
↓
GPIO output
↓
RGB LED controller
↓
Decorative lamp
A 940 nm infrared LED illuminates the wand tip. A NoIR camera can see infrared, while a filter reduces visible-light interference. OpenCV isolates the bright reflected spot and records its movement. The software then compares that trajectory with predefined patterns.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →In other words, “casting a spell” is a friendly description for optical tracking and trajectory classification—not wireless communication from the wand.
#1 Best Overall
- Officially authorized by Warner Brothers. Wand measures 14 inches in length.
- Wave the wand and the light goes on - Wave it again, and it turns off!
- Using the key that was included in the wand tray, insert key into the bottom of the wand and rotate counter-clockwise to remove battery cap
- Insert 2 AAA batteries (not included) with the '+' sides facing into the wand and the '+' sides facing the battery cap for both batteries. Both batteries are facing the same direction.
- Once the batteries are properly installed, replace the battery cap by rotating the cap in a clockwise direction by hand. You will need to use the key to tighten the cap until snug. Be careful not to overtighten or strip the key slot
The three original spells
| Spell | Wand movement | Effect |
|---|---|---|
| Lumos | Right, then up | Turns the lamp on |
| Nox | Right, then down | Turns the lamp off |
| Incendio | Left, then up | Activates a fire-effect lighting pattern |
The movement must stay inside the camera’s field of view. The wand need not be an official interactive Harry Potter wand: a wand-shaped stick with a flat, shiny sequin or pearl sticker can work. A faceted ornament may reflect infrared unpredictably, so a small flat reflective surface is usually the better choice.
What the original build used
- Raspberry Pi 3 Model B and microSD card
- Original Raspberry Pi NoIR camera
- Particle Internet Button with a Photon and 11 RGB LEDs
- 940 nm infrared LED and a suitable current-limiting resistor
- Infrared filter film or developed photographic film
- Micro-USB power cable, jumper wires, and hookup wire
- Hurricane-style lamp
- Frosted-glass spray paint
- Optional wand, sequin, or pearl sticker
- Drill, rotary tool, pliers, hobby knife, hot-glue gun, and optionally a soldering iron
The original lamp is best understood as a low-voltage LED prop. It does not provide a general recipe for safely switching a mains-powered household lamp.
Hardware choices in 2026
Camera
A current Raspberry Pi Camera Module 3 NoIR is a practical replacement class. It has a 12-megapixel infrared-sensitive sensor, but it is not a software or mechanical drop-in replacement for the original Pi NoIR camera. Current Raspberry Pi systems use the libcamera stack and commonly use Picamera2 rather than the old picamera package.
See the Camera Module 3 NoIR listing and Raspberry Pi’s camera documentation for current compatibility information.
Light source
The Particle Internet Button gives the historical build its distinctive RGB effects, but it is now a poor default choice for a new project. The product listing currently indicates limited availability, and Particle’s Raspberry Pi documentation is marked discontinued. Use it mainly when restoring an existing build.
A modern replacement can be an addressable RGB ring, a small RGB LED board, or a low-voltage LED puck or strip controlled by an appropriate driver. This removes the Particle dependency but requires new output code.
Infrared illuminator
The original project references a 940 nm IR LED, including Adafruit product #387. Equivalent 940 nm LEDs are suitable if their electrical specifications match your circuit. Calculate the resistor from the supply voltage, LED forward voltage, and desired current:
resistor = (supply voltage - LED forward voltage) / LED current
Never connect an LED directly to a Raspberry Pi GPIO pin without current limiting, and do not exceed the GPIO’s current limits.
Rank #2
- Harry Potter wand: Expelliarmus. Featuring magical visual effects & sounds from the movies, this authentic 11-inch replica Harry Potter wand is a must-have for fans. Recreate your favorite scenes
- Exciting spell effects: Experience the wand’s spectacular effects. Wave the wand as you pretend to cast spells & watch it come to life with 40 seconds of sounds & a magical sparkle effect from the tip
- Fun for pretend play: Play out memorable scenes from the movies & act like your favorite characters. The Spectacular Spell Wand is a fun way for kids & fans to immerse themselves in the wizarding world
- Express your fandom: Complete your Harry Potter costume with the Spectacular Spell Wand for the ultimate role-play. Includes 3 LR44 batteries. Fun addition to your collection of Harry Potter wands
- Harry Potter gifts & toys for kids: Discover Spin Master’s Harry Potter toys & games, dolls & accessories, wands, toy figures & playsets. These toys for girls & boys are spellbinding gifts
Historical wiring
For a faithful reconstruction, the original Make: wiring assigns the Particle device as follows:
| Particle connection | Raspberry Pi connection |
|---|---|
| A0 | Physical pin 15 |
| A1 | Physical pin 16 |
| A2 | Physical pin 18 |
| 3.3 V | Shared 3.3 V supply |
| GND | Shared ground |
These are physical pin numbers, not BCM GPIO numbers. Confirm the numbering against the schematic and board documentation before applying power. For a modern LED replacement, use the replacement board’s wiring and current requirements rather than copying this table automatically.
Build the lamp enclosure
- Remove the burner and wick assembly from the decorative lamp.
- Create a safe route for wires through the burner area, modifying the wick channel if necessary.
- Apply several light coats of frosted-glass spray paint to diffuse the LEDs. Add a stencil, such as a Deathly Hallows symbol, after the frosting has cured.
- Drill separate openings in the base for the camera lens and IR LED.
- Cut an access opening for the Raspberry Pi and smooth, crimp, or cover sharp metal edges.
- Position the camera and IR illuminator so the camera sees the area where the wand will move. Keep the IR LED out of the camera’s direct reflection path.
- Test detection before permanently closing the enclosure.
- Install the LED source, route the wiring, and secure components with hot glue only after the optical alignment works.
Frosted glass spreads the light and hides individual LEDs, but it also reduces apparent brightness. Removing the translucent cover from the original Internet Button can increase brightness; do not compensate by exceeding the board or LED ratings.
The original software path—historical only
The published build assumes Raspbian Jessie with Pixel, OpenCV, PiCamera, imutils, pigpio, and the author’s rpotter repository. Its installation commands include:
sudo pip install --upgrade "picamera[array]"
sudo pip install imutils
pigpiod
It also installs a SysV startup script with:
sudo chmod 755 /etc/init.d/rpotter-startup
sudo update-rc.d rpotter-startup defaults
Do not assume these commands work unchanged on current Raspberry Pi OS. The old PiCamera package, Python packaging rules, camera APIs, and startup conventions have changed. A faithful restoration is best done on an isolated, historically compatible image. A new build should use the current camera stack, a virtual Python environment where appropriate, and a systemd service instead of relying on /etc/init.d.
The original project is documented by Make:. Treat its code and pin diagram as the reference for the historical build, not as a guaranteed current installation guide.
A sensible modern architecture
- Test the camera first. Verify that the NoIR camera produces an image and that the wand tip is visible under infrared illumination.
- Test the lamp separately. Control the RGB board or low-voltage LED without involving computer vision.
- Port only the output layer. Keep the trajectory idea, but replace Particle-specific calls with GPIO, an LED-library interface, or a local controller.
- Add a service after manual testing. Run the camera program from the command line until it is stable, then create a current
systemdservice with the correct user, working directory, device permissions, and restart policy. - Calibrate in the final enclosure. Glass, metal, frosting, camera angle, and LED placement all affect the tracked image.
The Camera Module 3 NoIR offers more resolution than the original camera, but higher resolution alone will not make the old thresholds or timing assumptions work. Capture settings, exposure, focus, image size, and blob thresholds may all need adjustment.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Calibrate gesture recognition
- Display a debug preview with the detected point and its trajectory.
- Log the point coordinates while moving the wand through each spell.
- Choose a clear starting zone so random reflections do not trigger a spell.
- Use tolerance bands rather than requiring exact pixel coordinates.
- Set minimum and maximum gesture durations so very slow noise and rapid flashes are rejected.
- Require a short cooldown after a successful spell to prevent repeated triggers.
- Test one gesture at a time before enabling all three.
The original author reported the best results in darkness or low light, at approximately 2–6 feet from the lamp, with stronger IR illumination needed in brighter conditions. Treat those figures as the original project’s reported operating conditions, not a guaranteed result for a modern camera or enclosure.
Rank #3
- Officially authorized by Warner Brothers
- Magically control any IR device with a flick of the wrist.
- Program up to 9 gestures. Requires 2 "AAA" batteries (not included)
- Universal Remote Wand: Operates with any IR device, including TVs, Blu-ray players, and speakers
Troubleshooting
The wand is not detected
Confirm that the camera is a NoIR or otherwise infrared-sensitive model, the IR LED is powered and aimed correctly, and the wand tip is actually reflective at infrared wavelengths. Reduce sunlight and incandescent light, check the camera filter, and try the reported 2–6-foot range. Ensure the bright spot is not being clipped by exposure settings.
Several points are detected
Glass, shiny metal, a faceted wand ornament, and bright infrared sources can create false blobs. Use a flat reflective tip, shield or darken reflective surfaces, narrow the camera’s view, tighten the threshold, and adjust the blob-size filter. Reposition the illuminator so it does not reflect directly from the lamp.
The wrong spell is recognized
The movement may begin outside the frame, be too fast or slow for the capture rate, pause unexpectedly, or cross a tolerance boundary. Use the debug trajectory, define a starting area, add duration limits, and require the complete directional sequence before triggering the output.
Free tools Windows power users keep installed
One-click scans. No signup required.
The lamp does not respond
Test the light controller independently, verify shared ground and power, check physical-versus-BCM pin numbering, and confirm that the camera program reaches the output function. On a modern replacement, check the LED board’s logic level, power supply, and library permissions.
The software will not install
That is expected when attempting to reproduce the old commands on a current operating system. Choose either an isolated historical environment or a genuine port using current camera APIs, current Python packaging, and a modern service manager. Do not treat sudo pip install --upgrade "picamera[array]" as a current universal solution.
Safety: use low-voltage lighting
A low-voltage LED prop is the safest beginner version. A mains lamp introduces shock, fire, insulation, strain-relief, enclosure, grounding, and relay requirements. Do not run household mains wiring through a decorative lamp base or connect mains directly to Raspberry Pi GPIO.
If the goal is to control a conventional lamp, use a properly certified smart plug or a correctly enclosed, appropriately rated relay system. For a first build, keep the magic inside the lamp: use a low-voltage RGB module, LED strip, or puck.
Which version should you build?
| Approach | Best for | Main trade-off |
|---|---|---|
| Faithful restoration | Collectors and readers who already own a Pi 3, original NoIR camera, and Particle Button | Closest to the original, but difficult to source and maintain |
| Modern optical remake | New makers who want the original wand-tracking effect | Requires current camera code and a replacement LED controller |
| Real-lamp control | Readers who specifically need a conventional lamp switched | Requires certified mains hardware and a different control architecture |
For most builders, the best choice is a modern NoIR camera, a Raspberry Pi, a 940 nm illuminator, and a locally controlled low-voltage RGB light source. It preserves the original illusion while avoiding dependence on discontinued Particle hardware.
Ideas for extending the project
Once the optical tracking is reliable, add more trajectory patterns, colored responses, strobe or rainbow effects, a fan, a servo-driven prop, or sound effects. Connect only low-voltage, properly driven devices directly to the project. Higher-voltage loads require an appropriate interface and enclosure.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

