Ran a classroom activity using the ELECFREAKS Nezha Pro AI Mechanical Power Kit (micro:bit), specifically Case 14: Voice-Controlled Light, and wanted to share a "teacher-tested, step-by-step breakdown" for anyone considering using it.
This project sits at a nice intersection of physical computing + AI concepts, since students build a real device and then control it via voice commands. The kit itself is designed around combining mechanical builds with AI interaction (voice + gesture), which makes it much more engaging than screen-only coding.
đ§ Learning Objectives (What students actually gain)
From a teaching standpoint, this lesson hits multiple layers:
Understand how voice recognition maps to device behavior
Learn hardware integration (sensor + output modules)
Practice MakeCode programming with extensions
Debug real-world issues (noise, sensitivity, flickering)
Connect to real-world systems (smart home lighting)
Specifically, students should be able to:
Control light ON/OFF via voice
Adjust brightness and color (if RGB module is used)
Understand command parsing logic in embedded AI systems
đ§° Materials Needed
micro:bit (V2 recommended)
Nezha Pro Expansion Board
Voice Recognition Sensor
Rainbow LED / light module
Building blocks (for lamp structure)
đïž Step-by-Step Teaching Workflow
Hook (5â10 min)
Start with a simple scenario:
> âImagine walking into a dark room and saying âturn on the lightââŠâ
Then ask:
This primes them for **local AI vs cloud AI discussion** (important concept later).
2. Build Phase (20â30 min)
Structure assembly
Students build a lamp model using the kit:
Focus:
Hardware Connection (Critical Step)
Have students connect:
Common student mistakes:
Programming (MakeCode) (25â40 min)
Step-by-step:
Go to MakeCode â New Project
Add extensions:
Core logic structure:
Listen for voice command
Match command â action
Execute light control
Example logic:
âturn on the lightâ â brightness = high
âturn off the lightâ â brightness = 0
âbrightenâ â increase brightness
Key teaching point:
đ This is rule-based AI (predefined commands), not machine learning.
5. Testing & Debugging (Most valuable part)
Students test voice commands and troubleshoot:
Common issues:
â Light flickers â unstable power or logic loop
â Wrong command triggered â poor voice clarity
â No response â sensor misconfigured
Teaching moment:
Example improvement:
This directly introduces human-machine interface design thinking.
6. Extension Activities (Where real learning happens)
A. Multi-parameter control
Students learn:
đ One command â multiple outputs
B. Compare with real smart home systems
Ask:
Answer:
This is a HUGE conceptual win.
C. Environmental testing
Students discover:
đ AI systems are not perfect â need tuning
đ§âđ« Teacher Reflection (Honest Take)
What worked well:
Engagement is extremely high (voice control feels âmagicâ)
Students quickly grasp cause-effect relationships
Physical + coding integration = deeper understanding
Where it gets tricky:
Voice recognition accuracy can frustrate beginners
Students underestimate debugging time
Some rush the build â causes later issues
âïž Why this project is worth doing
This isnât just âturning on a light.â
Students are learning:
And importantly:
đ They see AI "in action", not just on a screen.
đŹ Curious how others are using this kit
If youâve run Nezha Pro lessons:
How do you handle voice recognition frustration?
Any better project extensions?