DC motor driven by voice recognition
Contents
Make things
The DC motor can be turned or stopped by voice recognition.
Materials
- DC motor(I used the gear motor that comes with the AI Robot Kit here.)
- obniz Board
- Mobile batteries, etc.
- PC or Android smartphone
- Chrome
- (It’s easier to see the rotation if you have a tire or flag.)
Caution
Please note that the Web Speech API used in this article’s program does not support speech recognition in most browsers other than Chrome. In addition, the iOS version of the Chrome app is not supported, so please use Android when using a smartphone.
How to make
Hardware connection
Connect the motor to the obniz board as shown in the table, referring to the DC motor parts library.
obniz | DC motor |
---|---|
0 | OUT1 (either one of them). |
1 | OUT2 (either one of them). |