0% found this document useful (0 votes)
51 views61 pages

186Q1D5506 Documentation1

This document describes a project report submitted for the degree of Master of Technology in Embedded Systems. The project aims to structure the free space of a roving robot's environment as a hypergraph for path planning and navigation. The structure of the free space is maintained as a hypergraph with each convex region represented by a hyperedge identifying the boundary walls. A new methodology reveals the structure of free space and constructs the hypergraph representation through searching for fundamental circuits in a graphical representation of the environment geometry. The project was carried out under the guidance of Ms. B.Mounica at Kakinada Institute of Engineering & Technology-II.

Uploaded by

deepika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views61 pages

186Q1D5506 Documentation1

This document describes a project report submitted for the degree of Master of Technology in Embedded Systems. The project aims to structure the free space of a roving robot's environment as a hypergraph for path planning and navigation. The structure of the free space is maintained as a hypergraph with each convex region represented by a hyperedge identifying the boundary walls. A new methodology reveals the structure of free space and constructs the hypergraph representation through searching for fundamental circuits in a graphical representation of the environment geometry. The project was carried out under the guidance of Ms. B.Mounica at Kakinada Institute of Engineering & Technology-II.

Uploaded by

deepika
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

STRUCTURING FREE SPACE AS A HYPERGRAPH FOR ROVING ROBOT

PATH PLANNING AND NAVIGATION

A Project Report Submitted in partial fulfillment of the requirements


For the award of the degree of

MASTER OF TECHNOLOGY
in
EMBEDDED SYSTEMS
by

MUMMIDI SIRISHA (186Q1D5506)


Under the Esteemed Guidance of
Ms. B.Mounica, M.Tech
Associate Professor, Department of ECE

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING


KAKINADA INSTITUTE OF ENGINEERING & TECHNOLOGY- II
(Approved by AICTE, New Delhi & Affiliated to J.N.T.U.K, Kakinada)
YANAM ROAD, KORANGI - 533 461
2018- 2020
KAKINADA INSTITUTE OF ENGINEERING & TECHNOLOGY- II
(Approved by AICTE, New Delhi & Affiliated to J.N.T.U.K, Kakinada)
YANAM ROAD, KORANGI - 533 461

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

CERTIFICATE

This is to certify that the Project report entitled “ STRUCTURING FREE SPACE AS A
HYPERGRAPH FOR ROVING ROBOT PATH PLANNING AND NAVIGATION” is
submitted by MUMMIDI SIRISHA (186Q1D5506) in partial fulfillment of the requirement for the
award of the degree of MASTER OF TECHNOLOGY in EMBEDDED SYSTEMS to Kakinada
Institute Of Engineering & Technology-II, Korangi is a record of a bonafide work carried out by
her under my guidance and supervision during the academic year 2018-2020.

The results embodied in this thesis have not been submitted to any other University
or Institute for the award of any degree or diploma.

Ms. B.Mounica, M.Tech Mr. B.V.V.S.R.K.K.PAVAN,M.Tech(Ph.D)


Project Supervisor Head of the Department

External Examiner
DECLARATION

I hereby declare that the work which is being preserved in the dissertation entitled
“STRUCTURING FREE SPACE AS A HYPERGRAPH FOR ROVING ROBOT PATH
PLANNING AND NAVIGATION” submitted towards the partial fulfillment of the requirements
for the award of the degree of Master of Technology in Kakinada Institute of Engineering &
Technology-II, Korangi is an authentic record under supervision of MS. B.Mounica, M.Tech, Associate
Professor in Electronics and Communication Engineering, Kakinada Institute of Engineering and
Technology-II, Korangi.
The matter embodied in the dissertation report has not been submitted by me for the
award of any other degree. Further the technical details furnished in various chapters in this
thesis are purely related to the above project and there is no deviation from the theoretical and
practical point of view with respect to the Design, Development, Simulation, Implementation
and Testing. If the information furnished in the various chapters is not relevant to the topic and if
any mistakes happen to be found in the thesis, I am in a position to give proper explanation and
make necessary corrections.

MUMMIDI SIRISHA

(186Q1D5506)
ACKNOWLEDGMENT

It is a great pleasure for me to express my sincere thanks to our management


for the required infrastructure and other lab facilities which contributed a lot in
carrying this Project.

I am very much grateful to our principal Dr.Ch.Bavnarayana for giving the


encouragement that helped me to complete the Project successfully.

I express my sincere thanks and gratitude to Mr.B.V.V.S.R.K.K.PAVAN


Head of the department of Electronics and communication engineering for his support
and encouragement at each stage of this endeavor.

I record with pleasure, my deep sense of gratitude to my Project guide


Ms.B.Mounica, for his simulating guidance and profuse assistance, valuable
suggestions throughout the Project. I always cherish my association with him for his
encouragement and freedom of though and action.

I am highly indebted to my parents for their constant support and


encouragement they offered throughout my career as without their blessings it could
not have been possible for me to achieve my goal.

My sincere thanks to other faculty members also for their cooperation.

MUMMIDI SIRISHA

(186Q1D5506)
LIST OF CONTENTS
CONTENTS PAGE NO
List of Figures i
List of Tables ii
Abbreviations iii-iv
CHAPTER 1: INTRODUCTION
Introduction to project 1
Over View 2
Literature review 4
CHAPTER 2: PROPOSED SYSTEM
Block Diagram 5
Power Supply 6
Transformer
Rectifier 7
Half Wave Rectifier
Full Wave Rectifier 8
Bridge Rectifier 9
Filter Capacitor 10
Voltage Regulator 11
IC 7805 12
L293D DC Motor
Operation of DC Motor 13
Types of DC Motors 15
DC Shunt Motor 16
DC Series Motor 17
DC Compound Motor 18
DC Motor Driver 19
Applications of DC Motors 21
WIFI Module 22
CHAPTER 3: ARDUINO CONTROLLER
History 25
Operation With Pins 26
Pins Descriptions 30
LIST OF CONTENTS
CONTENTS PAGENO
CHAPTER 4: SOFTWARE USED
Introduction 34
Interface
Design Considerations 35
Arduino Compiling 36
CHAPTER 5: METHODOLOGY
Explanation of Result 41
Advantages 44
CONCLUSION 45
REFERENCE S 46
LIST OF FIGURES

Name of the Figure Page No


Fig 2.1: Block Diagram Overview 5
Fig 2.2: Block Diagram of Power Supply 6
Fig 2.3: Circuit Diagram of Power Supply 11
Fig 2.4: L293D Motor 13
Fig 2.4.1: Simple Electrical Diagram of DC Motor 14
Fig 2.4.2: Operation of a DC Motor 15
Fig2.4.3: L293D IC 18
Fig 2.4.4: L293D Pin Diagram 19
Fig 2.4.5: Internal Structure of L293D 20
Fig 2.5: ESP8266-01 Module pins 23
Fig 3.1: Hardware Image 26
Fig 3.2: Back side of Module 28
Fig3.3: Arduino Board 30
Fig 3.4: Arduino Pin Explanation 33
Fig 4.1: Tool Bar Diagram 34
Fig 4.2: Arduino Compiling Diagrams 36
Fig 5.1: Schematic Diagram 41
Fig 5.2: Proposed System Diagram 42
Fig 5.3: Connection with WIFI 43
ABSTRACT

This project presents a method of structuring the free space of a roving


robot's environment into a set of overlapping convex regions ideally suited to
path planning and navigation tasks. The structure of the free space
environment is maintained as a hyper graph with each convex region
represented by a hyper edge identifying the boundary walls of the region. A
new methodology reveals the structure of free space and constructs the hyper
graph representation through a directed search for a set of fundamental
circuits in an abstract graphical representation of the environment geometry.
CHAPTER-1
INTRODUCTION

