This project is an ESP32-powered IoT lightsaber that uses motion gestures to control smart home devices via MQTT. By recognizing directional swings using a built-in MPU6050 IMU, the device sends specific commands to a server integrated with Home Assistant. You can trigger actions like toggling lights, playing Spotify tracks, or using TTS for weather updates—all with a flick of the wrist. Users can also record and store custom gesture sequences for new automations. Additional features include onboard LED animations, sound effects via DFPlayer Mini, and real-time debugging through WebSerial.
demo_video.mp4
- ESP32 Wrover Module
- OneButton by Matthias
- FastLED by Daniel Garcia
- MPU6050 by Electronic Cats
- DFPlayer Mini Mp3 by Makuna by Michael C. Miller
- ArduinoJson by Benoit Blanchon
- WebSerial by Ayush Sharma

