Step-Sense Light - Grove Shield for Seeed Studio XIAO - dumpling—li - CodeCraft Hub
Scene: Smart Home. Edge AI application on CodeCraft Hub for Smart Home use cases.
Devices / BOM: Grove Shield for Seeed Studio XIAO, Seeed Studio XIAO ESP32S3, Grove - 3 Axis Accelerator(LISDJTR), Grove - RGB LED Stick (20)
Smart Home application on CodeCraft Hub. This project is a physical interactive sensing device based on the XIAO ESP32-S3 and the LIS3DHTR 3-axis accelerometer. By capturing subtle vibrations transmitted through the ground or structural components, it triggers a LED strip to emit a sudden burst of intense light that smoothly fades away.
Documentation
Features: Instant Burst · Vibration Wake-up · Immersive
Deploy steps
- Hardware Connection
Insert the XIAO ESP32-S3 into the Grove Shield for Seeed Studio XIAO. Connect the LIS3DHTR accelerometer to the I2C interface (D4, D5) of the Grove Shield, and connect the WS2813 RGB LED strip to the D9 interface.
1.XIAO ESP32-S3 (Main Controller)
Insert the XIAO ESP32-S3 into the Grove Shield: Ensure the USB port aligns with the shield's orientation and press the pins firmly into place.
2.LIS3DHTR 3-Axis Accelerometer (Input)
VCC → XIAO 5V
GND → XIAO GND
SDA → XIAO D4
SCL → XIAO D5
3.WS2813 RGB LED Strip(Output)
VCC (5V) → XIAO 5V
GND → XIAO GND
DIN (Data) → XIAO D9 (GPIO8)
- Firmware Flashing
Use the firmware flashing tool below to upload the "Impact Feedback Logic" firmware to the XIAO ESP32-S3.
Click the "Flash Firmware" button below, follow the prompts to select the corresponding serial port, and connect the device.
The flashing address is 0x0 (default configuration).
If the device is not recognized, double-click the Reset button on the XIAO to enter Download Mode and try again.
Flash firmware to your device (in-app tool on CodeCraft Hub).
- Powering On and Usage
After successfully flashing, press the Reset button on the XIAO-ESP32-S3. The system will enter "Standby Sensing" mode.
Static State: When there is no vibration in the environment, the LED strip remains completely off (Stealth Mode)
Impact Sensing: When someone walks on the stairs or taps the installation structure, the LED strip instantly bursts with 100% brightness cool white light.
Fading Effect: After the burst, the light fades out smoothly in an exponential decay over approximately 1-2 seconds until it is completely extinguished.
- Future Expandable Directions
Beyond the basic impact feedback, the following functions can be further expanded:
Cycling Bump Safety Warning:By detecting vehicle body vibrations caused by road bumps, the device triggers the LED strip to light up instantly. This serves as a real-time alert for cyclists to pay attention to road conditions and slow down for safety.
Smart Drum Pad/Instrument:Install on a practice drum or striking pad to transform every hit into a synchronized visual spark.
Pace Warning Mat:Install in quiet office corridors to provide a flashing light reminder ("Walk Softly") when fast running or heavy footsteps are detected.
Stress-Relief Interactive Wall:Arrange multiple sensor modules in a matrix to create an interactive wall where light and shadow react to physical taps.