INTRODUCTION TO PROJECT:

A robot is a machine designed to execute one or more tasks repeatedly, with speed
and precision. There are as many different types of robots as there are tasks for them to
perform. A robot is a mechanical or virtual artificial agent, usually an electro-mechanical
machine that is guided by a computer program or electronic circuitry.

Robots can be autonomous or semi-autonomous. Robots have replaced human in


performing repetitive and dangerous tasks which humans prefer not to do, or are unable to
do because of size limitations, or which take place in extreme environments such as outer
space or the bottom of the sea.

Wi-Fi is "short for wireless fidelity and is meant to be used generically when
referring of any type of 802.11 network, whether 802.11b, 802.11a, dual-band, etc. The
term is promulgated by the Wi-Fi Alliance. Wi-Fi networks consist of transmitting
specific radio waves to wirelessly connect computers to each other, to the Internet, or to
wired networks.

The signals can be picked up by specially enabled notebook computers (through


either built-in or added-on network components). Computer manufacturers offer notebook
computers with built-in Wi-Fi capability and any standard notebook computer can easily
become Wi-Fi enabled by simply plugging in an appropriate Wi-Fi network card (also
known as a PCMCIA card).

This new technology allows for Internet users to connect nearly 50 times faster
than standard modem dial-up. If both Wi-Fi technology and robot are introduced together
it will bring a great advantage. Thus we will be able to operate the robot with the help of
Wi-Fi and can make Hi do whatever we wish to.

Department of ECE Page 1


OVER VIEW:
In the present day, technology has so improved that an Unmanned Aerial
Vehicle (UAV) also called as Drone can be controlled from a distance ranging from 2km
to 20,000km.

The Mars Rover, which was sent to Mars to explore various features of the planet is an
autonomous robot which is programmed such that it performs the desired task as it is
intended to do. There are many such systems which are controlled either by Radio
Frequency transmission or by creating intelligence. Robots are called Non autonomous
robots.

These robots have the programming logic to do the desired task but the decision power
lies in the hand of controller (human) handling the robot. Here the interface can be made
using two methods.

A. Wired –The connection between controller and robot is maintained using wired
interface. These interfaces can be serial or parallel but the technology is transmission of
signal, which is sent in the form of specific pattern to the robot to carry out the specific
task, these patterns with the help of a microcontroller governing its motion.

B. Wireless –Here the connection between controller and robot is achieved by wireless
interface such as:

➢ Bluetooth

➢ Wi-Fi

The underlying technology is transmission of signals wireless in air by transmitter which


is captured by the receiver and sent to microcontroller mounted on the robot to carry out
the task.

At the present demand for robots in this developing world to carry out work effectively
and accurately, the development of cost effective robots is necessary.

Department of ECE Page 2


II. OBJECTIVE:

The motion of robot controlling via internet is one of the easy means as it requires the
user to access the designated webpage to guide it. This system can be used in different
applications for detecting landmines in war field and for bomb detections by mounting a
metal detector sensor on it.

Further, the size of device can be miniaturized based upon specific applications.Two
important tasks required of a roving robot are path planning and navigation. Current path
planning methodologies express the constraints on object movement to provide a finite
approximation of all feasible paths.

The visibility graph (VGRAPH), developed in the late 1960's to navigate SHAKEY (an
early robot vehicle), consists of a start vertex, the vertices of the obstacles, a goal vertex,
and edges connecting any vertices which may be joined by an unobstructed straight line
path.

The chosen path is the shortest start-to-goal path in the VGRAPH, with each edge
weighted by the vertex distance. This approach has since been extended for use with any
polyhedral object with a given shape and orientation.

Department of ECE Page 3


LITERATURE REVIEW

EXISTING SYSTEM:

In existing system present a literature survey of an emerging, cutting-edge,


and multi-disciplinary field of research at the intersection of Robotics and Wireless
Sensor Networks (WSN) which we refer to as Robotic Wireless Sensor Networks
(RWSN). We define a Robotic Wireless Sensor Network as an autonomous networked
multi-robot system that aims to achieve certain sensing goals while meeting and
maintaining certain communication performance requirements, through cooperative
control, learning and adaptation. While both of the component areas, i.e., Robotics and
WSN, are very well-known and well-explored, there exist a whole set of new
opportunities and dimensions at the intersection of these two fields which are relatively or
even completely unexplored.

One such example would be the use of a set of robotic routers to set up a
temporary communication path between a sender and a receiver that uses the controlled
mobility to the advantage of packet routing. We find that there exist only a limited
number of articles to be directly categorized as RWSN related works whereas there exist
a range of articles in the robotics and the WSN literature that are also relevant to this new
field of research.

To connect the dots, we first identify the core problems and research trends
related to RWSN such as connectivity, localization, routing, and robust flow of
information. Next, we classify the existing research on RWSN as well as the relevant
state-of-the-arts from robotics and WSN community according to the problems and trends
identified in the first step.

Department of ECE Page 4


CHAPTER-2
PROPOSED SYSTEM

The Field of robotics has been exponential growth with the amalgamation of multiple
domains. The holistic approach is proving to be a boon, where communication
engineering, mechanical engineering, embedded system and so many more are together
creating robot with high flexibility.

Present technologies can only control robots up to a radius of 500 meters, but
our aim in this project is to target controlling a robot from a remote location which is
more than 1000 miles away. We use WIFI as the medium foe communication. We are
achieving this operation by communicating using two computers.

These computers connected to the Wi-Fi pass on serial data and also
communication is established between one computer located near the robot and a
microcontroller present, which control its trajectory. More over robot will be having its
own senses to dodge obstacle, which will also give about its position. Future scope of this
project is to establish the same connection but make the robot intelligent and autonomous.

BLOCK DIAGRAM:

2.1 BLOCK DIAGRAM OVERVIEW:

Fig.2.1.block diagram

Department of ECE Page 5


2.2 POWER SUPPLY:

All digital circuits require regulated power supply. In this article we are going to
learn how to get a regulated positive supply from the mains supply.

Fig: 2.2 show the basic block diagram of a fixed regulated power supply. Let us go
through each block.

TRANSFORMER:

A transformer consists of two coils also called as “WINDINGS” namely


PRIMARY & SECONDARY.

They are linked together through inductively coupled electrical conductors also
called as CORE. A changing current in the primary causes a change in the Magnetic Field
in the core & this in turn induces an alternating voltage in the secondary coil.

If load is applied to the secondary then an alternating current will flow through the
load. If we consider an ideal condition then all the energy from the primary circuit will be
transferred to the secondary circuit through the magnetic field.

Department of ECE Page 6


The secondary voltage of the transformer depends on the number of turns in the Primary
as well as in the secondary.

Rectifier:

A rectifier is a device that converts an AC signal into DC signal. For


rectification purpose we use a diode, a diode is a device that allows current to pass only in
one direction i.e. when the anode of the diode is positive with respect to the cathode also
called as forward biased condition & blocks current in the reversed biased condition.

Rectifier can be classified as follows:

1) Half Wave Rectifier:

This is the simplest type of rectifier as you can see in the diagram a half wave
rectifier consists of only one diode. When an AC signal is applied to it during the positive
half cycle the diode is forward biased & current flows through it. But during the negative
half cycle diode is reverse biased & no current flows through it. Since only one half of the
input reaches the output, it is very inefficient to be used in power supplies.

Department of ECE Page 7


2) Full wave Rectifier:

Half wave rectifier is quite simple but it is very inefficient, for greater efficiency
we would like to use both the half cycles of the AC signal. This can be achieved by using
a center tapped transformer i.e. we would have to double the size of secondary winding &
provide connection to the center. So during the positive half cycle diode D1 conducts &
D2 is in reverse biased condition. During the negative half cycle diode D2 conducts & D1
is reverse biased. Thus we get both the half cycles across the load.

