Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino By Example

You're reading from   Arduino By Example Design and build fantastic projects and devices using the Arduino platform

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785289088
Length 242 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Adith Jagdish Boloor Adith Jagdish Boloor
Author Profile Icon Adith Jagdish Boloor
Adith Jagdish Boloor
Adith J Boloor Adith J Boloor
Author Profile Icon Adith J Boloor
Adith J Boloor
Arrow right icon
View More author details
Toc

Implementing speech control


We have already learned about Bluetooth and speech control in the previous chapters. In this chapter, we are going to merge them.

Connecting the HC-06 module

Just like in the burglar alarm project (Chapters 4 and 5), hook up the Bluetooth to the Arduino MEGA in the following manner:

Make sure you are connecting the Bluetooth module to the 3.3V of the MEGA, and not the 5V. Leave the rest of the servo wiring as it is.

Programming the Arduino

Now, open the robot_dog_speech.ino file. Just like before, change the servo center parameters to match your robot. Upload the program and connect the computer to the Bluetooth, using the instructions given in Chapter 5, Burglar Alarm – Part 2.

Setting up BitVoicer

Open up BitVoicer and use the commands as shown in the following screenshot:

In summary, the commands are as follows (integer type):

  • Stand up – 1

  • Sit down – 2

  • Shake hands – 3

Change the preferences of BitVoicer to match this image:

Note that the COM ports for you will be different...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime