Food lottery machine - Seeed Studio XIAO ESP32S3 - dumpling—li - CodeCraft Hub
Devices / BOM: Seeed Studio XIAO ESP32S3, round oled
When everyone says 'whatever' to lunch plans, I built a Decision Maker. Just give it a firm shake, and the flashing screen instantly freezes on an answer. It’s more than just a cold circuit board—it’s the most decisive 'Digital Mouthpiece' you’ll ever have.
Documentation
This project is a fun physical interaction device based on the XIAO ESP32-S3 and a Round Display . Addressing the ultimate dilemma of "What to eat today?", the device simulates a "lottery" mechanism: when the user long-presses the screen for 0.2 seconds , the rapidly flashing sequence of food frames freezes instantly to provide a unique dining suggestion.
Deploy steps
- Hardware Connection
Insert the XIAO ESP32-S3 into the Round Display extension board socket.
Align the USB port with the shield's orientation and press firmly.
Connect to a computer via USB Type-C for firmware flashing.
- Firmware Flashing
Flash firmware to your device (in-app tool on CodeCraft Hub).
- Powering On and Usage
Random Flashing : Upon power-up, the screen flashes food1 to food7 images rapidly, displaying "What to eat today" in the center.
Decision Lock : Press and hold the screen for over 0. 5 seconds to freeze the image.
Result Display : The text "LET'S EAT THIS" appears for 3 seconds before the system resets to flashing mode.
- Future Expandable Directions
[Roll Call Mode]: Replace food images with student name cards to instantly transform the device into a classroom management tool.
[Voice Feedback]: Integrate with a Grove Speech Recognizer/Player to audibly announce the results at the moment of selection.
[Motion Interaction]: Incorporate a 3-axis accelerometer to enable a "Shake-to-Pick" feature, simulating an authentic lottery or fortune-telling experience.
[Diverse Content]: Develop specialized firmwares for various use cases, such as "Daily Horoscopes," "Truth or Dare," or "Random Idiom Challenges.
- Keep Exploring
XIAO Round Display Creative Guide #2: Blinking Cyber Eye