One of the disadvantages of Full Wave Rectifier design is the necessity of using a
center tapped transformer, thus increasing the size & cost of the circuit. This can be
avoided by using the Full Wave Bridge Rectifier.

3) Bridge Rectifier:

Department of ECE Page 8


As the name suggests it converts the full wave i.e. both the positive & the negative
half cycle into DC thus it is much more efficient than Half Wave Rectifier & that too
without using a center tapped transformer thus much more cost effective than Full Wave
Rectifier.

Full Bridge Wave Rectifier consists of four diodes namely D1, D2, D3 and D4.
During the positive half cycle diodes D1 & D4 conduct whereas in the negative half cycle
diodes D2 & D3 conduct thus the diodes keep switching the transformer connections so
we get positive half cycles in the output.

If we use a center tapped transformer for a bridge rectifier we can get both
positive & negative half cycles which can thus be used for generating fixed positive &
fixed negative voltages.

FILTER CAPACITOR:

Even though half wave & full wave rectifier give DC output, none of them provides a
constant output voltage. For this we require to smoothen the waveform received from the
rectifier. This can be done by using a capacitor at the output of the rectifier this capacitor
is also called as “FILTER CAPACITOR” or “SMOOTHING CAPACITOR” or
“RESERVOIR CAPACITOR”. Even after using this capacitor a small amount of ripple
will remain.

We place the Filter Capacitor at the output of the rectifier the capacitor will charge
to the peak voltage during each half cycle then will discharge its stored energy slowly
through the load while the rectified voltage drops to zero, thus trying to keep the voltage
as constant as possible.

Department of ECE Page 9


If we go on increasing the value of the filter capacitor then the Ripple will
decrease. But then the costing will increase. The value of the Filter capacitor depends on
the current consumed by the circuit, the frequency of the waveform & the accepted ripple.

Where,

Vr= accepted ripple voltage (should not be more than 10% of the voltage)

I= current consumed by the circuit in Amperes.

F= frequency of the waveform. A half wave rectifier has only one peak in one cycle so
F=25Hz

Whereas a full wave rectifier has Two peaks in one cycle so F=100Hz.

VOLTAGE REGULATOR:

A Voltage regulator is a device which converts varying input voltage into a


constant regulated output voltage. Voltage regulator can be of two types

1) Linear Voltage Regulator:

Linear Voltage Regulator Also called as Resistive Voltage regulator because they
dissipate the excessive voltage resistively as heat.

Department of ECE Page 10


2) Switching Regulators:

They regulate the output voltage by switching the Current ON/OFF very rapidly.
Since their output is either ON or OFF it dissipates very low power thus achieving higher
efficiency as compared to linear voltage regulators. But they are more complex &
generate high noise due to their switching action. For low level of output power switching
regulators tend to be costly but for higher output wattage they are much cheaper than
linear regulators.

The most commonly available Linear Positive Voltage Regulators are the 78XX
series where the XX indicates the output voltage. And 79XX series is for Negative
Voltage Regulators.

After filtering the rectifier output the signal is given to a voltage regulator. The
maximum input voltage that can be applied at the input is 35V.Normally there is a 2-3
Volts drop across the regulator so the input voltage should be at least 2-3 Volts higher
than the output voltage. If the input voltage gets below the Vmin of the regulator due to
the ripple voltage or due to any other reason the voltage regulator will not be able to
produce the correct regulated voltage.

3) Circuit diagram:

Fig 2.3.Circuit Diagram of power supply

Department of ECE Page 11


IC 7805:

7805 is an integrated three-terminal positive fixed linear voltage regulator. It


supports an input voltage of 10 volts to 35 volts and output voltage of 5 volts. It has a
current rating of 1 amp although lower current models are available. Its output voltage is
fixed at 5.0V. The 7805 also has a built-in current limiter as a safety feature. 7805 is
manufactured by many companies, including National Semiconductors and Fairchild
Semiconductors.

The 7805 will automatically reduce output current if it gets too hot .The last two
digits represent the voltage; for instance, the 7812 is a 12-volt regulator. The 78xx series
of regulators is designed to work in complement with the 79xx series of negative voltage
regulators in systems that provide both positive and negative regulated voltages, since the
78xx series can't regulate negative voltages in such a system.

The 7805 & 78 is one of the most common and well-known of the 78xx series
regulators, as it's small component count and medium-power regulated 5V make it useful
for powering TTL devices.

Table 2.1. Specifications of IC7805

SPECIFICATIONS IC 7805

Vout 5V

Vein - Vout Difference 5V - 20V

Operation Ambient Temp 0 - 125°C

Output Imax 1A

2.4. L293D:
D.C. Motor:
A dc motor uses electrical energy to produce mechanical energy, very typically through
the interaction of magnetic fields and current-carrying conductors. The reverse process,
producing electrical energy from mechanical energy, is accomplished by
an alternator, generator or dynamo.

Department of ECE Page 12


Many types of electric motors can be run as generators, and vice versa. The input of a DC
motor is current/voltage and its output is torque (speed).

Fig 2.4: DC Motor

The DC motor has two basic parts: the rotating part that is called the armature and the
stationary part that includes coils of wire called the field coils. The stationary part is also
called the stator. Figure shows a picture of a typical DC motor, Figure shows a picture of
a DC armature, and Fig shows a picture of a typical stator.

From the picture you can see the armature is made of coils of wire wrapped around the
core, and the core has an extended shaft that rotates on bearings. You should also notice
that the ends of each coil of wire on the armature are terminated at one end of the
armature.

The termination points are called the commutate and this is where the brushes make
electrical contact to bring electrical current from the stationary part to the rotating part of
the machine.

Operation:
The DC motor you will find in modem industrial applications operates very
similarly to the simple DC motor described earlier in this chapter. Figure 12-9 shows an
electrical diagram of a simple DC motor.

Notice that the DC voltage is applied directly to the field winding and the brushes. The
armature and the field are both shown as a coil of wire. In later diagrams, a field resistor
will be added in series with the field to control the motor speed.

Department of ECE Page 13


When voltage is applied to the motor, current begins to flow through the field coil from
the negative terminal to the positive terminal. This sets up a strong magnetic field in the
field winding. Current also begins to flow through the brushes into a commutate segment
and then through an armature coil.

The current continues to flow through the coil back to the brush that is attached to other
end of the coil and returns to the DC power source. The current flowing in the armature
coil sets up a strong magnetic field in the armature.

Fig 2.4.1: Simple electrical diagram of DC motor

Fig 2.4.2: Operation of a DC Motor

The magnetic field in the armature and field coil causes the armature to begin
to rotate. This occurs by the unlike magnetic poles attracting each other and the like
magnetic poles repelling each other.

As the armature begins to rotate, the commutator segments will also begin to
move under the brushes.As an individual commutator segment moves under the brush
connected to positive voltage, it will become positive, and when it moves under a brush
connected to negative voltage it will become negative.

Department of ECE Page 14


In this way, the commutator segments continually change polarity from
positive to negative. Since the commutator segments are connected to the ends of the
wires that make up the field winding in the armature, it causes the magnetic field in the
armature to change polarity continually from north pole to south pole.

The commutator segments and brushes are aligned in such a way that the
switch in polarity of the armature coincides with the location of the armature's magnetic
field and the field winding's magnetic field. The switching action is timed so that the
armature will not lock up magnetically with the field. Instead the magnetic fields tend to
build on each other and provide additional torque to keep the motor shaft rotating.
When the voltage is de-energized to the motor, the magnetic fields in the
armature and the field winding will quickly diminish and the armature shaft's speed will
begin to drop to zero. If voltage is applied to the motor again, the magnetic fields will
strengthen and the armature will begin to rotate again.

