Example Code for micro:bit-AI Sound-control Door
The article provides a comprehensive guide on creating an AI sound-control door using micro:bit, detailing hardware and software preparations, wiring diagrams, sample code, and the learning and adjustment phases for effective implementation.
Hardware Preparation
- LED module
- servo
- servo controller
- sound sensor
- micro:bit board
- NeurOne module
Software Preparation
Mind+
Wiring Diagram

Other Preparation Work
Connect the sound sensor to the NeurOne's input interface.
Sample Code

Result
- Learning Phase: Release the learning button to finish the study phase.
- Adjustment Phase: Repeat the voice command to check if the servo moves.
Was this article helpful?
