Voice Control Robot in 7 Minutes

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

Home

Sign Up!

Browse

Community

Submit

All

Art

Craft

Food

Games

Green

Home

Kids

Life

Music

Offbeat

Outdoors

Pets

Photo

Ride

Science

Tech

Make a Voice Controlled Robot

by

societyofrobots

on February 11, 2011

Table of Contents

Make a Voice Controlled Robot

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

1

Intro: Make a Voice Controlled Robot

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

2

Step 1: Parts Needed

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

2

Step 2: Installing Software

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

3

Step 3: Configure VRbot

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

4

Step 4: Upgrade Your Robot

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

4

Step 5: About the Axon II Microcontroller (shameless plug)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

5

Related Instructables

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

Comments

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

6

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

Intro:

Make a Voice Controlled Robot

This tutorial will show how to build a simple voice controlled robot that's easy enough for beginners to make in just a few hours. I show how it can be done in two
languages, both English and Thai.

The cost of the entire project is about ~$224, which factors in quality components and parts.

There will be three parts to this tutorial. This part will show you how to assemble the robot mechanically, the next part will show you how to program your microcontroller,
and the last part will be how to configure voice recognition.

Watch the video for step-by-step instructions, and see the result at the end. If you like it, please boost my ego and rate this Instructable =)

Image Notes
1. Axon II Microcontroller
2. VRbot Voice Recognition Module
3. microphone
4. servo #1
5. servo #2
6. on/off switch
7. 6V battery

Step 1:

Parts Needed

You can find all the parts you need for your robot using this handy-dandy

robot parts list

.

(2) servos - I used

HS-311

for ~$8.99 each

(2)

servo mounts

$1.95

(2) wheels - I custom made these using a CNC (although a laser cutter would be better), but you can buy some for ~$3 each

(1)

6V NiMH battery

- about ~$22 for a quality battery

(1) small piece of plastic (scrap)

(16) 4-40 screws ~$2

(1)

Axon II microcontroller

$118

(1)

VRbot Voice Recognition Module

$57.95

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

Image Notes
1. B5 for Left Servo
2. B7 for Right Servo
3. U2 for VRbot module
4. regulated voltage for VRbot module
5. battery connection

Step 2:

Installing Software

Now that your robot is assembled, we will now program the robot.

If you have never used the Axon before, the getting started tutorial will get you up and running quickly:

http://societyofrobots.com/axon2/axon2_setup1.shtml

The fully commented source code to this project can be downloaded here:

http://www.societyofrobots.com/downloads/Axon2_Voice_Recognition_Software.zip

You will need AVR Studio to upload the .hex file to your Axon - no programming required. But feel free to modify it should you want to do more.

This tutorial video will now show you how to customize the software of your robot using

WebbotLib Project Designer

.

The robot in the video you saw uses this following code:

It includes a WebbotLib Project Designer file

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

Step 3:

Configure VRbot

The last step is to program in your voice commands using VRbot. The easiest way to do this is with a TTL serial to USB adapter. I used the

Sparkfun FTDI board

. Make

sure you power your VRbot using the 5V USB output, not the 3.3V output or it won't work. The VRbot manual has more specific details if you get stuck.

After connecting the VRbot module to your computer, follow this manufacturers video tutorial on how to use their

GUI software

:

The specific list of commands programmed into the VRbot are as follows, although many were not used in this demo:

Group 1:
PASA_THAI
LEFT
RIGHT
FORWARD
DANCE
WAI
BOW
ARM
ATTACK
SHUTDOWN
POWER_UP
LED
UP
DOWN
GRAB
RELEASE

Group 2:
PASA_ANGRIT
LONG
KEUN
LEO_SAI
LEO_KWA
DTRONG_BAI

Step 4:

Upgrade Your Robot

Now that you have the basics done, start adding more servos and other voice commands to slowly build up your butler robot.

This of course is beyond the scope of this Instructable so I won't go into further detail, however I want to show what possibilities there are.