Types of DC motors:

1. DC Shunt Motor,

2. DC Series Motor,

3. DC Long Shunt Motor (Compound)

4. DC Short Shunt Motor (Compound)

The rotational energy that you get from any motor is usually the battle between two
magnetic fields chasing each other. The DC motor has magnetic poles and an armature, to
which DC electricity is fed, The Magnetic Poles are electromagnets, and when they are
energized, they produce a strong magnetic field around them, and the armature which is
given power with a commentator, constantly repels the poles, and therefore rotates
commentator, constantly repels the poles, and therefore rotates.

1. The DC Shunt Motor:

In a 2 pole DC Motor, the armature will have two separate sets of windings, connected to
a commutator at the end of the shaft that are in constant touch with carbon brushes. The
brushes are static, and the commutator rotate and as the portions of the commutator
touching the respective positive or negative polarity brush will energize the respective
part of the armature with the respective polarity.

Department of ECE Page 15


It is usually arranged in such a way that the armature and the poles are always
repelling. The general idea of a DC Motor is, the stronger the Field Current, the stronger
the magnetic field, and faster the rotation of the armature.

When the armature revolves between the poles, the magnetic field of the poles
induce power in the armature conductors, and some electricity is generated in the
armature, which is called back emf, and it acts as a resistance for the armature. Generally
an armature has resistance of less than 1 Ohm, and powering it with heavy voltages of
Direct Current could result in immediate short circuits. This back emf helps us there.

When an armature is loaded on a DC Shunt Motor, the speed naturally reduces,


and therefore the back emf reduces, which allows more armatures current to flow. This
results in more armature field, and therefore it results in torque.

Fig: Diagram of DC shunt motor

When a DC Shunt Motor is overloaded, if the armature becomes too slow, the reduction
of the back emf could cause the motor to burn due to heavy current flow thru the
armature.

The poles and armature are excited separately, and parallel, therefore it is called a Shunt
Motor.

2. The DC Series Motor:

Fig: Diagram of DC series motor

Department of ECE Page 16


A DC Series Motor has its field coil in series with the armature. Therefore any amount of power
drawn by the armature will be passed thru the field. As a result you cannot start a Series DC
Motor without any load attached to it. It will either run uncontrollably in full speed, or it will stop.

Fig: Diagram of DC series motor graph representation

When the load is increased then its efficiency increases with respect to the load applied. So these
are on Electric Trains and elevators.

3. DC Compound Motor:

A compound of Series and Shunt excitation for the fields is done in a Compound DC
Motor. This gives the best of both series and shunt motors. Better torque as in a series
motor, while the possibility to start the motor with no load.

Department of ECE Page 17


Fig: Diagram of DC compound motor

Above is the diagram of a long shunt motor, while in a short shunt, the shunt coil will be
connected after the serial coil.

A Compound motor can be run as a shunt motor without connecting the serial coil at all
but not vice versa.

DC Motor Driver:

The L293 and L293D are quadruple high-current half-H drivers. The L293 is
designed to provide bidirectional drive currents of up to 1 A at voltages from 4.5 V to 36
V. The L293D is designed to provide bidirectional drive currents of up to 600-mA at
voltages from 4.5 V to 36 V.

Both devices are designed to drive inductive loads such as relays, solenoids, dc
and bipolar stepping motors, as well as other high-current/high-voltage loads in positive-
supply applications.

All inputs are TTL compatible. Each output is a complete totem-pole drive
circuit, with a Darlington transistor sink and a pseudo-Darlington source. Drivers are
enabled in pairs, with drivers 1 and 2 enabled by 1,2EN and drivers 3 and 4 enabled by
3,4EN.When an enable input is high, the associated drivers are enabled and their outputs
are active and in phase with their inputs.

When the enable input is low, those drivers are disabled and their outputs are
off and in the high-impedance state. With the proper data inputs, each pair of drivers
forms a full-H (or bridge) reversible drive suitable for solenoid or motor applications. On
the L293, external high-speed output clamp diodes should be used for inductive transient
suppression.
Department of ECE Page 18
A VCC1 terminal, separate from VCC2, is provided for the logic inputs to minimize
device power dissipation. The L293and L293D are characterized for operation from 0°C
to 70°C.

Fig 2.4.3: L293D IC

Pin Diagram of L293D motor driver:

Fig 2.4.4: L293D pin diagram

Department of ECE Page 19


Fig 2.4.5: Internal structure of L293D.

Features of L293D:

 600mA Output current capability per channel


 1.2A Peak output current (non repetitive) per channel
 Enable facility
 Over temperature protection
 Logical “0”input voltage up to 1.5 v
 High noise immunity
 Internal clamp diodes

Department of ECE Page 20


Applications of DC Motors:

1. Electric Train: A kind of DC motor called the DC Series Motor is used in


Electric Trains. The DC Series Motors have the property to deliver more power when
they are loaded more. So the more the people get on a train, the more powerful the train
becomes.

2. Elevators: The best bidirectional motors are DC motors. They are used in elevators.
Compound DC Motors are used for this application.

3. PC Fans, CD ROM Drives, and Hard Drives: All these things need motors, very
miniature motors, with great precision. AC motors can never imagine any application in
these places.

4. Starter Motors in Automobiles: An automobile battery supplies DC, so a DC motor is


best suited here. Also, you cannot start an engine with a small sized AC motor,

5. Electrical Machines Lab in Colleges.

2.5. WIFI MODULE:

The ESP8266 isalowcost WiFi microchip,withafull TCP/IPstack and microcontroller capa


bility, produced by Espresso in Shanghai, China. The chip first came to the attention of
Western makers in August 2014 with the ESP-01 module, made by a third-party
manufacturer Ai-Thinker.

This small module allows microcontrollers to connect to a Wi-Fi network and make
simple TCP/IP connections using Hayes-style commands. However, at first there was
almost no English-language documentation on the chip and the commands it accepted.

The very low price and the fact that there were very few external components on the
module, which suggested that it could eventually be very inexpensive in volume, attracted
many hackers to explore the module, the chip, and the software on it, as well as to
translate the Chinese documentation.

The ESP8285 is an ESP8266 with 1 Mob of built-in flash, allowing the building of single-
chip devices capable of connecting to Wi-Fi.

Department of ECE Page 21


P8266 comes with capabilities of

 2.4 GHz Wi-Fi (802.11 b/g/n, supporting WPA/WPA2),

 general-purpose input/output (16 GPIO),

 Inter-Integrated Circuit (I²C) serial communication protocol,

 analog-to-digital conversion (10-bit ADC)

 Serial Peripheral Interface (SPI) serial communication protocol,

 I²S (Inter-IC Sound) interfaces with DMA(Direct Memory Access) (sharing pins with
GPIO),

 UART (on dedicated pins, plus a transmit-only UART can be enabled on GPIO2), and

 pulse-width modulation (PWM).

It employs a 32-bit RISC CPU based on the Ten silica Xtensa L106 running at 80 MHz
(or over clocked to 160 MHz). It has a 64 KB boot ROM, 64 KB instruction RAM and
96 KB data RAM. External flash memory can be accessed through SPI.

ESP8266 module is low cost standalone wireless transceiver that can be used for end-
point IOT developments.

To communicate with the ESP8266 module, microcontroller needs to use set of AT


commands. Microcontroller communicates with ESP8266-01 module using UART
having specified Baud rate.

