Move servo motor by voice recognition
Contents
Make things
Control a flag waver using speech recognition.
If you say “Tadaima” (“I’m home” in Japanese), the flag with the word “Welcome back” moves.
Materials
*included in Starter Kit
How to make
Hardware connection
Connect the servo motor to the obniz Borad referencing to the library of servo motor.
Software
Uses the browser’s speech recognition API called Web Speech API.
Check the browser compatibility here.
recognition.onresult is executed when you finished speaking the word.
If the obniz recognizes the word as “Tadaima,” it moves the servo motor to wave the flag.