In this project I'll show you how make voice controlled car with esp motorshield and MIT app Inventor.ESP motorshield
There's not so much information on the Internet about this board. First of all this shield for ESP-12E Dev Kit and NodeMcu boards and not for all, because width between pins is 25mm and that's not enough for some boards like LoLin. In my project I used NodeMcu Amica.
This shield board is driven by the special excent large power full-bridge chip L293DD from the famous Stmicroelectronics company, which can directly drive 2-channels DC motors or one-channel stepper motor. The driven current can be arrived at 1.2A.
- Motor power: can be up to 36V.
- ESP power: can be up to 9V. Because it goes straight to the esp without any voltage regulators.
Also these pins have common ground, you can connect voltage supply to one pin and use shortcut for other(if voltage less than 9V).
Board uses 4 pins to control motors. PWMA, PWMB- speed of motors. DA, DB-direction of motors(0-straight;1-reverse).
Here pinout for NodeMcu Amica.
That's how I connected all this stuff. For power supply I use 2 Samsung INR18650-30Q connected in series. About motors, I connect 2 motors in parallel to each motor outputs- PWMA(Left side), PWMB(Right side).Make sure that motors will rotate in one direction when you connect it.MIT app Inventor
I used MIT app Inventor, because it is a simple way to create an Android app and it has voice recognition.
This app contains text field- you can enter IP address of esp server, button- after you press the button, you can command your car by voice.
OK, let's look how this works.
When you press button it calls voice recognition and you can say some command.
After voice recognizer got the command we should handle it..
Program sends web requests in depend on what command was. If voice recognition fails or you said some other command that not in our list, we do nothing.
Here we getting response from esp. If response code 200, all is fine.Esp code
This code deploys web server on esp. Code is attached below.
When you uploaded code to esp you should open COM port to see what address of esp server and type it in text field in MIT app Inventor.Demonstration video
I'm currently freelancer. For hiring, you can contact me at email@example.com