There are many third-party manufacturers that produce different modules based on this
chip. So, the module comes with different pin availability options like,

 ESP-01 comes with 8 pins (2 GPIO pins) – PCB trace antenna. (shown in above figure)

 ESP-02 comes with 8 pins, (3 GPIO pins) – U-FL antenna connector.

 ESP-03 comes with 14 pins, (7 GPIO pins) – Ceramic antenna.

 ESP-04 comes with 14 pins, (7 GPIO pins) – No ant.

Department of ECE Page 22


3V3: - 3.3 V Power Pin.

GND: - Ground Pin.

RST: - Active Low Reset Pin.

EN: - Active High Enable Pin.

TX: - Serial Transmit Pin of UART.

RX: - Serial Receive Pin of UART.

GPIO0 & GPIO2: - General Purpose I/O Pins. These pins decide what mode (boot or
normal) the module starts up in. It also decides whether the TX/RX pins are used for
Programming the module or for serial I/O purpose.

To program the module using UART, Connect GPIO0 to ground and GPIO2 to VCC or
leave it open. To use UART for normal Serial I/O leave both the pins open (neither VCC
nor Ground).

The Chips:

The ESP8266 series, or family, of Wi-Fi chips is produced by Espressos if Systems, a


fables semiconductor company operating out of Shanghai, China.

The ESP8266 series presently includes the ESP8266EX and ESP8285 chips.

Department of ECE Page 23


ESP8266EX : (simply referred to as ESP8266) is a system-on-chip (SOC) which
integrates a 32-bit Ten silica microcontroller, standard digital peripheral interfaces,
antenna switches, RF blunt, power amplifier, low noise receive amplifier, filters and
power management modules into a small package.

It provides capabilities for 2.4 GHz Wi-Fi (802.11 b/g/n, supporting WPA/WPA2),
general-purpose input/output (16 GPIO), Inter-Integrated Circuit (I²C), analog-to-digital
conversion (10-bit ADC), Serial Peripheral Interface (SPI), I²S interfaces with DMA
(sharing pins with GPIO), UART (on dedicated pins, plus a transmit-only UART can be
enabled on GPIO2), and pulse-width modulation (PWM).

The processor core, called "L106" by Espressos, is based on Ten silica’s Diamond
Standard 106Micro 32-bit processor controller core and runs at 80 MHz (or over clocked
to 160 MHz). It has a 64 KB boot ROM, 32 KB instruction RAM, and 80 KB user data
RAM. (Also, 32 KB instruction cache RAM and 16 KB ETS system data RAM.)

External flash memory can be accessed through SPI. The silicon chip itself is housed
within a 5 mm × 5 mm Quad Flat No-Leads package with 33 connection pads — 8 pads
along each side and one large thermal/ground pad in the center.
 ESP8266EX Overview

 ESP8266EX Datasheet

 ESP8266 Technical Reference

Vendors have consequently created a multitude of compact printed circuit board modules
based around the ESP8266 chip. Some of these modules have specific identifiers,
including monikers such as "ESP-WROOM-02" and "ESP-01" through "ESP-14"; while
other modules might be ill-labeled and merely referred to by a general description — e.g.,
"ESP8266 Wireless Transceiver." ESP8266-based modules have demonstrated
themselves as a capable, low-cost, networkable foundation for facilitating end-point IOT
developments.

Espresso’s official modules are presently ESP-WROOM-02 and ESP-WROOM-S2. The


Ai-Thinker modules are succinctly labeled ESP-01 through ESP-14. (Note: many people
refer to the Ai-Thinker modules with the unofficial monikers of "ESP8266-01" through
"ESP8266-14" for clarity.) See the ESP8266 article on Wikipedia for more information
about popular ESP8266 modules.

Department of ECE Page 24


CHAPTER-3
ARDUINO CONTROLLER

Arduino is an open-source hardware and software company, project and user community
that designs and manufactures single-board microcontrollers and microcontroller kits for
building digital devices and interactive objects that can sense and control both physically
and digitally. Its products are licensed under the GNU Lesser General Public License
(LGPL) or the GNU General Public License (GPL), permitting the manufacture of
Arduino boards and software distribution by anyone.

Arduino boards are available commercially in preassembled form or as do-it-yourself


(DIY) kits. Arduino board designs use a variety of microprocessors and controllers. The
boards are equipped with sets of digital and analog input/output (I/O) pins that may be
interfaced to various expansion boards or breadboards (shields) and other circuits.

The boards feature serial communications interfaces, including Universal Serial Bus
(USB) on some models, which are also used for loading programs from personal
computers. The microcontrollers are typically programmed using a dialect of features
from the programming languages C and C++.

In addition to using traditional compiler tool chains, the Arduino project provides an
integrated development environment (IDE) based on the Processing language project. The
Arduino project started in 2003 as a program for students at the Interaction Design
Institute Ivrea in Ivrea, Italy, aiming to provide a low-cost and easy way for novices and
professionals to create devices that interact with their environment using sensors and
actuators.

Common examples of such devices intended for beginner hobbyists include simple
robots, thermostats and motion detectors. The name Arduino comes from a bar in Ivrea,
Italy, where some of the founders of the project used to meet. The bar was named after
Arduino of Ivrea, who was the margrave of the March of Ivrea and King of Italy from
1002 to 1014.

Department of ECE Page 25


Fig.3.1: Hardware image

History:

The Arduino project was started at the Interaction Design Institute Ivrea (IDII) in Ivrea,
Italy. At that time, the students used a BASIC Stamp microcontroller at a cost of $50, a
considerable expense for many students. In 2003 Hernando Barragán created the
development platform wiring as a Master's thesis project at IDII, under the supervision of
Massimo Banzi and Caesarea’s.

Caesarea’s is known for co-creating, with Ben Fry, the Processing development platform.
The project goal was to create simple, low cost tools for creating digital projects by non-
engineers. The Wiring platform consisted of a printed circuit board (PCB) with
an ATmega168 microcontroller, an IDE based on Processing and library functions to
easily program the microcontroller.

In 2003, Massimo Banzi, with David Millis, another IDII student, and David Cuartielles,
added support for the cheaper ATmega8 microcontroller to Wiring. But instead of
continuing the work on Wiring, they forked the project and renamed it Arduino.

The initial Arduino core team consisted of Massimo Banzi, David Cuartielles, Tom Igoe
Gianluca Martino, and David Millis, but Barragán was not invited to participate.
Following the completion of the Wiring platform, lighter and less expensive versions
were distributed in the open-source community.

Department of ECE Page 26


It was estimated in mid-2011 that over 300,000 officials Arduino had been commercially
produced, and in 2013 that 700,000 official boards were in users' hands. In October 2016,
Federico Muston, Arduino former CEO, secured a 50% ownership of the company.

In April 2017, Wired reported that Musto had "fabricated his academic record.... On his
company's website, personal LinkedIn accounts, and even on Italian business documents,
Musto was until recently listed as holding a PhD from the Massachusetts Institute of
Technology. In some cases, his biography also claimed an MBA from New York
University."

Wired reported that neither University had any record of Musto's attendance, and Musto
later admitted in an interview with Wired that he had never earned those degrees.

Around that same time, Massimo Banzi announced that the Arduino Foundation would be
"a new beginning for Arduino." But a year later, the Foundation still hasn't been
established, and the state of the project remains unclear.

The controversy surrounding Musto continued when, in July 2017, he reportedly pulled
many Open source licenses, schematics, and code from the Arduino website, prompting
scrutiny and outcry.

In October 2017, Arduino announced its partnership with ARM Holdings (ARM). The
announcement said, in part, "ARM recognized independence as a core value of Arduino
... without any lock-in with the ARM architecture.” Arduino intends to continue to work
with a technology vendors and architectures.

OPERATION WITH PINS:

