DIY Arduino Voice Controlled Robot

Published Nov 12, 2022
 3 hours to build
 Beginner

Motions can be controlled by the user by giving specific voice commands.

display image

Components Used

Arduino UNO
Arduino UNO
1
Bluetooth Module HC-05
Bluetooth is a wireless communication protocol used to communicate over short distances. It is used for low power, low cost wireless data transmission applications over 2.4 – 2.485 GHz (unlicensed) frequency band.
1
SPDT Slide Switche
Slide Switches Large-sized Type 1P2T
1
L293D Driver
L293D Driver
1
DC Gear Motor
AC, DC & Servo Motors 12V DC planetary gear motor, 27 rpm, 1/150 gear ratio, 37mm diameter
4
12V Rechargeable Lithium Iron Battery
LiFePO4 - Lithium Iron Phosphate Battery 12V 7.5Ah LiFePO4 5.95 x 2.56 x 3.70"
2
Description

      Some time ago I introduced you to an Arduino Robot that had the ability to track an object moving in front of it. This time I used the same robot, but now I have added a Bluetooth controller so that now motions can be controlled by the user by giving specific voice commands.

The speech is received and processed on a Smartphone which then sends commands to the Robot. A few years ago I made a similar project that uses the same Android application, which is a home automation system and you can see it on: https://www.youtube.com/watch?v=IOYRwkNQz0w&t=8s. The name of the Android application is "BT Voice Control for Arduino" and you can download it for free on the Google Play services.

The working principle of this application is as follows:

When the application recognizes voice as a string for example if you say "Left", the android phone will return a sting *Left# to bluetooth module connected to Arduino, where (star) and (hashtag) indicate the start and stop bits. Then in the Arduino code these strings are mapped with a certain function, in this particular example they move a group of motors with which the robot moves.

The robot is simple to build and consists of several components:

- Arduino Uno microcontroller

- L293D Motor driver shield

- 4pcs. DC gear motors with Weels

- HC-06 Bluetooth module

- switch

- and 7.4 Volts Lithium-Ion Battery pack

To make it, we need only one rectangular plate, on which lower side should be glued the engines, and on the upper surface are mounted other elements. You can use discontinued L293D motor driver shield like in my case, but also and Adafruit motor shield as is presented on the schematic diagram without any changes.

The Arduino code is very simple thanks to the "AFMotor" Library, and the only modification would be to change the delay time.

As for the Android app, we first launched the EMR Voice app., next we need to connect the robot on Bluetooth, and after activating the microphone we give voice commands to the Robot.

Codes

Downloads

Schematic Download
Comments
Ad