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:
- Assembly Instructions (in chinese):
- Methacrylate Boards:
- 4 DC Motors 12V with 4 plastic wheels and the conectors:
- H-Bridge L298N integrated:
- Ultrasonic sensor HC SR-04:
- Servo Motor Micro-Servo SG-90:
- IR receiver sensor with IR remote control:
- Arduino Uno R3:
- Arduino Sensor Shield v4.0 for connectors:
- EasyVR Shield with microphone:
- Dupont lines to make conections between sensors and Arduino Sensor Shield and mini proto-board to test:
- * Battery holders:
* 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:
- 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,
Here you can see an electric scheme and some pics, from different views, with the robot finally built:
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:
- IR receiver test code:
- SR04 Ultrasonic test code:
- Servo test code:
- Other test codes mixing sensors and motors:
IR Receiver + DC motors
Servo + Ultrasonic
Servo + Ultrasonic + DC motors
Servo + Ultrasonic + DC motors + IR + EasyVR
- Internet Codes
- Microbot’s source code: Includes EasyVR Shield (see the tutorial below)
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
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.
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.