19
Android Controlled Bluetooth Robot A PROJECT REPORT Submitted by SUYASH BANSAL [9913103594] DEVANSH GUPTA [9913103590] LOKESH MUDGAL [9913103593] SURYA KAMBOJ [9913103595] In partial fulfilment for the award of the degree of BACHELOR OF TECHNOLOGY IN COMPUTER SCIENCE JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY JIIT UNIVERSITY :: NOIDA 201301 MAY 2015 1

Android Controlled Bluetooth Robot

Embed Size (px)

DESCRIPTION

The project is designed to develop a fighting robot [SUMOBOT] using android application device for remote operation. The robotic vehicle is not loaded with any weapon and uses to push any object in front of it. An Arduino microcontroller is used for the desired operation.

Citation preview

Page 1: Android Controlled Bluetooth Robot

Android Controlled Bluetooth Robot

A PROJECT REPORT

Submitted by

SUYASH BANSAL [9913103594]DEVANSH GUPTA [9913103590]

LOKESH MUDGAL [9913103593]SURYA KAMBOJ [9913103595]

In partial fulfilment for the award of the degree of

BACHELOR OF TECHNOLOGYIN

COMPUTER SCIENCE

JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY

JIIT UNIVERSITY :: NOIDA 201301

MAY 2015

1

Page 2: Android Controlled Bluetooth Robot

ACKNOWLEDGEMENT

We take this opportunity to express our profound gratitude and deep regards to our faculty Mr. Santosh Verma for his exemplary guidance, monitoring and constant encouragement throughout the course of this project.

We also take this opportunity to express a deep sense of gratitude to Mr. Mahaveer, for his cordial support, valuable information and guidance, which helped me in completing this task through various stages.

Lastly, we thank almighty, and our parents encouragement without which this assignment would not be possible.

SUYASH BANSAL [9913103594]

DEVANSH GUPTA [9913103590]

LOKESH MUDGAL [9913103593]

SURYA KAMBOJ [9913103595]

2

Page 3: Android Controlled Bluetooth Robot

Tables of content

TOPICS PAGESAbstract 4Components Description 5-7Introduction 8Working 9Flowchart 10Conclusion 11References 12

3

Page 4: Android Controlled Bluetooth Robot

ABSTRACT

The project is designed to develop a fighting robot [SUMOBOT] using

android application device for remote operation. The robotic vehicle is not loaded

with any weapon and uses to push any object in front of it. An Arduino

microcontroller is used for the desired operation.

At the transmitting end using android application device, commands are sent

to the receiver to control the movement of the robot either to move forward, back-

ward and left or right etc. At the receiving end two motors are interfaced to the mi-

crocontroller where both of them are used for the movement of the robot. Remote

operation is achieved by any smart-phone/Tablet etc., with Android OS, upon a

GUI (Graphical User Interface) based touch screen operation. The android applica-

tion device transmitter acts as a remote control that has the advantage of adequate

range, while the receiver have Bluetooth device fed to the microcontroller to drive

DC motors via motor driver IC for necessary work. A dumper is mounted on the

front of robot body which helps it to lift the opponent and it does not require any

operation from the microcontroller. The whole operation is controlled by an Ar-

duino microcontroller. A motor driver IC is interfaced to the microcontroller

through which the controller drives the motors.

4

Page 5: Android Controlled Bluetooth Robot

COMPONENTS DESCRIPTION

1. ARDUINO: Arduino is a single-board microcontroller, intended to make the application of interactive objects or environments more accessible. The hardware consists of an open-source hardware board designed around an 8-bit Atmel AVR microcontroller, or a 32-bit Atmel ARM. Current models feature a USB interface, 6 analog input pins, as well as 14 digital I/O pins which allow the user to attach various extension boards.

2. DC GEARED MOTORS: A geared DC Motor has a gear assembly attached to the motor. The speed of motor is counted in terms of rotations of the shaft per minute and is termed as RPM .The gear assembly helps in increasing the torque and reducing the speed. Using the correct combination of gears in a

gear motor, its speed can be reduced to any desirable figure.

5

Page 6: Android Controlled Bluetooth Robot

3. USB CABLE FOR ARDUINO: This is a standard issue USB 2.0 cable. This is the most common A to B Male/Male type peripheral cable, the kind that’s usually used for printers. Compatible with most SFE designed USB boards as well as USB Arduino boards like the Uno.

4. LM298 Motor Driver: L298 Motor driver based module. Small module which can be used with any circuit very easily. Controls 2 DC motors/ 1 Stepper motor in both directions. PWM/NON PWM control using jumpers. Diodes provided for back EMF protection.

6

Page 7: Android Controlled Bluetooth Robot

5. Bluetooth Module: Bluetooth Module is a Drop-in replacement for wired serial connections, transparent usage. You can use it simply for serial port replacement to establish connection between MCU and GPS, PC to your embedded project / Robot etc. The module can be configured for baud rates 1200 to 115200 bps.

6. Power Supply: General Purpose Power supply, 12V 1A, SMPS Based Design, Light Weight.

7

Page 8: Android Controlled Bluetooth Robot

INTRODUCTION

We started with idea of making a wireless robot but then we thought if user is controlling motion of robot through our mobile, then he has to take care of giving commands as well as enjoying the overall experi-ence.

So we proposed these solutions

1. Used an Android App which emulates as a joystick for controlling the robot.

2. We gave an option to control the speed from the app while using the robot. This saved us from recoding the whole robot to adjust the speed.

3. Instead of driving the motors through the Arduino pins, we used a motor driver. It allowed us to run the motors on much high voltage that the output of the Arduino.

As we progressed we implemented the above solutions with some modi-fications.

8

Page 9: Android Controlled Bluetooth Robot

WORKING

Functions and Loops Used

1. void nav : - The function is used for setting the speed of the robot for the forward navigation. It receives the speed in a range of 0 to 255.

2. int check() :- This function returns the character received from the serial communication through the Bluetooth from the mobile phone.

These were the commands and their corresponding functions:

F forward

B backward

r move right

l move left

q move left diagonal

e move right diagonal

z back left

c back right

v back left diagonal

n back right diagonal

a rotate left

d rotate right

s stop

9

Page 10: Android Controlled Bluetooth Robot

ER DIAGRAM

NO

10

START

CHECK IF ANY CHAR ENTERED

CHECK THE DET IN

CHECK()RECEIVED

SOMETHING

1u S DELAY

IF CASE FOUND

YES

JUMP TO THE CASE IN LOOP()

ROTATE MOTOR BY RESPECTIVE VALUES

1u S DELAY

Page 11: Android Controlled Bluetooth Robot

ASSEMBLED ROBOT IMAGES

11

Page 12: Android Controlled Bluetooth Robot

12

Page 13: Android Controlled Bluetooth Robot

CON-CLUSION

We conclude that the system can be applied to institutions and organizations where only authorized people are allowed.

The buzzer will raise alarm whenever someone enters through the door thus in-forming the concerned authority that a person has entered the premises and it also notifies whenever a wrong password is entered, thus making the concerned author-ities aware that an attempt to enter the premises is made by an unauthorized per-son.

Advantages of this system: It is easy to operate as it can be controlled through pc. The code is simple and efficient. Less expensive and light weight. Its functions can be upgraded by changing control

software or more features can be easily added to it.

13

Page 14: Android Controlled Bluetooth Robot

This project can be very helpful in terms of security measures for any orga-nization.

14

Page 15: Android Controlled Bluetooth Robot

References

www.instructabl e .com

www.forum.sparksfu n .com

www.slidesshare. n et

www.arduino.cc

www.practi c ala r duino.com

15