This video demonstrates higher level commands for your robot. If you'd like to get designs and source code for this robot, as well as find out more, I've documented it all
here:

http://www.societyofrobots.com/robot_ERP.shtml

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

Step 5:

About the Axon II Microcontroller (shameless plug)

(FYI - I'm the creator of the Axon, so I'm biased)

Why use the Axon II instead of the Arduino?

The Axon requires only one 6V battery to run everything, while the Arduino requires two batteries - a 6V for servos and a 7.2V battery for the microcontroller. The Axon is
plug-n-play while the Arduino requires additional costly shields and rats-nest protoboards. These are hidden costs of the Arduino.

The Axon is just as easy if not easier to use than an Arduino, with simple drag-n-drop programming using

WebbotLib Project Designer

. The Axon is ~2x more expensive,

but has ~3x more features.

Here are a few videos on how simple it is:

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

Related Instructables

Simplest
Possible
Microcontroller-
Based Maze-
Solving Robot
(video)

by

mikhalchuk

DIY Vivus the
Robot

by

sciguy77

Cellphone
Operated Robot

by

avadhut10001

Building Small
Robots: Making
One Cubic Inch
Micro-Sumo
Robots and
Smaller

by

mikey77

Arduino Robot
(video)

by

c0ffeepowder

Robotrex
Robotic
Dinasaur

by

hobbyman

Comments

10 comments

Add Comment

karan13

says:

Mar 12, 2011. 12:56 PM

REPLY

is it necessary to use TTL serial,cant we directly use axn 2 for it.if yes how to use it

societyofrobots

says:

Mar 12, 2011. 1:13 PM

REPLY

You need to link to your PC to configure it. You can use the Axon II as a TTL to USB adapter if you'd like. Code for that is in the Axon II demo files folder.

swighton

says:

Feb 17, 2011. 12:25 PM

REPLY

A few things about step 5/the axon:

-The arduino does NOT require 2 batteries. You can easily power an arduino and servos off one 6V or even a regulated 5V supply (I do it all the time). Why
would you think/say that you need two - that's just misleading.

-You can use an arduino to drive servos and interface with a voice recognition module as you did here without any kind of shield.

-You claim that the axon is plug and play, requiring no shields or protoboard - Tell me then, how do you drive anything that draws >20mA of current such as
a standard hobby motor that is a 1 amp inductive load requiring power handling components in the form of a shield or custom external circuit?

-The axon is actually ~3.25x as much as a standard arduino, perhaps you are including shield costs, but this project requires no shields if implemented on
arduino.

-What are the 3x features that the axon has over arduino? Is it not an 8 bit atmel microcontroller broken out on a dev board just like the arduino? I bet you
can even use the axon drag and drop programming tool with an arduino.

-The only advantage I see is that this microcontroller has is that it has built in headers to connect servos to it (it's an advantage if that's what you are looking
to do).

societyofrobots

says:

Feb 17, 2011. 5:25 PM

REPLY

Hi kraker89, you asked some very good questions.

> The arduino does NOT require 2 batteries.
The Arduino, unless recently changed, does not use a LDO voltage regulator. The regulator simply won't turn on when using a 6V battery, unless that
battery is fully charged (meaning its closer to ~6.7V). That basically means it requires a 7.2V battery to run the on-board logic. A servo will run on 7.2V,
but most batteries aren't designed to handle more than 6V. Operating at higher voltages, even on a fully charged 6V battery, will greatly reduce the
lifespan of your servo. I suspect you are running your Arduino on a fully charged 6V.

> You claim that the axon is plug and play, requiring no shields or protoboard
I made no claims to having an on-board motor driver. It's 'plug-n-play' in that it doesn't require a breadboard or a special shield - ie you can simply
connect directly to the Axon bus and be done with it.

background image

http://www.instructables.com/id/Voice-Control-Robot-in-7-Minutes/

