Skip to main content

Control Robotic Car With Voice

Control Robotic Car With Voice

By DEVANANDA REDDY

3041Advertisement
Arduino controls the movements of the robot according to received commands. The robot moves forwards, backwards, left and right, and stops according to the voice commands forward, backward, left, right and stop, respectively. The authors’ prototype of the voice-controlled robotic car is shown in Fig. 1.
Authors’ prototype of the voice-controlled robotic car
Fig. 1: Authors’ prototype of the voice-controlled robotic car
The system consists of a transmitter (Android smartphone) and a receiver (robot). Block diagrams of the transmitter and receiver sides are shown in Figs 2 and 3, respectively.
Screenshot of the home screen of Voicecontrol app is shown in Fig. 4.
Block diagram of transmitter side
Fig. 2: Block diagram of transmitter side
Block diagram of receiver side
Fig. 3: Block diagram of the receiver side
Screenshot of the home screen of Voicecontrol app
Fig. 4: Screenshot of the home screen of Voicecontrol app

Circuit and working

The circuit diagram of the receiver side of the robot is shown in Fig. 5.
Circuit diagram of receiver circuit
Fig. 5: Circuit diagram of receiver circuit
Advertisement
Major components used in this project are described below.
Android smartphone with app. Android speech-recognition app (voicecontrol.apk) used here was developed using MIT App Inventor. When the app is running in the smartphone, user’s voice commands are detected by the microphone present in the phone.
Commands are processed, and speech-to-text conversion is done within the app using Google’s speech-recognition technology. Text is then sent to the receiver side (that is, robotic car) via Bluetooth.
Arduino Uno R3. Arduino Uno is an AVR ATmega328P microcontroller (MCU)-based development board with six analogue input pins and 14 digital I/O pins. The MCU has 32kB ISP flash memory, 2kB RAM and 1kB EEPROM. The board provides the capability of serial communication via UART, SPI and I2C. The MCU can operate at a clock frequency of 16MHz. In this project, digital I/O pins 2, 3, 4 and 5 of Arduino are configured as output pins. Pins 0 and 1 of Arduino are used for serial communication with HC-05 Bluetooth module.
Text received via Bluetooth is forwarded to Arduino Uno board using UART serial communication protocol. Arduino program voice_ctrl.ino checks the text received and, if it is a matching string, Arduino controls the movements of the robot accordingly. Voice commands used for controlling the robot and their functions are shown in Table I.

HC-05 Bluetooth module. HC-05 module is an easy-to-use Bluetooth Serial Port Protocol (SPP) module, designed for transparent wireless serial connection setup. Serial port Bluetooth module has a fully-qualified Bluetooth V2.0+EDR (enhanced data rate) 3Mbps modulation with complete 2.4GHz radio transceiver and baseband.
Hardware features. These are:
  • Typical -80dBm sensitivity
  • Up to +4dBm RF transmit power
  • 3.3V to 5V I/O
  • Programmable input/output (PIO) control
  • UART interface with programmable baud rate
  • Integrated antenna
  • Edge connector
Software features. These are:
  • Slave default baud rate: 9600; data bits: 8; stop bit: 1; parity: no parity
  • Auto-connect to the last device on power as default
  • Permits pairing device to connect as default
  • Auto-pairing pin: 1234 as default
Pin description. HC-05 Bluetooth module has six pins, as detailed below.
Enable. When enable is pulled low, the module is disabled. This means the module will not turn on and will fail to communicate. When enable is left open or connected to 3.3V, the module is enabled, that is, it will remain on and communication will also take place.
Vcc. Supply voltage 3.3V to 5V.
Gnd. Ground pin.
Txd and Rxd. These pins act as UART interface for communication.
State. This pin acts as the status indicator. When the module is not connected to or paired with any other Bluetooth device, the signal goes low. At this low state, the onboard LED flashes continuously, which denotes that the module is not paired with another device. When this module is connected to or paired with another Bluetooth device, the signal goes high. At this high state, the onboard LED blinks with a constant delay of, say, two seconds. This indicates that the module is paired.
L293D motor driver. This is a dual H-bridge high-current motor driver IC. It is used here because digital pins of Arduino cannot source enough current to drive the motors of the robotic car. H-bridges are also useful in controlling the direction of rotation of a motor. Enable pins 1 and 9 of the IC, being active high, are connected to 5V. Four output pins of L293D IC are connected to motors M1 and M2 on the receiver side.
Signal logic levels at the different stages of the circuits for proper controlling of the robotic car are given in Table II.
Arduino IDE 1.6.5 is used for programming Arduino in this project. Steps to program Arduino are as follows:
  1. Select the proper COM port and board from Tools menu in the IDE.
  2. Upload source code voice_ctrl.ino to the board.

Construction and testing

An actual-size PCB layout of the receiver circuit is shown in Fig. 6 and its components layout in Fig. 7. A Micromax Q372 Android smartphone with Android Lollipop 5.0 was used to run Voicecontrol app. After successful installation of the app, turn on the Internet connection and Bluetooth of the smartphone.
PCB layout of receiver circuit
Fig. 6: PCB layout of receiver circuit
Fig. 7: Components layout for the PCB

Download PCB and component layout PDFs: click here

Download Source Folder

Power on the receiver circuit and pair Bluetooth module with the smartphone. Default passkey is 1234. After successful pairing, open the installed app in the smartphone and press the pushbutton with Bluetooth text and logo on it. Now, the list of paired devices will appear. Select HC-05 from the list to connect the smartphone with HC-05 Bluetooth module on the receiver side. After successful connection, ‘connected’ will be displayed on the main screen of Voicecontrol app. Press the pushbutton with microphone symbol and a prompt will appear asking for voice commands.
When the prompt appears, voice commands are detected by the app, which converts them into text and sends it to the receiver side wirelessly via Bluetooth. On the receiving side, Arduino checks the text. If it is a matching string, it controls the movements of the robot according to the description given in Table II.

Comments

Popular posts from this blog

Low-Cost LPG Leakage Detector

Low cost LPG leakage detector with buzzer indication using Microcontroller By DEVANANDA REDDY Project Photographs: Video of LPG leakage detector with buzzer indication using Microcontroller There are various  projects based on sensors . And this is a low cost Microcontroller based project. Microcontroller based LPG gas leakage system using MQ6 (LPG Gas) sensor with Buzzer indication has applications in various areas including Industrial application, domestic application. this system is very useful in hotels ,home,car,lpg agencies . This system has advance safety standard and most important this helps prevent accident occurred because of fire. It also useful in protecting human life ,wealth and property . MQ6 (LPG Gas) sensor is used to detect LPG leakage this sensor has quick response time it responding very short period of time. Output of MQ6 sensor is given to Comparator. And output of comparator IC is given to microcontroller 89s51. Liquid crystal display – LCD d

LASER LIGHT SECURITY ALARM.....

LASER LIGHT SECURITY ALARM BY DEVANANDA REDDY A laser alarm system operates by projecting a beam of invisible laser light across a doorway or window opening. When the light is broken, it activates a buzzer or alarm. The principles are very similar to those of lower tech burglar alarms. A laser alarm requires only slightly more sophisticated electronics and can be put together by anyone with a soldering gun and a knack for tinkering with basic circuits and transistors. Objective To make and study the functions of a Laser Security System. Theory This system for security uses the combination of LASER light and LDR. The LDR module has an onboard potentiometer to adjust the sensitivity of LDR, so that it only senses laser light falling onto it. The concept is quite simple and similar to what we see in movies where antique, priceless ornaments are protected under laser lights. As someone crosses these lights, an alarm runs on to indicate unauthorised presence. This p

Smartphone to Digital Microscope Conversion

Smartphone to Digital Microscope Conversion! By DEVANANDA REDDY The world is an interesting place, but it's fascinating up close.  Through the lens of a microscope you can find details that you would otherwise never notice.  But now you can. This instructable will show you how to build a stand for about $10 that will transform your smartphone into a powerful digital microscope. This DIY conversion stand is more than capable of functioning in an actual laboratory setting. With magnification levels as high as  175x  375x  Edit:  with the addition of a second lens  magnification can be as high as 375x , plant cells and their nuclei are easily observed!  In addition to allowing the observation of cells, this setup also produces stunning macro photography. The photos in this instructable were taken with an iPhone 4S. Watch the video below for a quick overview of the project! Step 1: Materials and Tools The cost of this p