Arduino is open-source hardware. The hardware reference designs are distributed under a
Creative Commons Attribution Share-Alike 2.5 license and are available on the Arduino
website. Layout and production files for some versions of the hardware are also available.
Although the hardware and software designs are freely available under copy left licenses,
the developers have requested the name Arduino to be exclusive to the official product
and not be used for derived works without permission.

The official policy document on use of the Arduino name emphasizes that the project is
open to incorporating work by others into the official product. Several Arduino-
compatible products commercially released have avoided the project name by using
various names ending in Arduino.

Department of ECE Page 27


Fig.3.2: Back side of module

Most Arduino boards consist of an Atmel 8-bit AVR microcontroller (ATmega8, A


Tmega168, ATmega328, ATmega1280, ATmega2560) with varying amounts of flash
memory, pins, and features. The 32-bit Arduino Due, based on the Atmel SAM3X8E was
introduced in 2012.

The boards use single or double-row pins or female headers that facilitate connections for
programming and incorporation into other circuits. These may connect with add-on
modules termed shields. Multiple and possibly stacked shields may be individually
addressable via an I²C serial bus.

Most boards include a 5 V linear regulator and a 16 MHz crystal oscillator or ceramic
resonator. Some designs, such as the Lily Pad, run at 8 MHz and dispense with the
onboard voltage regulator due to specific form-factor restrictions.

Arduino microcontrollers are pre-programmed with a boot loader that simplifies


uploading of programs to the on-chip flash memory.

The default boot loader of the Arduino UNO is the opt boot loader. Boards are loaded
with program code via a serial connection to another computer.

Department of ECE Page 28


Some serial Arduino boards contain a level shifter circuit to convert between RS-232
logic levels and transistor–transistor logic (TTL) level signals. Current Arduino boards
are programmed via Universal Serial Bus (USB), implemented using USB-to-serial
adapter chips such as the FTDI FT232. Some boards, such as later-model Uno boards,
substitute the FTDI chip with a separate AVR chip containing USB-to-serial firmware,
which is reprogrammable via its own ICSP header.

Other variants, such as the Arduino Mini and the unofficial Board Arduino, use a
detachable USB-to-serial adapter board or cable, Bluetooth or other methods. When used
with traditional microcontroller tools, instead of the Arduino IDE, standard AVR in-
system programming (ISP) programming is used.

The Arduino board exposes most of the microcontroller's I/O pins for use by other
circuits. The Diecimila, Duemilanove , and current Uno provide 14 digital I/O pins, six of
which can produce pulse-width modulated signals, and six analog inputs, which can also
be used as six digital I/O pins.

These pins are on the top of the board, via female 0.1-inch (2.54 mm) headers. Several
plug-in application shields are also commercially available. The Arduino Nano, and
Arduino-compatible Bare Bones Board and Board Arduino boards may provide male
header pins on the underside of the board that can plug into solder less breadboards.

Many Arduino-compatible and Arduino-derived boards exist. Some are functionally


equivalent to an Arduino and can be used interchangeably. Many enhance the basic
Arduino by adding output drivers, often for use in school-level education, to simplify
making buggies and small robots.

Others are electrically equivalent but change the form factor, sometimes retaining
compatibility with shields, sometimes not. Some variants use different processors, of
varying compatibility.

Department of ECE Page 29


Fig.3.3: Arduino board

Power USB: Arduino board can be powered by using the USB


cable from your computer. All you need to do is connect the USB
cable to the USB connection (1).

Power (Barrel Jack): Arduino boards can be powered


directly from the AC mains power supply by connecting it to the
Barrel Jack (2).

Voltage Regulator: The function of the voltage regulator is


to control the voltage given to the Arduino board and stabilize
the DC voltages used by the processor and other elements.

Crystal Oscillator:
The crystal oscillator helps Arduino in dealing with time issues.
How does Arduino calculate time? The answer is, by using the
crystal oscillator. The number printed on top of the Arduino
crystal is 16.000H9H. It tells us that the frequency is 16,000,000
Hertz or 16 MHZ.

Department of ECE Page 30


Arduino Reset:
You can reset your Arduino board, i.e. start your program from
the beginning. You can reset the UNO board in two ways. First,
by using the reset button (17) on the board. Second, you can
connect an external reset button to the Arduino pin labeled
RESET (5).
Pins (3.3, 5, GND, Vin):
 3.3V (6) − Supply 3.3 output volt

 5V (7) − Supply 5 output volt

 Most of the components used with Arduino board works


fine with 3.3 volt and 5 volt.

 GND (8)(Ground) − There are several GND pins on the


Arduino, any of which can be used to ground your
circuit.

Vin (9) − This pin also can be used to power the Arduino board
from an external power source, like AC mains power supply.

Analog pins: The Arduino UNO board has six analog input
pins A0 through A5. These pins can read the signal from an
analog sensor like the humidity sensor or temperature sensor and
convert it into a digital value that can be read by the
microprocessor.

Main microcontroller: Each Arduino board has its own


microcontroller (11). You can assume it as the brain of your
board. The main IC (integrated circuit) on the Arduino is slightly
different from board to board. The microcontrollers are usually
of the ATMEL Company. You must know what IC your board
has before loading up a new program from the Arduino IDE.
This information is available on the top of the IC. For more
details about the IC construction and functions, you can refer to
the data sheet.

Department of ECE Page 31


ICSP pin Mostly, ICSP (12) is an AVR, a tiny programming
header for the Arduino consisting of MOSI, MISO, SCK,
RESET, VCC, and GND. It is often referred to as an SPI (Serial
Peripheral Interface), which could be considered as an
"expansion" of the output. Actually, you are slaving the output
device to the master of the SPI bus.
Power LED indicator: This LED should light up when you
plug your Arduino into a power source to indicate that your
board is powered up correctly. If this light does not turn on, then
there is something wrong with the connection.

TX and RX LEDs: On your board, you will find two labels:


TX (transmit) and RX (receive). They appear in two places on
the Arduino UNO board. First, at the digital pins 0 and 1, to
indicate the pins responsible for serial communication. Second,
the TX and RX led (13). The TX led flashes with different speed
while sending the serial data. The speed of flashing depends on
the baud rate used by the board. RX flashes during the receiving
process.

