element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Fun & Games
  • Challenges & Projects
  • Project14
  • Fun & Games
  • More
  • Cancel
Fun & Games
Projects A Simple Talking Quiz Using an MCU
  • News
  • Projects
  • Forum
  • Leaderboard
  • More
  • Cancel
  • New
Join Fun & Games to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Grovety
  • Date Created: 26 Nov 2025 3:26 AM Date Created
  • Views 49 views
  • Likes 1 like
  • Comments 0 comments
Related
Recommended

A Simple Talking Quiz Using an MCU

Grovety
Grovety
26 Nov 2025
A Simple Talking Quiz Using an MCU

This is a small interactive quiz that uses a touch UI, simple graphics, and an offline speech module to create a playful way to learn about animals.

When the user taps the screen, the device shows a short question, speaks it offline, and then displays the correct animal along with an optional explanation. The goal was to make a light, self-contained form of electronic entertainment that reacts immediately, without cloud services or complex software stacks.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

The project runs on a compact MCU-based system with a capacitive touch screen and a tiny speech synthesizer module.
Each quiz item consists of an image, a short text line, and a spoken phrase.
The device displays an animal, waits for a tap, and then plays the corresponding spoken hint.
Because everything is generated on the microcontroller, the reaction feels fast and natural.

The same template can be reused for other simple games: geography quizzes, vocabulary trainers, museum exhibits, or STEM activities for kids.
In this version, the focus is on animals — a straightforward theme that makes the game easy to test and fun to demonstrate.

Components / Materials Used

  • Elecrow CrowPanel (5–7 inch touch display) – the main touchscreen interface that runs the quiz UI and sends commands when the user taps an animal

  • Grovety TinyTTS Kit – an offline speech module that generates spoken phrases directly on its internal microcontroller.

  • Small speaker – connected to the TinyTTS audio output for playback

  • UART cable / connection wires – to connect CrowPanel to the TinyTTS module

  • 5V USB power source – used to power the system

System Overview / How It Works

The system consists of two main parts:

  1. a touchscreen interface running on the Elecrow CrowPanel, and

  2. a TinyTTS module that generates speech offline.

image

The CrowPanel displays a simple grid of animal images. Each image corresponds to a short description line stored in the project assets. When the user taps an animal, the CrowPanel sends a small UART message to the TinyTTS module. The message contains the ID of the selected animal, which determines what phrase should be spoken.

The TinyTTS module receives the command and immediately synthesizes the corresponding audio line on-device. The output is sent directly to a small speaker. Because everything runs locally on microcontrollers and does not rely on cloud services, the reaction feels instant: touch → message → speech.

This architecture makes the system easy to extend. New quiz items require only an additional image and a short text string. The speech module handles all audio generation internally, without external audio files or pre-recorded samples.

Running the Firmware

You can use the project in two ways:

Option A — Run the ready-made firmware (no coding required)

This is the fastest way to try the quiz.

  1. Download the prebuilt firmware bundle from the project repository (from the firmware/ folder).

  2. Run the included Flash Tool — it flashes all required images with the correct layout.

Option B — Build from source

This option is for modifying the UI, quiz logic, or integrating new content.

  1. Open the project directory in ESP-IDF.

  2. Build and flash:

    idf.py build
    idf.py -p PORT flash
This compiles the LVGL UI, the quiz logic, and generates the required SPIFFS image.

Hardware Assembly

Connect the CrowPanel to the TinyTTS module over UART (TX-RX and GND), attach a small speaker to the TinyTTS audio output, and power the CrowPanel from a 5V USB source.

image

Customization – Editing Text and Images

You can fully customize the quiz to create your own theme. The UI, text strings, and images are defined in separate files, so you can introduce new items or replace the existing content with minimal changes. This allows the same structure to be reused for topic-based quizzes, simple vocabulary trainers, object catalogs, museum or exhibit touch displays, or small workshop demos that show how a touchscreen interface and an offline speech module communicate over UART.

1. Add or change objects in the text

  • Add new case IDs in components/ui/include/builtin_texts.h.

  • Write the spoken riddle text for each case in components/ui/builtin_texts.c.

  • Add the on-screen question and answer options for each case in components/ui/ui_events.c.

2. Connect each object to its image

  • Convert your PNG/JPG to an LVGL RAW .bin and place it into assets/.

  • Add the matching ui_img_*.c wrapper to components/ui/.

  • Map your case ID to this image in kVisuals[] in components/ui/ui_events.c.

For exact file names, code snippets, and conversion steps, refer to the detailed guide in readme_edit_scenario.md.

Source Code

The complete project is available on GitHub:
https://github.com/Grovety/Crowpanel_ImgTTS_animals

Repository Structure

  • firmware/ – Flash Tool and prebuilt binaries (application, bootloader, partitions, SPIFFS image).

  • main/ – ESP-IDF application code: UART communication with TinyTTS, asset loading, system setup, and integration logic.

  • components/ui/ – SquareLine Studio project and all UI-related code: LVGL screens, widgets, and the quiz flow (questions, answers, navigation).

  • assets/ – RAW image frames that are packed into the SPIFFS partition and shown during the quiz.

  • images/ – Images used in the project README; not part of the quiz UI.

  • readme_edit_scenario.md – Notes on how to modify the quiz content and structure.

Thanks for reading. This was a small experiment, and I hope it’s useful for anyone exploring simple ways to add offline speech to embedded interfaces. If you have suggestions or ideas for extending the project, feel free to comment.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube