UGV(Unmanned Ground Vehicle) for Rescue Operation

Let's Talk little bit about rescue operation, In rescue operation the rescue team goes there and search for victims and rescue them. Rescue operation is pretty dangerous for rescue team as well as rescue dogs because the rescue operators don't know about the rescue environment, although they use advanced devices to know about the environment. They also use shield(special kind of dresses) to protected themselves. Think about one kind of rescue mission (like building collapse or fire rescue operation). I hope that, all of got the idea how rescue operation has been performed.

Since, Technology is our friend so we try to play with it. Try to build something that help the rescue team to perform the rescue operation more efficiently. If you are too much advanced i think that you already guess what i am talking about?. Yes, Exactly, I am talking about rescue robot (not the intelligent one like human).

In this project, I am going to show you how to build your own rescue robot(prototype and fun). You can also enjoy it when you are going to play with it.

Step 1: Things That You Need to Build

What you need exactly,

Wheels to move the robot and Motors to move the wheels and Battery to power up the motors. Then you need something to control them (controlling system/remote control, not the TV's remote) and need something thats helps you to control it not blindly but intelligently. okay, lets talked directly,

Step 2: Start Building From Beginning

Its up-to you how to how to design the physical structure of the Robot so, I am not going to discusses it more details. I am going to discuss you about the technical part in step by step. Its really bored who already knows about Intel Edision Board but useful for them who are in beginning level.

If you already have Intel Edision Board then its okay to start but if you don't have or just brought it or plan to buy it then follow the instruction on Intel Edision website how to connect it to the Arduino breakout board and how to flash it using Intel phone flash tools also have a look how to use ssh connection using Wi-Fi or serial port. Before starting to build this project, if possible just have a look how to perform programming on it using different programming language. In this project I used python for programming and HTML stuffs for building web interface for the robot.

Check the Motor

Use the battery to check the motor of Rover 5 be sure that they works perfectly.

Check the Webcam using your PC or laptop .

Now its time for do some programing stuffs.

Connect the Arduino sheild to the breakout board (see the photo).

connect the temperature sensor to the A0 port of base shield, remember i am using grove temperature sensor and grove base shield, and run the temperatureSensor.py and check the output/result and then remove the sensor from the shield.

connect the Air Quality sensor to the A0 port of the base shield and run the airQualitySensor.py and observe the result then remove the sensor from the base shield.

if you want to add more sensor on your robot, just add it.

I have add another sensor MQ-9 which is not a grove sensor, so i connect it to the A3 pin using the wire. other two wires goes to VCC and GND.

Now time to play with Motor Driver, a little bit complex. connect the motor driver to the Base sheid using cabes according to the wiring diagram(check the photo and follow the instructions)

VM connect to external powersource in +VE terminal

VCC goes to 5V of arduino pin (base sheild)

GND goes to GND pin of Arduino board or base sheild

GND goes to GND terminal of external Battery (it has 3 GND PIN)

GND goes to GND terminal of Arduino board or base shield

A01 goes to one pin of Motor_01

A02 goes to another pin of Motor_01

B01 goes to one pin of Motor_02B02 goes to another pin of Motor_02

PWMB goes to pin 5 of Arduino Board

PWMA goes to pin 3 of Arduino Board

STBY goes to pin 10 of Arduino Board

AIN2 goes to Pin 8

AIN1 goes to pin 9

BIN1 goes to pin 11

BIN2 goes to pin 12

Remember that, i powered the motor using external power sources (The VM pin goes to the positive terminal of external power source. please remember that, all the ground should me common such as GND pin of Arduino and GND pin of Motor driver and the GND terminal of external power source must meet together, otherwise may be motor does not moving.

Now, run the testMotor.py and see some stupid moving of the robot.

if up to this works fine then you have done the 50% of work correctly.

N.B. Please do all of this things in your own risk, i am not responsible for any damage. Thanks for understanding.

Attachments

Step 3: Put Everything Together

Now its time to put things together

Do not remove the Motor Driver from the shield.

Connect the Air Quality sensor to the AO port and temperature sensor to the A1 port of the base shield. Connect the extra gas sensor to the A3 pin (Analog Data pin) and vcc to 5 V,GND to GND pin.Plug the USB camera to USB port and do some secret job. I am kidding, just place the sw1 switch to near to USB port where you plug the Webcam.(sw1 switch on arduino breakout board where Intel Edision is connected). This Switch allows you to power the Board using 12 V power supply or 9V battery power supply. At this time you are unable to power the Board using Usb port. Remember running USB camera require more power. so, you must use external power supply to power up the Edision Board.

Its too easy, and enjoy.

I don't have the 3D printer facility as a result, my Robot is not so pretty.

N.B. Please do all of this things in your own risk, i am not responsible for any damage. Thanks for understanding.

Step 4: Adds-on Some Packages on Yocto Linux

we are now going to add some packages that is necessary for building web apps as well as streaming video.

open the terminal and update the /etc/opkg/base-feeds.conf file, followed by the update command

Now to use the webcam connected to the USB port, you will need the following modules/packages to be installed on the Edison.Before you install the kernel modules, you will need to backup , increase and restore the boot partition. Use the following command to back-increase and restore the boot partition.

mkdir /home/root/boot-backup cp -rp /boot/* /home/root/boot-backup/

umount /boot

mkfs.vfat -v -nboot -F16 /dev/mmcblk0p7

mount /boot

cp -rp /home/root/boot-backup/* /boot

rm -r /home/root/boot-backup

Now install kernel modules , which will extend the kernel for USB devices

opkg install kernel-modules

use lsusb command to check whether the OS detect your webcam

Step 5: Testing the Video Stream

We need a video streaming server to stemming real time video. I used mpeg server for this purpose. just follow the instructions bellow for installing mpeg server. Remember you need to connect your edision board to Internet connection before downloading mpeg server. to install mpeg-stremmer

Step 6: Web App Packages Instalation

open a ssh terminal of your intel Board and type the following command,

opkg install python-pip

pip install flask

if you complete everything successfully then go to the further steps.

Now, lets take a little tour on Flask.

Using an editor(vi/nano) of your choice create a file and add the python code for a simple flask app, that helps to check whether the flask works perfectly. if you do not have nano editor then install it using this command:

Step 7: Go for Final Steps

we are now doing the final version of our project.

so far, we are able to use sensors and control the motors also able to build the web app for our robot as well as real time video streaming using web cam. Now time to integrate everything together to build our project.

You will find all the necessary python code as well as others html,jscript,css together in the zip file.(Uddin.tar.gz)

Extract all the file in a folder and thenjust change the ip-address of the Edision device before running the python code. Just go to static folder and edit the app.js file and enter your edision-board's Ip address and save it.

You need to open two different ssh terminal, one for running python web-server and another for running mpeg-stremer.