08 · ESP32 · LEDs · sound
Sword of Power.
Smart film prop that powers up from a crystal
PhotoA prop sword and a crystal that talk to each other. Touch the sword to the crystal and the blade charges, glows and plays its power-up sound; every swing spends the energy.
Brief
Build a film prop whose main function is automated by a microcontroller, safe to drop, repeatable take after take and finished well enough for the camera. The hand-in was a live demonstration, the code and a short scene using the prop.
Team
A pair project. I built the sword: the electronics, wiring and code inside it. Eden Johnstone built the crystal. The sword is printed from 3dworkbench's model (CC BY 4.0).
How it works
The sword starts dark. Touching its magnet to a hall sensor in the crystal makes the crystal send a charge message over ESP-NOW: the blade fills yellow, fades to blue and plays a power-up sound. Swings, clashes and raising the blade each use up energy, and at zero it powers down. If the sword falls, or the crystal's kill button is pressed, it drops into a safe mode.
Inside the sword
An ESP32 reads an MPU6050 gyro and drives an 85-LED WS2812B strip inside the translucent blade, with a DFR0534 sound module and speaker. Swings only count rotation across the blade, so twisting the grip doesn't use energy, and the LEDs soft-start so the power supply isn't hit all at once.
Testing
Filmed tests of the start-up, the sound, the sword and crystal together, and drop tests of both parts.
Video still
Video still
Video still
Video still
Diagram
CAD