Digital I/O :
The Arduino UNO board has 14 digital I/O pins (15) (of which 6
provide PWM (Pulse Width Modulation) output. These pins can
be configured to work as input digital pins to read logic values (0
or 1) or as digital output pins to drive different modules like
LEDs, relays, etc. The pins labeled “~” can be used to generate
PWM.

AREF :
AREF stands for Analog Reference. It is sometimes, used to set
an external reference voltage (between 0 and 5 Volts) as the upper
/ limit for the analog input pins.

Department of ECE Page 32


Fig.3.4. Pin explanation

Department of ECE Page 33


CHAPTER-4
SOFTWARE USED

Introduction:
This project is implemented using following software’s:
 Express PCB – for designing circuit
 Arduino IDE compiler - for compilation part
 Proteus 7 (Embedded C) – for simulation part
4.1: Interface:
When a project is first started you will be greeted with a yellow outline. This yellow
outline is the dimension of the PCB. Typically after positioning of parts and traces, move
them to their final position and then crop the PCB to the correct size. However, in
designing a board with a certain size constraint, crop the PCB to the correct size before
starting.

Fig: 4.1 show the toolbar in which the each button has the following functions:

Fig: 4.1 Tool bar necessary for the interface

The select tool: It is fairly obvious what this does. It allows you to move and manipulate
parts. When this tool is selected the top toolbar will show buttons to move traces to the
top / bottom copper layer, and rotate buttons.

The zoom to selection tool: does just that.


The place pad: button allows you to place small soldier pads which are useful for board
connections or if a part is not in the part library but the part dimensions are available.
When this tool is selected the top toolbar will give you a large selection of round holes,
square holes and surface mount pads.

Department of ECE Page 34


The place component: tool allows you to select a component from the top toolbar and
then by clicking in the workspace places that component in the orientation chosen using
the button next to the component list. The components can always be rotated afterwards
with the select tool if the orientation is wrong.

The place trace: tool allows you to place a solid trace on the board of varying
thicknesses. The top toolbar allows you to select the top or bottom layer to place the trace
on.

The Insert Corner in trace: button does exactly what it says. When this tool is selected,
clicking on a trace will insert a corner which can be moved to route around components
and other traces.

The remove a trace button is not very important since the delete key will achieve the same
result.

4.1.1: Design Considerations:

Before starting a project there are several ways to design a PCB and one must be
chosen to suit the project’s needs. Single sided, or double sided?

When making a PCB you have the option of making a single sided board, or a double
sided board. Single sided boards are cheaper to produce and easier to etch, but much
harder to design for large projects. If a lot of parts are being used in a small space it may
be difficult to make a single sided board without jumper ring over traces with a cable.
While there’s technically nothing wrong with this, it should be avoided if the signal
travelling over the traces is sensitive (e.g. audio signals).

A double sided board is more expensive to produce professionally, more difficult to etch
on a DIY board, but makes the layout of components a lot smaller and easier. It should be
noted that if a trace is running on the top layer, check with the components to make sure
you can get to its pins with a soldering iron.

Large capacitors, relays, and similar parts which don’t have axial leads can NOT have
traces on top unless boards are plated professionally.

Department of ECE Page 35


4.2 AURDINOCOMPILING:

Department of ECE Page 36


In next step download library

As Arduino doesn’t recognize the directory name, please rename it.

Department of ECE Page 37


Launch Arduino by double click “Arduino” below.

One example:

Department of ECE Page 38


Select the target board as “Arduino Uno”

Department of ECE Page 39


Click Sketch-> Verify/Compile:

Department of ECE Page 40


#include <LiquidCrystal.h>
#include <stdio.h>

LiquidCrystal lcd(6, 7, 5, 4, 3, 2);


unsigned char rcv,count,gchr,gchr1,robos='s';
//char pastnumber[11]="";

int sti=0;
String inputString = ""; // a string to hold incoming data
boolean stringComplete = false; // whether the string is complete

int m1a = 8;
int m1b = 9;

int m2a = 10;


int m2b = 11;

int buzzer = 13;

int ir1 = A0;


int ir2 = A1;

int val1 = 0,val2 = 0;


int dist1,dist2,dist3,sts1=0;
long duration;
int distanceCm, distanceInch;

void beep()
{
digitalWrite(buzzer, LOW);delay(1500);digitalWrite(buzzer, HIGH);
}

void okcheck()
{
unsigned char rcr;
do{
rcr = Serial.read();
}while(rcr != 'K');
}
void setup()
{
// initialize serial:
Serial.begin(9600);serialEvent();
// serialEvent();

pinMode(m1a, OUTPUT); pinMode(m1b, OUTPUT);


pinMode(m2a, OUTPUT); pinMode(m2b, OUTPUT);

Department of ECE Page 41


pinMode(ir1, INPUT);pinMode(ir2, INPUT);
pinMode(buzzer, OUTPUT);

digitalWrite(buzzer, HIGH);

digitalWrite(m1a, LOW); digitalWrite(m1b, LOW);


digitalWrite(m2a, LOW); digitalWrite(m2b, LOW);

//cli();
//serialEvent();

// set up the LCD's number of columns and rows:


lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("Structuring Free");
lcd.setCursor(0,1);
lcd.print("Space Hyper Grap");

Serial.write("AT\r\n"); delay(3000);//okcheck();
Serial.write("ATE0\r\n"); okcheck();
Serial.write("AT+CIPSERVER=1,23\r\n"); // okcheck();

lcd.clear();
lcd.print("Waiting For");
lcd.setCursor(0,1);
lcd.print("Connection");
do{
rcv = Serial.read();
}while(rcv != 'C');

lcd.clear();
lcd.print("Connected");
delay(1000);

lcd.clear();
lcd.setCursor(0, 0);
lcd.print("IR1:"); //4,0

lcd.setCursor(0, 1);
lcd.print("IR2:"); //4,1
//serialEvent();
}

void loop()
{

if(digitalRead(ir1) == LOW)
{
lcd.setCursor(4,0);
lcd.print("ON ");

Department of ECE Page 42


digitalWrite(m1a, LOW); digitalWrite(m1b, LOW);
digitalWrite(m2a, LOW); digitalWrite(m2b, LOW);
beep();
Serial.write("AT+CIPSEND=0,17\r\n");delay(2000);
Serial.write("Obstcale-IR1 ON\r\n");
delay(3000);
}
if(digitalRead(ir1) == HIGH)
{
lcd.setCursor(4,0);
lcd.print("OFF");
}

if(digitalRead(ir2) == LOW)
{
lcd.setCursor(4,1);
lcd.print("ON ");

digitalWrite(m1a, LOW); digitalWrite(m1b, LOW);


digitalWrite(m2a, LOW); digitalWrite(m2b, LOW);
beep();
Serial.write("AT+CIPSEND=0,17\r\n");delay(2000);
Serial.write("Obstcale-IR2 ON\r\n");
delay(3000);
}
if(digitalRead(ir2) == HIGH)
{
lcd.setCursor(4,1);
lcd.print("OFF");
}

if(stringComplete)
{
if(gchr == 'f' || gchr == 'F')
{gchr ='x';
robos='m';
digitalWrite(m1a, HIGH); digitalWrite(m1b, LOW);
digitalWrite(m2a, HIGH); digitalWrite(m2b, LOW);
}

if(gchr == 'b' || gchr == 'B')


{gchr ='x';
robos='m';
digitalWrite(m1a, LOW); digitalWrite(m1b, HIGH);
digitalWrite(m2a, LOW); digitalWrite(m2b, HIGH);
}

if(gchr == 'l' || gchr == 'L')


{gchr ='x';
robos='m';
digitalWrite(m1a, HIGH); digitalWrite(m1b, LOW);
digitalWrite(m2a, LOW); digitalWrite(m2b, HIGH);
}

Department of ECE Page 43


if(gchr == 'r' || gchr == 'R')
{gchr ='x';
robos='m';
digitalWrite(m1a, LOW); digitalWrite(m1b, HIGH);
digitalWrite(m2a, HIGH); digitalWrite(m2b, LOW);
}

if(gchr == 's' || gchr == 'S')


{gchr ='x';
robos='s';
digitalWrite(m1a, LOW); digitalWrite(m1b, LOW);
digitalWrite(m2a, LOW); digitalWrite(m2b, LOW);
}

if(gchr == '1')// || gchr == 'F')


{gchr ='x';
robos='m';
digitalWrite(m1a, HIGH); digitalWrite(m1b, LOW);
digitalWrite(m2a, LOW); digitalWrite(m2b, HIGH);
delay(1000);
digitalWrite(m1a, HIGH); digitalWrite(m1b, LOW);
digitalWrite(m2a, HIGH); digitalWrite(m2b, LOW);
delay(2000);
digitalWrite(m1a, LOW); digitalWrite(m1b, LOW);
digitalWrite(m2a, LOW); digitalWrite(m2b, LOW);
}
if(gchr == '2')// || gchr == 'F')
{gchr ='x';
robos='m';
digitalWrite(m1a, LOW); digitalWrite(m1b, HIGH);
digitalWrite(m2a, HIGH); digitalWrite(m2b, LOW);
delay(1000);
digitalWrite(m1a, HIGH); digitalWrite(m1b, LOW);
digitalWrite(m2a, HIGH); digitalWrite(m2b, LOW);
delay(2000);
digitalWrite(m1a, LOW); digitalWrite(m1b, LOW);
digitalWrite(m2a, LOW); digitalWrite(m2b, LOW);
}
inputString = "";
stringComplete = false;
}
}

void serialEvent()
{
while (Serial.available())
{
char inChar = (char)Serial.read();
if(inChar == '*')
{sti=2;
inputString += inChar;
}

Department of ECE Page 44


if(inChar == '#')
{sti=0;
gchr = inputString[2];
stringComplete = true;
}
}
}

/*
sensorValue = analogRead(analogInPin);
sensorValue = (sensorValue/9.31);
lcd.setCursor(1,1); //rc
lcd.print(sensorValue);
Serial.print(sensorValue);
*/

void converts(unsigned int value)


{
unsigned int a,b,c,d,e,f,g,h;

a=value/10000;
b=value%10000;
c=b/1000;
d=b%1000;
e=d/100;
f=d%100;
g=f/10;
h=f%10;

a=a|0x30;
c=c|0x30;
e=e|0x30;
g=g|0x30;
h=h|0x30;

Serial.write(a);
Serial.write(c);
Serial.write(e);
Serial.write(g);
Serial.write(h);
}

Department of ECE Page 45


void convertl(unsigned int value)
{
unsigned int a,b,c,d,e,f,g,h;

a=value/10000;
b=value%10000;
c=b/1000;
d=b%1000;
e=d/100;
f=d%100;
g=f/10;
h=f%10;

a=a|0x30;
c=c|0x30;
e=e|0x30;
g=g|0x30;
h=h|0x30;

// lcd.write(a);
// lcd.write(c);
lcd.write(e);
lcd.write(g);
lcd.write(h);
}

Department of ECE Page 46


CHAPTER-5

METHODOLOGY

Arduino board will get data thorough sensors and senses data to the Think speak
cloud. Where we can see our readings and visualize it, then this data will be collected
in app thorough App calls. User can view this reading through this app. This system
also contains humidity and temperature sensor and a smoke sensor to detect if there is
fire in field. All these reading will be sent to the cloud and user can read this value in
the app.

EXPLANATION OF RESULT:

The hardware components are successfully assembled and interfacing the


microcontroller with robot is achieved. Controlling the motion of robot via webpage
as well as from android applet is successfully obtained. Hence the two modules of
controlling the robot is successfully tested and demonstrated.

The proposed system is implemented using microcontroller Arduino Uno. Disaster


management is one such area where much attention is needed so that lot of lives can
be saved. The proposed model uses a Wi-Fi module, ESP8266 along with an HTML
inter face for controlling the rover. The main advantage of this is that user can control
the movement of the rover through the live video is seen on the webpage.

Fig.5.1. Schematic Diagram

Department of ECE Page 47


Though controlling using Bluetooth limits the range of distance for communication,
a smart and easy means to guide a robot is achieved. Controlling the motion of robot
via internet is one of the easiest means as it requires the user to access the designated
webpage to guide it. This system can be used in defiance applications for detecting
land mines in war field and for bomb detections by mounting a metal detector sensor
on it. Further, the size of device can be miniaturized based upon specific applications.

Fig.5.2. Proposed System with, Arduino Uno, ESP8266

Department of ECE Page 48


Fig.5.3. waiting for connection for with WIFI

Department of ECE Page 49


ADVANTAGES:

1) Highly Sensitive, Low cost and Reliable circuit.


