How I build the project:
While I started building this car, my first choice for micro-controller was Node MCU, but I wanted to try Arduino, so I went with Arduino UNO R3. Now I had to make a choice between making a separate console for giving vocal inputs or using an android application on our smartphone. I went with the android application as it reduces the hardware cost and also there are many such apps available on play store that are compatible with Arduino (I have given the link below).
I used an HC05 BT module to connect the Arduino to the smartphone. The app will transfer the commands as text to Arduino via Bluetooth. I have attached an L298N motor driver to control the direction of the car and sync the motors. I have attached two motors and a caster wheel in the front so when the car takes a turn it is a smooth one rather than a sharp one both motors are fixed with small toy wheels.
Now I am providing Arduino power from a 12 V battery(1.3 Ah, 15.6 Watts). L298N module has to be given power separately from the battery as Arduino I/O pin voltage is limited to 5V. I have also installed an HC SR04 ultrasonic sensor in order to sense any obstacle in the path, in which case Arduino will stop the car. I have attached a switch to power it on and off.
Circuit Diagram
![](/storage/ProjectSection/Projects/6355/voice-controlled-car/detailed-description/Circuit Diagram.png)
This was about the hardware. Now coming to the code. We have used some basic and simple commands("forward", "back", "right", "left", "right and continue", "left and continue", "turn around" and "of" as in "off") to operate this car. Now to explain the turning logic, I programmed it to stop the left wheel to turn left and stop the right wheel when to turn right. I will attach the code in attachments.
link for the application: click here
![](/storage/ProjectSection/Projects/6355/voice-controlled-car/detailed-description/car.jpeg)