Documente Academic
Documente Profesional
Documente Cultură
SUBMITTED BY
1
TABLE OF CONTENTS
1.1 Introduction
1.2 Methodology
1.3 Scope of Work
1.4 Aims of the GSM ROBOT CONTROL
1.5 Objectives of the GSM ROBOT CONTROL
2.9 Circuit Diagram of the GSM ROBOT CONTROL and Power Supply
2
3.1.1 Accessing GSM MODEM using Microsoft HyperTerminal
3.4.2. RS-232
4.4 Initializations
4.4.3 Display
4.5 Programmer
4.6 Simulator
3
4.6 Burner
5.1 Conclusion
5.3 Recommendation
REFERENCES
4
CHAPTER ONE
INTRODUCTION
6
1.2 METHODOLOGY
System will work like when the user wants to on/off the
device; he has to send the message in his mobile defining the
messages and then the password of the system to the number of
the subscriber identity module (SIM) which is inserted in the
display system MODEM. Then, the MODEM connected to the
display system will receive the SMS, the microcontroller inside
the system is programmed in such a way that when the modem
receives any message the microcontroller will read the message
from serial headphone and verify for the password, if the
password is correct then it will start performing desire task.
7
I will use liquid crystal display for displaying the message; I will
also use GSM modem (Motorola W220) as an interface between
mobile and microcontroller. I will send message from any phone
irrespective of the GSM network to the modem connected to the
programmable device using a password. The message will get
by the GSM Modem of the device and do specific task.
8
BLOCK DIAGRAM
REGULATED POWER
SUPPLY
LCD
BUZZER
DC
MOBILE PHONES MOTORS
9
CIRCUIT DIAGRAM
10
COMPONENT LIST
Regulator 7805 1 U1
Regulator 7812 1 U3
Capacitor 1000µf 1 C1
Capacitor 10µf 1 C2
Diode 4 D1,D2,D3,D4
Push Button 1
Mobile Phone 1
DC MOTOR 100rpm 2
LCD 16*2 1
40 Pin Base 1 U2
16 Pin Base 1 U4
8051(AT89S52) 1
L293D 1
Oscillator 11.0592mhz 1 X1
LED 1 D5
Resistance 220Ω 1 R1
Resistance 1k 1 R3
Resistance 10k 1 R2
11
CHAPTER TWO
13
1991 GSM GLOBAL SYSTEM FOR DIGITAL WORLD-WIDE
MOBILE
COMMUNICATION
1991 TDMA TIME DIVISION DIGITAL AMERICA
MULTIPLE ACCESS
1993 CDMA CODE DIVISION DIGITAL NORTH
MULTIPLE ACCESS AMERICA,
KOREA
1992 GSM 1800 GLOBAL SYSTEM FOR DIGITAL EUROPE
MOBILE
COMMUNICATION
1994 PDC PERSONAL DIGITAL DIGITAL JAPAN
CELLULAR
1995 PCS 1900 PERSONAL DIGITAL NORTH
COMPUTER SERVICES AMERICA
2001 GSM 800 GLOBAL SYSTEM FOR DIGITAL NORTH
MOBILE AMERICA
COMMUNICATION
2006-TILL GSM 450 GLOBAL SYSTEM FOR DIGITAL WORLD-WIDE
DATE MOBILE
COMMUNICATION
14
GSM networks operate in a number of different frequency
ranges (separated into GSM frequency ranges for 2G and UMTS
frequency bands for 3G). Most 2G GSM networks operate in the
900 MHz or 1800 MHz bands. Some countries in the Americas
(including Canada and the United States) use the 850 MHz and
1900 MHz bands because the 900 and 1800 MHz frequency
bands were already allocated. Most 3G GSM networks in
Europe operate in the 2100 MHz frequency band [9]
The network behind the GSM seen by the customer is large and
complicated in order to provide all of the services which are
required.
15
The GPRS Core Network (the optional part which allows
packet based Internet connections).
16
Currently the main work that has been done on this proposed
system is through serial port to the computer but not wireless. If
they want to control the GENERATOR, they have to go to the
remote area and change the rotation and one /off the
GENERATOR. But in this new design, the systems need not be
reprogrammed to control GENERATOR changing the
programming of microcontroller. The user will send SMS from
his phone and he will be able to control the GENERATOR.
17
Fig. 2.2 Block Diagram
18
HARDWARE DISCRIPTION
POWER SUPPLY:
TRANSFORMER:
20
By appropriate selection of the numbers of turns, a transformer
thus allows an alternating voltage to be stepped up — by making
NS more than NP — or stepped down, by making it
21
stepped up or down depending on the design of the primary and
secondary windings.
22
transformers are of the iron-core type. The principle parts of a
transformer and their functions are:
BRIDGE RECTIFIER
A bridge rectifier makes use of four diodes in a bridge
arrangement to achieve full-wave rectification. This is a widely
used configuration, both with individual diodes wired as shown
and with single component bridges where the diode bridge is
wired internally.
23
BASIC OPERATION
24
When the input connected to the left corner is negative, and the
input connected to the right corner is positive, current flows
from the lower supply terminal to the right along the red path to
the output, and returns to the upper supply terminal via the blue
path.
In each case, the upper right output remains positive and lower
right output negative. Since this is true whether the input is AC
25
or DC, this circuit not only produces a DC output from an AC
input, it can also provide what is sometimes called "reverse
polarity protection". That is, it permits normal functioning of
DC-powered equipment when batteries have been installed
backwards, or when the leads (wires) from a DC power source
have been reversed, and protects the equipment from potential
damage caused by reverse polarity.
OUTPUT SMOOTHING
For many applications, especially with single phase AC where
the full-wave bridge serves to convert an AC input into a DC
output, the addition of a capacitor may be desired because the
bridge alone supplies an output of fixed polarity but
26
continuously varying or "pulsating" magnitude (see diagram
above).
27
voltage correspondingly store excess charge in the capacitor,
thus moderating the change in output voltage / current.
The idealized waveforms shown above are seen for both voltage
and current when the load on the bridge is resistive. When the
load includes a smoothing capacitor, both the voltage and the
current waveforms will be greatly changed. While the voltage is
smoothed, as described above, current will flow through the
bridge only during the time when the input voltage is greater
than the capacitor voltage. For example, if the load draws an
average current of n Amps, and the diodes conduct for 10% of
the time, the average diode current during conduction must be
10n Amps. This non-sinusoidal current leads to harmonic
distortion and a poor power factor in the AC supply.
29
In a practical circuit, when a capacitor is directly connected to
the output of a bridge, the bridge diodes must be sized to
withstand the current surge that occurs when the power is turned
on at the peak of the AC voltage and the capacitor is fully
discharged. Sometimes a small series resistor is included before
the capacitor to limit this current, though in most applications
the power supply transformer's resistance is already sufficient.
REGULATOR IC (78XX)
30
It is a three pin IC used as a voltage regulator. It converts
unregulated DC current into regulated DC current.
31
7805 gives fixed 5V DC voltage if input voltage is in (7.5V,
20V).
THE CAPACITOR FILTER
32
long to eliminate ripple action. In other words, the capacitor
must charge up fast, preferably with no discharge at all. Better
filtering also results when the input frequency is high; therefore,
the full-wave rectifier output is easier to filter than that of the
half-wave rectifier because of its higher frequency.
33
output voltage (Eavg) is increased due to the filtering action of
capacitor C1.
UNFILTERED
FILTERE
34
The value of the capacitor is fairly large (several microfarads),
thus it presents a relatively low reactance to the pulsating current
and it stores a substantial charge.
35
A comparison of the waveforms shown in figure 4-16 (view A
and view B) illustrates that the addition of C1 to the circuit
results in an increase in the average of the output voltage (E avg)
and a reduction in the amplitude of the ripple component (E r)
which is normally present across the load resistance.
36
through the load resistor (RL). The discharge of C1 produces the
downward slope as indicated by the solid line on the waveform
in view B. In contrast to the abrupt fall of the applied ac voltage
from peak value to zero, the voltage across C1 (and thus across
RL) during the discharge period gradually decreases until the
time of the next half cycle of rectifier operation. Keep in mind
that for good filtering, the filter capacitor should charge up as
fast as possible and discharge as little as possible.
37
Since practical values of C1 and R L ensure a more or less
gradual decrease of the discharge voltage, a substantial charge
remains on the capacitor at the time of the next half cycle of
operation. As a result, no current can flow through the diode
until the rising ac input voltage at the anode of the diode exceeds
the voltage on the charge remaining on C1. The charge on C1 is
the cathode potential of the diode. When the potential on the
anode exceeds the potential on the cathode (the charge on C1),
the diode again conducts, and C1 begins to charge to
approximately the peak value of the applied voltage.
After the capacitor has charged to its peak value, the diode will
cut off and the capacitor will start to discharge. Since the fall of
the ac input voltage on the anode is considerably more rapid
than the decrease on the capacitor voltage, the cathode quickly
38
become more positive than the anode, and the diode ceases to
conduct.
39
Another thing to keep in mind is that the ripple component (E r)
of the output voltage is an ac voltage and the average output
voltage (Eavg) is the dc component of the output. Since the filter
capacitor offers relatively low impedance to ac, the majority of
the ac component flows through the filter capacitor. The ac
component is therefore bypassed (shunted) around the load
resistance, and the entire dc component (or Eavg) flows through
the load resistance. This statement can be clarified by using the
formula for XC in a half-wave and full-wave rectifier. First, you
must establish some values for the circuit.
40
41
As you can see from the calculations, by doubling the frequency
of the rectifier, you reduce the impedance of the capacitor by
one-half. This allows the ac component to pass through the
capacitor more easily. As a result, a full-wave rectifier output is
much easier to filter than that of a half-wave rectifier.
Remember, the smaller the XC of the filter capacitor with respect
to the load resistance, the better the filtering action. Since
42
capacitor, and the lower the average value of output voltage. For
this reason, the simple capacitive filter is seldom used with
rectifier circuits that must supply a relatively large load current.
Using the simple capacitive filter in conjunction with a full-
wave or bridge rectifier provides improved filtering because the
increased ripple frequency decreases the capacitive reactance of
the filter capacitor.
43
DIODE
APPLICATION
44
•Tunnel diode: Control the current flow, snobbier circuit, etc
RESISTORS
45
FUNCTION
TYPES OF RESISTORS
46
insulating coating and finally painted with colored bands to
indicate the resistor value
Metal film and metal oxides resistors are made in a similar way,
but can be made more accurately to within ±2% or ±1% of their
nominal vale there are some difference in performance between
these resistor types, but none which affects their use in simple
circuit.
47
WIRE WOUND RESISTOR
TESTING
CAPACITORS
BASIC
49
When you connect a capacitor to a battery, here’s what happens:
TESTING
l digital meters with the specified function are used. The non-
electrolyte capacitor can be tested by using the digital meter.
50
LED
LED falls within the family of P-N junction devices. The light
emitting diode (LED) is a diode that will give off visible light
when it is energized. In any forward biased P-N junction there
is, with in the structure and primarily close to the junction, a
recombination of hole and electrons. This recombination
requires that the energy possessed by the unbound free electron
be transferred to another state. The process of giving off light by
applying an electrical source is called electroluminescence.
51
condition. The LEDs are available in the round shell and also in
the flat shells. The positive leg is longer than negative leg.
DC MOTOR
52
H-BRIDGE
53
If switch (B1 and B2 )are on and switch (A1 and
A2) are off then motor rotates in Anti clockwise
direction
we can use Transistor, mosfets as a switch ( Study
the transistor as a a switch)
54
Truth Table
Note:-
55
SCHEMATIC OF L293D WITH DC MOTOR
1
DUAL H-BRIDGE D C M O TO R
2
2 3
7 IN 1 O U T 1 6
10 IN 2 O U T 2 11
15 IN 3 O U T 3 14
IN 4 O U T 4
+5V D C 1
9 E N 1
E N 2
1
8
16 V S
V S S
L293D
D C M O TO R
2
+ 15 V D C + 5 V D C
MOTOR VOLTAGE
CHAPTER THREE
59
AT+CMGD means delete message from a given memory
location.
60
Above is the quite simple schematic. The LCD panel’s Enable
and Register Select is connected to the Control Port. The Control
Port is an open collector / open drain output. Therefore by
incorporating the two 10K external pull up resistors, the circuit
is more portable for a wider range of computers, some of which
may have no internal pull up resistors. I make no effort to place
the Data bus into reverse direction. Therefore I had wire the
R/W line of the LCD panel, into write mode. This will cause no
bus conflicts on the data lines. As a result I cannot read back the
LCD’s internal Busy Flag which tells us if the LCD has accepted
and finished processing the last instruction [20]. This problem is
overcome by inserting known delays into my program. The 10k
Potentiometer controls the contrast of the LCD panel. Nothing
fancy here.
I used a power supply of 5volt. The user may select whether the
LCD is to operate with a 4-bit data bus or an 8- bit data bus. If a
61
4-bit data bus is used, the LCD will require a total of 7 data
lines. If an 8-bit data bus is used, the LCD will require a total of
11 data lines [20]. LCD with 8-bit data bus is used for this
design. The three control lines are EN, RS, and RW. EN line
must be raised/lowered before/after each instruction sent to the
LCD regardless of whether that instruction is read or write text
or instruction. In short, I manipulate EN when communicating
with the LCD.
CHAPTER FOUR
63
12345 is the password of the GSM electronic notice board.
Any message a user want to send has to be preceded by 12345
spaces the message. A user will then send the message to the
GSM number that is inside the Motorola c168
4.3 Initializations
The baud rate of the modem was set to be 9600 bps using the
HyperTerminal, The ECHO from the modem was turned off
using the command ATE0 at the HyperTerminal. For serial
transmission and reception to be possible both the DTE and
DCE should have same operational baud rates. Hence to set the
microcontroller at a baud rate of 9600bps, I set terminal count of
Timer 1 at 0FFh (clock frequency = 1.8432). The TCON and
SCON registers were set accordingly.
4.4 Programmer
66
89S52: The AT89S52 is a low-power, high-performance
CMOS 8-bit microcontroller with 8K bytes of in-system
programmable Flash memory. The device is manufactured using
Atmel’s high-density nonvolatile memory technology and is
compatible with the industry-standard 80C51 instruction set and
pin out. The on-chip Flash allows the program memory to be
reprogrammed in-system or by a conventional nonvolatile
memory pro-grammar. By combining a versatile 8-bit CPU with
in-system programmable Flash on a monolithic chip, the Atmel
AT89S52 is a powerful microcontroller, which provides a highly
flexible and cost-effective solution to many, embedded control
applications. The AT89S52 provides the following standard
features: 8K bytes of Flash, 256 bytes of RAM, 32 I/O lines,
Watchdog timer, two data pointers, three 16-bit timer/counters, a
six-vector two-level interrupt architecture, a full duplex serial
port, on-chip oscillator, and clock circuitry. In addition, the
AT89S52 is designed with static logic for operation down to
zero frequency and supports two software selectable power
saving modes. The Idle Mode stops the CPU while allowing the
RAM, timer/counters, serial port, and interrupt system to
continue functioning. The Power-down mode saves the RAM
67
con-tents but freezes the oscillator, disabling all other chip
functions until the next interrupt
68
The hardware is driven by a set of program instructions, or
software. Once familiar with hardware and software, the user
can then apply the microcontroller to the problems easily.
69
Internal ROM and RAM
I/O ports with programmable pins
Internal ROM 4k
71
μVision3 is an IDE (Integrated Development Environment)
that helps write, compile, and debug embedded programs. It
encapsulates the following components:
A project manager.
A make facility.
Tool configuration.
Editor.
A powerful debugger.
72
To create a GSM ENOTICE board project in uVision3:
6. Select Project - Options and set the tool options. Note that
when the target device is selected from the Device
Database all-special options are set automatically. Default
memory model settings are optimal for most applications.
73
Once the project has been named, the dialog shown in the
figure below will appear, prompting the user to select a target
device. The chip being used is the “AT89S52,” which is listed
under the heading “Atmel”.
75
and then pause (the current position in the program is indicated
by a yellow arrow to the left of the code).
76
microcontrollers.
CHAPTER FIVE
5.1 Conclusion
The prototype of the GSM based Generator Control device was
efficiently designed. This prototype has facilities to be integrated
77
with a Generator thus making it truly mobile. The toolkit accepts
the SMS, stores it, validates it and perform specific operations.
The SMS is deleted from the phone each time it is read, thus
making room for the next SMS.
78
In my project I am sending messages through GSM network
and Control the home devices by utilizing AT
(ATTENTION) commands. The same principle can be
applied to display the message on electronics display board
appliances at a distant location.
5.3 Recommendation
REFERENCES
79
1. The 8051Microcontroller by Kenneth J. Ayala
2. The 8051 Microcontroller and Embedded Systems by
Muhammad Ali Mazidi.
3. Principles and Applications of GSM by Vijay Garg.
4. Artificial Intelligence – Elain Rich & Kevin Knight, Tata Mc
http://www.eecg.toronto.edu/~nazizi/gsm/ma/ William
Stallings Data and Computer Communications 7th Edition:
80
Chapter 9 Spread Spectrum, http://juliet.stfx.ca/~lyang/csci-
465/lectures/09-SpreadSpectrum-new.ppt
11. ETS 300 608. Digital Cellular Telecommunication System
81
17. B. Saltzberg, Performance of an ancient parallel data
transmission system," IEEE Trans. Commun. Techno., pp.
805{813, December 1967}
18. M. Zimmermann and A. Kirsch, The AN/GSC-10/KATHRYN
HBeonLabs
Contact us:
82
+91-120-4298000
+91-9212314779
info@hbeonlabs.com
training@hbeonlabs.com
www. hbeonlabs.com
83