> The axon is actually ~3.25x as much as a standard arduino
The Arduino has a lot of hidden costs, like you said, such as the cost of a protoboard, wiring for that protoboard, the additional battery, and shields. As
the voltage regulator on the Arduino is a low efficiency type, you'll also burn through your battery faster, meaning you need a bigger battery to get the
same bang for the buck. It's not a hard number as it depends on what your project requires, of course.

> What are the 3x features that the axon has over arduino?
Again, it really depends on what your project needs. The Axon has 4x as many UART ports, 4x as many PWM and interrupt ports, 4x the memory, 3x the
total I/O, 2x the timers, and 2x as many ADC ports. I consider being smaller a feature, as well as the power buses, but thats more qualitative. I also
consider the higher efficiency LDO regulator a feature as well. You may not consider these features, but try making a biped with 16 servos and you'll see
quickly the advantage the Axon has. I honestly can't see myself making a robot with less than 4 UARTs (GPS, voice recognition, bluetooth wireless,
Blackfin camera, USB, Razor IMU . . . thats 6 already).

> I bet you can even use the axon drag and drop programming tool with an arduino.
Yeap, WebbotLib supports the Arduino. But you'll find limited memory and limited timers on the ATmega168 preventing you from fully taking advantage
of it. The 328 on the newer Arduinos is fine, though, as it has more memory.

swighton

says:

Feb 23, 2011. 6:39 PM

REPLY

Dang I was totally wrong - I had no idea that the standard arduino didn't use a LDO voltage regulator (I use the pro mini). That's a pretty huge
oversight on their (and my) part - I was thinking of getting one but on second thought I think not.

Your other arguments are reasonable as well. Good points. Reading my previous comment I may have been a bit over aggressive. Apologies!

societyofrobots

says:

Feb 24, 2011. 2:01 PM

REPLY

no probs =)

henadeera

says:

Feb 20, 2011. 9:17 AM

REPLY

Its so interesting... Can I use PIC10F micro controller instead of Axon II ?
Hope pic10f is more smaller and more energy saver..Any idea?

societyofrobots

says:

Feb 20, 2011. 11:15 AM

REPLY

If you mean for the VRbot, yes, you can use any microcontroller for it.

garrettg84

says:

Feb 15, 2011. 8:02 AM

REPLY

Awesome instructable. GO SoR!

Excelent use of video. It is much easier to follow video for something like this than pictures and text.

AntzyP

says:

Feb 13, 2011. 4:20 AM

REPLY

very nice instructable.


Wyszukiwarka

Podobne podstrony:
Ross Jeffries How To Induce A Hypnotic Trance In 3 Minutes Or Less And Never Get Caught
Ron Goulart The Robot In The Closet
ford expands sync voice controlled app offerings with ministry o
Cadmium and Other Metal Levels in Autopsy Samplesfrom a Cadmium Polluted Area and Non polluted Contr
Understanding Joomla Mambo Css In 5 Minutes
Arduino Based Bluetooth Controlled Robot
Buteyko Breathing in 3 Minutes drs Eduard Reuvers
Control of Redundant Robot Manipulators R V Patel and F Shadpey
Batteries & Charge Control in Stand Alone PV Systems
Causes and control of filamentous growth in aerobic granular sludge sequencing batch reactors
Paper 3 English in Use, Paper 3 English in Use (1 hour 30 minutes)
NLP in 10 minutes id 320418 Nieznany
Issue of Gun Control and Violence As Seen in the U S and
LearningExpress Reasoning Skills Success in 20 Minutes a Day 2nd
Research shows CPR?n? learned in just minutes
LearningExpress Reading Comprehension Success in 20 Minutes a Day 3rd
(gardening) Roses in the Garden and Landscape Cultural Practices and Weed Control
ANALYSIS OF CONTROL STRATEGIES OF A FULL CONVERTER IN A DIRECT DRIVE WIND TURBINE
OveLeichenring robot automation in manufacturing industries

więcej podobnych podstron