MICROBOT WITH VOICE RECOGNITION

Hi all! Here I’m going to explain how to make your own Ardubot and, adding the EasyVR shield, managing it with voice orders. I’ve only buildt the order to follow, but you can include any order you can think of with the tutorial you can find below.

But the first is to get the robot structure. For it you can find in Internet lots of  models. The model I’ve chosen was found in a electronic shop in Santander: ElectroSDR.

The robot structure consists on two boards of methacrylate and six steel spacers with their respective nuts and bolts.

The bottom board is where are placed the four DC motors, with the four wheels hooked onto the shafts of the motors, and the DC motor driver with H-Bridge.

In the top board I’ve placed the servo motor with the ultrasonic sensor, the Arduino Uno with EasyVR shield (with the microphone) and other shield to make the connections easy, and a IR receiver sensor to control the four robot’s programmed movements (go forward, go backward, turn left and turn right) with a remote control.

Here are some pictures of the different parts of the robot with its assembly instructions that, as you can see below, are in chinese language, but don’t worry becouse you don’t need to read nothing, just look at the graphs:

2014-06-30 17.29.16

2014-06-30 17.31.51

 

  • Assembly Instructions (in chinese):

2014-06-30 17.39.47

  •   Methacrylate Boards:

2014-06-30 17.33.02

  •  4 DC Motors 12V with 4 plastic wheels and the conectors:

2014-06-30 17.34.11

  •  H-Bridge L298N integrated:

2014-06-30 17.37.59

More information

  • Ultrasonic sensor HC SR-04:

2014-06-30 17.35.57

More information

  • Servo Motor Micro-Servo SG-90:

2014-06-30 17.38.10

More information

  • IR receiver sensor with IR remote control:

2014-06-30 17.38.29

More information

  •  Arduino Uno R3:

2014-06-30 17.36.20

More information

  • Arduino Sensor Shield v4.0 for connectors:

2014-06-30 17.37.23

 More information

  • EasyVR Shield with microphone:

2014-08-12 18.36.36

More information

  • Dupont lines  to make conections between sensors and Arduino Sensor Shield and mini proto-board to test:

2014-06-30 17.38.54

  •  Battery holders:

2014-06-30 17.39.19

* Instead of using those, I’ve bought a 2400mAh-11’1V Li-Po batterry and its charger in the nearest modelism shop for about 50€.

  • 2400mAh-11’1V Li-Po batterry and its charger:

2014-08-12 18.09.37

  •  Other pieces like servo motor support with its nuts and bolts, an elastic band to hold the ultrasonic sensor and the six steel spacers with their respective nuts and bolts,

2014-06-30 17.38.39

 

Here you can see an electric scheme and some pics, from different views, with the robot finally built:

Esquema

_______________________________________________________________________________

2014-08-12 18.45.47

2014-08-12 18.46.04

2014-08-12 18.46.57

2014-08-12 18.47.12

And, to finish, here are some links with Arduino’s sketches that I’ve found in Internet, and other I’ve made by myself, which I have used to test DC motors and the whole sensoric. and the last link which includes the definitive source code of the microbot:

  • DC motors test code:

https://mega.co.nz/#!LoIVABiC!fPWXv9oJd9GvPcc0MmG9Yc3SXNziV9730Cd7X6w9dio

https://mega.co.nz/#!ulIBWS6Z!2miQww_fl5JDvbtPPYiVMHM_JyolAd8kFYGBWeGlsnc

  • IR receiver test code:

https://mega.co.nz/#!y4pSRDTT!kpcMc_GH1IRLI9asF4z4gNLP3lWOPXcDXzFryAT2Evo

  • SR04 Ultrasonic test code:

https://mega.co.nz/#!71YgDSrA!HzIat_fgnpiD49VAEA_48sU-iL9OVNNPif8fEAWkhl0

  • Servo test code:

https://mega.co.nz/#!yhImjKjb!AnwekeLyl4MqJeuO8MM1E69aFMwSZkNZ94AxlaUyENw

  • Other test codes mixing sensors and motors:

IR Receiver + DC motors

https://mega.co.nz/#!exAWhKAQ!TvV4AUDs_Jod65jT_lHGd3SxNxEupEbZkpD-WMl3XL4

Servo + Ultrasonic

https://mega.co.nz/#!K4ozlQQL!4lBD4vTBfkGQsPlpRrJDXBJTe1_G4KWUxCgF28JXnQY

Servo + Ultrasonic + DC motors

https://mega.co.nz/#!6xgCyTwT!bFPv0T9uxnU-GNU8nKreC-5tVQA6nu9voxmpqg1moHs

Servo + Ultrasonic + DC motors + IR + EasyVR

https://mega.co.nz/#!O1BXHJ5T!eGO9xM8LOkdDXT-ANzTldXmj8bQuCR0Iop66RDF_e4k

  • Internet Codes

https://mega.co.nz/#!SpQzkDpK!9DfREBo4tDHgW1d_6bjtQuPGiKgkKdPiXQS6P_3sC3U

https://mega.co.nz/#!HkABhQIK!_fW7iok0ntvAN0EN6uoMvrHgp0muFv-sY4SwnoAbIas

  • Microbot’s source code: Includes EasyVR Shield (see the tutorial below)

https://mega.co.nz/#!CooW0ZwI!6tAkMnfJcfWBIRVLvo2WBndc1na7P7IB3BBJ_GbhlrI

EasyVR Tutorial

Now I can start explaining the EasyVR programming. First you have to download and install in your PC some free software (only for Windows) from the Veear web site: with EasyVR commander and the EasyVR library for Arduino will be enough.

Once you have this software in your PC, move the EasyVR library for Arduino to the Arduino library folder “C:\Program Files (x86)\Arduino\libraries\” and copy in all the files downloaded.

Now connect the Arduino with the EasyVR shield (watch the EasyVR user manual before any connection if you have any doubt) and open the Arduino IDE. Take care with the jumper 12 of the shield, which must be in SW position.Click, in the toolbar above, in Archivo>>Ejemplos>>EasyVR>>EasyVR Bridge

VRBridge

and load the sketch in the device. Now you can change the jumper 12 to the PC position and open the EasyVR Commander.

This is the easiest part of the process, as the sofware will do everything. Just select the correct COM port and click in Connect:

Now choose the group where you want to add the command by clicking first in the group and then in the toolbar above, in “Add Command”. Next you have to click in “Train Command” and say the command twice to train it corrrectly. To finish, there is a very interesting option in the File menu which allows you to generate the code.

VRCodeGen

Open the file generated with the Arduino IDE and read it. Just change the commented lines where says that you can modify them for the functions you want and load it in the Arduino board with the EasyVR shield to test how it works (don’t forget to load it with the Jumper 12 in SW position).

Here is a example sketch I’ve make to test. When you say the spanish word “Sígueme” a LED connected on PIN 6 must blink ten times.

https://mega.co.nz/#F!etI32RCI!J3uDR55CpbWhtop7jxaV0w

 

Anuncios

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s