Voice Control Obstacle Avoidance Arduino Robot Car
14,129
27
14
Introduction: Voice Control Obstacle Avoidance Arduino Robot Car
I have made my first Arduino robot. It is a voice control with obstacle avoidance feature robot. Most of the parts were bought from Aliexpress. I did lot of work on the code and still working on code.
Things Required-
1. Arduino Uno
2. H Bridge
3. Bluetooth Module
4. Ultrasonic SR04 sensor
5. SG90 servo
6. 2 Pcs.Geared motors With Wheels
7. 1 Pc. Caster Wheel
8. Jumper Wires
9. Battery (i used 2 3.7v mobile battery in series)
Step 1: Update
Now I upgraded my arduino robot. It has a new code and new app for control.Download from here.
Step 2: Make Chessis
we can buy ready chassis from online. But i decided to make chassis my self.I made chassis from frame play and with a plastic box.
I bought 2 of the cheapest geared motors with wheels on Ebay India. You can easily find them on Ebay.These are DC motors with small gears to reduce the speed. The motors come without wires, so I soldered some wires to the terminals. These motors draw very little current so you don't need to use thick wire. Then stuck the motors to the chassis with some double sided tape. I bought a small castor wheel from local market and attach it to the chassis with help of some screw. By using a castor wheel the robot can almost turn around it's own radius.
Step 3: Connect Motor to H Bridge Module
To control the motors I use H-bridge module. By using of H bridge the whole project became very easy.
H bridge module connection to Arduino
Vcc to Battery +
Gnd to Gnd
5v to 5v pin on Arduino
Left Motor + to Ardino 6 pin
Left Motor - to Arduino 5 pin
Right Motor + to Arduino 10 pin
Right Motor - to Arduino 9 pin
Note : If your motor run in wrong direction try to swap arduino pin
Step 4: Setup Bluetooth Module
Now connect Bluetooth module to Arduino
Vcc to 5v
Gnd to Gnd
Tx to Rx
Rx to Tx
State to A0 pin
Note: unplug Tx Rx connections when programmig Arduino board.
Step 5: Ultrasonic Sensor
To detect obstacles I used an ultrasonic SR04 sensor. These sensors only cost Rs.90 on Ebay India. This sensor is well supported by Arduino. Mount the servo on the chassis with double sided tape and mount sensor on servo angle also with double sided tape.
Servo Connection:
Vcc to Arduino 5v pin
Gnd to Gnd
Signal Pin to Arduino 7 pin
Ultrsonic Sensor Connection :
Vcc to 5v
Gnd to Gnd
Tring to Arduino 3 pin
Echo to Arduino 2 pin
Step 6: Programming
I did lot of experiment with code. Finally i assembled this code.You can change voice commands in code.
Download Code Here
Attachments
Step 7: App for Controlling Robot
I download app from play store to control robot. The link is here
14 Discussions
10 months ago
The video not voice control car it is automatic
10 months ago
The video not voice control car it is automatic
10 months ago on Step 8
Can we use for four motor
1 year ago
Sir please provide programe voice control with ultrasonic sensor
Question 2 years ago
can u send me the diagrams of this project?
Question 2 years ago on Step 8
Can you please send me the complete circuit diagram of it. Please
Question 2 years ago
i wanna made this project on 4 wheels use 4 dc motors...
Kindly tell me how to edit these motors in your arduino code
3 years ago
okay man loved the project making it myself but whats the point if it hits walls and then detects the obstacle?. is there any way so that the sensor detects the obstacle before and turn before hitting the wall ofc
3 years ago
How did you make the app for controlling?
3 years ago
Never mind
3 years ago
I did not get it
4 years ago
you can work upon the code
4 years ago
cool instructions ..helped ,but i believe that using a voice control/recognition module would have done the work even better .but overall it was cool;
Reply 4 years ago
thanks.