2) Easily identify the Weather monitoring.
3) Long distance also possible for data communication.
4) Can handle heavy loads up to 7A.
5) System can be switched into manual mode when even required.

Department of ECE Page 50


CONCLUSION

Hence the two modules of controlling the robot is successfully tested and demonstrated.
Though controlling using Bluetooth limits the range of distance for communication, a
smart and easy means to guide a robot is achieved. Controlling the motion of robot via
internet is one of the easiest means as it requires the user to access the designated
webpage to guide it. This system can be used in defiance applications for detecting
landmines in war field and for bomb detections by mounting a metal detector sensor on it.
Further, the size of device can be miniaturized based upon specific applications. It is the
need of the hour to help the people after disasters. When buildings collapse, situations
arise where people are trapped inside the debris which is not located by the rescue teams.
This rover will help in these situations by going inside those places of need and get
information back about the disaster site, so that the rescue team can help the people who
are trapped inside.

Department of ECE Page 51


BIBLIOGRAPHY

REFERENCES:

[1] Andrea Z and Lorenzo V., “Internet of Things for Smart Cities,” IEEE Internet of
Things Journal, vol/issue: 1(1), Feb 2014.

[2] Isna K. and S. D. Sawant, “Integration of Cloud Computing and Internet of Things,”
International Journal of Advanced Research in Computer and Communication
Engineering, vol/issue: 5(4), Apr 2016.

[3] Sonali D. T., “Cloud Computing and Software-Based Internet of Things,”


International Journal of Advanced Research in Computer Science and Software
Engineering, vol/issue: 6(4), Apr 2014.

[4] Jonathan K., “Using Active Queue Management to Assist IOT Application Flows in
Home Broad band Networks,” 2017 IEEE Internet of Things Journal, vol/issue: 4(5), Oct
2017.

[5] Pengfie Z., et al., “Secure Location of Things(SLOT) : Mitigating Local Spoofing
Attacks in Internet of Things,” IEEE Internet of Things Journal, vol. 4, Dec 2017.

[6] Akriti S., et al., “Intelligent Accident Management System using IoT and Cloud
Computing,” 2nd International Conference on Next Generation Computing Technologies,
Oct 2016.

[7] C. Chatrapathi and N. R. Venkatesakumar, “VANET based Integrated Framework for


Smart Accident Management System,” International Conference on Soft-Computing and
Network Security, Feb 2015.

[8] Priyal R. and Vanthana S., “Car Accident Notification System based on Internet of
Things,” International Journal of Computer Applications, vol/issue: 107(17), Dec 2014.

[9] H. M. Ali and Z. S. Alwan, “Car Accident Detection and Notification System Using
Smartphone,” International Journal of Computer Science and Mobile Computing,
vol/issue: 4(4), pp. 620-635, Apr 2015.

Department of ECE Page 52


[10] Aishwarya S. R., et al., “An IoT Based Accident Prevention and Tracking System
for Night Drivers,” International Journal of Innovative Research in Computer and
Communication Engineering, vol/issue: 3(4), Apr 2015.

[11] Design of a Bluetooth Enabled Android Application for a Microcontroller Driven


Robot By Vito M. Guardi,(May 2014).

[12] Android Controlled Mobile Robot By Jorge Kazacos Winter,(July2013).

[13] Android Based Robot Implementation For Pick and Retain of Objects By Ranjith
Kumar Goud, B. Santhosh Kumar, (Oct 2014).

[14] Smart phone based robotic control for surveillance applications By


M.Selvam,(IJRET 2014) [15] Controlling a Robot using Android Interface and Voice By
Kishan Raj KC,(2012).

[16] Motion Control of Wheeled Mobile Robot By Gyula Mester,(SISY 2006)

[17] Design of PI and PID Controllers with Transient Performance Specification By J. C.


Basilio and S. R. Matos,(IEEE 2002).

[18] Robot Control Design Based On Smartphone by Xiao Lu, Wenjun Liu, Haixia
Wang, Qia Sun, IEEE, 978-1-4673-1382, pp-2820-2823, Jun 2013.

[19] Android phone controlled robot using Bluetooth by Arpit Sharma, Reetesh Verma,
Saurabh Gupta, Sukhdeep kaur bhatia, IJEEE, Vol.7,pp-443-448, Nov- 2014.

Department of ECE Page 53

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy