Wio Terminal Halloween Interactive Pendant - Wio Terminal (D51R) - dumpling—li - CodeCraft Hub
Scene: Maker. Edge AI application on CodeCraft Hub for Maker use cases.
Devices / BOM: Wio Terminal (D51R)
Maker application on CodeCraft Hub. Craft a spooktacular Halloween interactive pendant with Seeed Wio Terminal & CodeCraft AI! Features a vivid jack-o'-lantern display that senses motion—shake it to scatter a colony of bats across the screen! 🎃🦇 Simple natural language AI coding, zero hassle. Step up your Halloween vibe now!
Documentation
This project uses the Seeed Studio Wio Terminal and CodeCraft AI platform to build a Halloween wearable interactive pendant.
By default, the pendant displays a static Halloween theme image. When you shake it, the built-in motion sensor triggers a bat scattering animation across the screen, which automatically resets once movement stops.
Write code effortlessly using natural language prompts with AI to create your own wearable Halloween tech gadget.
Deploy steps
- Project Overview
1.1 Implementation & Target Audience
Target Audience : Makers, youth coding students, open-source hardware developers, and sensor enthusiasts.
Format : 1 set of hardware per person; independent hands-on experience covering "Sensor Logic -> AI Prompting -> Hardware Debugging -> Enclosure Assembly".
Estimated Duration : Approx. 2 to 2.5 hours.
1.2 Key Objectives
Display & Motion Sensing : Drive the Wio Terminal color screen and capture shaking movements using the accelerometer.
CodeCraft AI Programming : Master writing natural language prompts to guide AI in generating hardware control code.
Halloween Pendant Build : Implement the hardware and software logic to build a functional wearable Halloween accessory.
- Materials List
2.1 Hardware & Components
Mainboard & Display : Seeed Studio Wio Terminal × 1 (Integrated 2.4" LCD screen and 3-axis accelerometer)
Power Supply : 3.7V Battery Chassis Board OR Type-C Portable Power Bank × 1
Enclosure & Structure : Halloween-themed shell (e.g., 3D-printed pumpkin/skull frame, or black cardstock craft base)
💡 Hardware Advantage : Wio Terminal features an all-in-one design, allowing you to drive the screen and accelerometer directly without complex wiring, minimizing hardware failure rates.
2.2 Tools & Accessories
Computer : Chrome or Edge browser
Data Cable : Type-C cable (must support data transfer)
Accessories : Double-sided tape, lanyard
- Hardware Overview
Wio Terminal comes with onboard hardware resources. This project primarily utilizes:
2.4" LCD Screen : 320x240 resolution, used for rendering Halloween background graphics and animation frames.
Onboard 3-Axis Accelerometer (LIS3DH) : Detects movement and shaking intensity.
⚠️ Note : Ensure the power switch on the side of the Wio Terminal is set to ON before plugging it into your computer.
- CodeCraft AI Programming & Debugging
Open the CodeCraft online platform, create a new project, and select Wio Terminal as the target device.
4.2 Conversational Programming Example Prompt
"I am developing a Halloween interactive pendant using Wio Terminal. 1. Write code to display my provided static Halloween background image on the screen. 2. Continuously read data from the onboard 3-axis accelerometer (LIS3DH). When shaking is detected, trigger an animation of bats scattering across the screen. 3. Return to the default static background image once the shaking stops."
4.3 Further Exploration
Once the core logic is complete, try these customization ideas:
Sensitivity Tuning : Adjust the acceleration threshold in your prompt to match different walking paces or shaking intensities.
Custom Graphics : Replace the default image with your own 320x240 BMP/PNG artwork to create custom characters.
Animation Tweaks : Instruct the AI to increase bat flight speeds or change colors when extreme motion is detected.
- Enclosure Assembly & Wearing
Mounting : Insert the Wio Terminal into your 3D-printed or craft enclosure, keeping the 2.4" LCD screen fully visible.
Attaching the Lanyard : Thread a lanyard through the top mounting hole to convert it into a wearable chest pendant or backpack clip.
Portable Power : Secure the 3.7V battery chassis board to the back for cable-free operation.
- Testing & Demonstration
Motion Test : Gently shake the pendant to verify that the bat scattering effect triggers smoothly and resets when still.
Wearable Demo : Wear the pendant while moving around to evaluate screen contrast and responsiveness in low-light environments.
- Flashing & Open-Source Sharing
7.1 Flashing Firmware
Click "Upload" in the CodeCraft web interface and select the corresponding Wio Terminal serial port to flash the code.
Flash firmware to your device (in-app tool on CodeCraft Hub).
7.2 Open-Source Sharing
Export Firmware : Export the generated .bin firmware file from the CodeCraft platform.
Community Post : Share your project description, BOM, CodeCraft prompts, and demo video on maker communities to connect with fellow creators!