Академический Документы
Профессиональный Документы
Культура Документы
The GSM - SMS Based Smart Security System suitable for below applications:
1. Security Alarm System applications;
2. Supervision and monitoring alarm systems;
3. Automatic monitoring system;
4. Pumping Stations, Tanks, Oil or Water levels;
5. Buildings and Real Estate;
6. Weather Stations;
7. River Monitoring and Flood Control;
8. Oil and gas pipelines;
9. Temperatures, water leakage applications;
10. Energy saving, street lights control system;
11. Valve controls;
12. Transformer stations;
13. Unmanned machine rooms;
14. Control room application;
15. Automation System
16. GSM Access Control System, GSM Gate Opener
GSM Technology
GSM (Global System for Mobile Communications, originally Group Special Mobile), is a standard set
developed by the European Telecommunications Standards Institute (ETSI) to describe technologies for
second generation (2G) digital cellular networks. Developed as a replacement for first generation (1G)
analog cellular networks, the GSM standard originally described a digital, circuit switched network
optimized for full duplex voice telephony. The standard was expanded over time to include first circuit
switched data transport, then packet data transport via GPRS (General Packet Radio services). Packet
data transmission speeds were later increased via EDGE (Enhanced Data rates for GSM Evolution). The
GSM standard is more improved after the development of third generation (3G) UMTS standard
developed by the 3GPP. GSM networks will evolve further as they begin to incorporate fourth generation
(4G) LTE Advanced standards. "GSM" is a trademark owned by the GSM Association.
The GSM Association estimates that technologies defined in the GSM standard serve 80% of the world's
population, encompassing more than 6 billion people across more than 212 countries and territories,
making GSM the most ubiquitous of the many standards for cellular networks.
About SMS (Short Message Service)
Short Message Service (SMS) is a text messaging service component of phone, web, or mobile
communication systems, using standardized communications protocols that allow the exchange of short
text messages between fixed line or mobile phone devices. SMS text messaging is the most widely used
data application
SMS as used on modern handsets was originated from radio telegraphy in radio memo pagers
using standardized phone protocols and later defined as part of the Global System for Mobile
Communications (GSM) as a means of sending messages of up to 160 characters, to and from GSM
mobile handsets. Since then, support for the service has expanded to include other mobile technologies
such as ANSI CDMA networks and Digital AMPS, as well as satellite and landline networks. Most SMS
messages are mobile-to-mobile text messages though the standard supports.
Circuit explanation
See the block diagram of unite. Is based on AT89Sxx (40 Pin) Micro controller. The complete projects
divided in different interfacing Part
1.
2.
3.
4.
5.
6.
7.
Microcontroller (AT89Sxx)
This is the CPU (central processing unit) of our project. We are going to use a microcontroller of 8051
family. The various functions of microcontroller are like I. Reading the digital input from sensors, sending
and receiving SMS via GSM modem, Controlled the relay and buzzer, store mobile number from receiving
SMS and display the all sensor status on LED indicators.
MCU Cock
Clock signal for the micro controller provided by crystal Y1 (11.0592 MHZ) and two 33PF (C2, C3)
capacitors hanging off it ensure correct loading for the crystal, so that it starts reliably. The frequency of
the oscillator is internally divided and to get the operating frequency. This high frequency clock source is
used to control the sequencing of CPU instruction.
MCU Reset
Power on reset is provided by R5 and C1. The 89xxx micro controller has an active high reset signal
SENSOR INTERFACE
A maximum of three sensors can be connected to the GSM Alarm system via CN5 ; these can be found in
the circuit diagram. These sensors need to have their contacts open when in the inactive state (i.e.
normally open) or active low signal @ 5V DC. A power supply voltage of +5 VDC is available for each
sensor at the corresponding wiring terminals (CN4). There are many type of sensor available you can
connect with the projects. External detection Sensors interface to micro controller via Port, P0.0 to P0.3,
(pin no 36 to 39). Port P0 Used as a digital Input Port and is pulled up via 10K resistors network (R-pack
RN1).
NOTE: kit with two sensors 1] Magnetic Door sensor [2] Fire Sensor (Temperature sensor)
GSM Module INTERFACE (RS232)
The RS232, also more commonly known as the serial, specifications specifies that logic '1' is represented
by +12.5V and a logic '0' is represented by -12.5V. This obviously presents many problems for micro
controller that are running at +5V. That is where the level converter comes into play; it converter -12.5V to
0V and +12.5V into 5V, standard TLL logic levels. This makes interfacing with the micro controller
extremely easy.
[3]
The schematic shows the simplicity of the design by using one of ICs level converters. It includes a
Charge Pump, which generates +10V and -10V from a single 5v supply. This IC. Also includes two
receivers and two transmitters in the same package. This is handy in many cases when you only want to
use the Transmit and Receive data Lines. You don't need to use two chips, one for the receive line and
one for the,
Pin
1
2
3
4
5
Signal
Data Carrier Detect
Received Data
Transmitted Data
Data Terminal Reedy
Signal Ground
Pin
6
7
8
9
Signal
Data Set Ready
Request To Send
Clear To Send
Ring Indicator
The communication between the micro controller and the GSM Module requires an RS-232 interface
which serves to convert the CMOS TTL output voltage of the micro controller (0-5 volt) into a voltage of+/12 volt. The converter uses the MAX232 (U5) converter IC. The connection of MAX232 to the GSM uses
the RS232 data cable.
LED INTERFACE
Four LEDs (L2 to L5) indicate the status of the sensor inputs, SMS received, or store user mobile number
in external memory ETC. When the external sensor has been detected / activated, the LED (L2 to L4) of
the sensor that caused on for 5 to 10 seconds. LED L2 to L5 Connected to, MCU Port pin P1.0 to P1.3
(PIN no 1 to 4) via, 220E current limiting resistor.
External EPROM INTERFACE
To store the user mobile number required EEPROM. But 89Sxx MCU doesnt have internal EEPROM. So
two-wire serial EEPROM (U2 - AT24C04) is used in the circuit to store the Cell number and other settings.
Data stored remains in the memory even after power failure, as the memory ensures reading of the latest
saved settings by the micro controller. This 12C bus-compatible- 2048-bit (2-kbit) EEPROM is organized
as 256x8 bits. It can retain data for more than ten years. Using just two lines (SCL and SDA) of the
memory, the micro controller can read and write the bytes corresponding to the data required to be stored.
External EEPROM interface with MCU via Port pin P2.0 and P2.1. Port pin P2.0 and P2.1 is pulled up via
4 resistors.
BUZZER
A 12V buzzer is connected to port P1.5 (pin 6) of the micro controller through a driver transistor (Q2). The
buzzer requires 12 volts at a current of around 100 MA, which cannot provide by the micro controller. So
the driver transistor is added. The buzzer is used to addible alarm indication. Normally the buzzer remains
off. As soon as pin of the micro controller goes high, the buzzer operates.
RELAY INTERFACE
A single pole dabble throw (SPDT) relay is connected to port P1.4 (pin 5) of the micro controller through a
driver transistor (Q1). The relay requires 12 volts at a current of around 100 ma, which cannot provided by
the micro controller. So the driver transistor is added. The relay is used to operate the external siren,
electronic lock, CCTV camera, strobe light or any other electrical device ETC. Normally the relay remains
off. As soon as pin of the micro controller goes high, the relay operates. Diode D1 is the standard diode on
a mechanical relay to prevent back EMF from damaging Q1 when the relay releases. LED L1 indicates
relay is operated. LED has a current limiting resistor in series. The LED / resistor combination is simply in
parallel with the relay
HOW to Connect Load with Relay?
The output of the projects is controlled by a relay, allowing any load until 230V AC / 3 Amp. as maximum
consumption. The relay has 3 output terminals the normally open at quiescent (NO), the normally closed
at quiescent (NC) and the common. The operating of this mechanism is the same as a switch with two (2)
terminals NO and common, if you wish that the output will be activated during the timer, or between the
NC and the common to obtain the reverse operating. In the drawing, you could appreciate the typical
connection for a devices operating at 12 VDC and to operate at 230 VAC.
[4]
When the project is working and according to its load, it could happen an incorrect operating of the output.
If it is the case, you have to install a circuit between 2 relay's contacts used for the connection. See the
drawing map.
Power supply
The power supply circuit. Its based on 3 terminal voltage regulators, which provide the required regulated
+5V and unregulated +12V.
Power is deliver initially from standard 12V AC/DC adapter or 12V_500ma Transformer. This is fed to
bridge rectifier (D2, 3, 4, 5) the output of which is then filtered using 1000uf electrolytic capacitor and fed
to U4 (voltage regulator). U4 +5V output powers the micro controller and other logic circuitry. LED L6 and
its associate 1K current limiting resistors provide power indication. The unregulated voltage of
approximately 12V is required for GSM Modem and relay, buzzer driving circuit
PART EXPLANATION
Micro controller AT89S51 / 52
The AT89xxx is a low-power, high-performance CMOS 8-bit microcomputer with 4K / 8K bytes of Flash
programmable and erasable read only memory (PEROM). The device is manufactured using Atmels highdensity nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction
set and pin out. The on-chip Flash allows the program memory to be reprogrammed in-system or by a
conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU with Flash on a
monolithic chip, the Atmel AT89xxx is a powerful microcomputer which provides a highly-flexible and costeffective solution to many embedded control applications
Features
Compatible with MCS-51 Products
4K / 8K Bytes of In-System Reprogram able Flash Memory
Fully Static Operation: 0 Hz to 24 MHz
Three-level Program Memory Lock
128 x 8-bit Internal RAM
32 Programmable I/O Lines
Two 16-bit Timer/Counters
Six Interrupt Sources
Programmable Serial Channel
Low-power Idle and Power-down Modes
8-bit
[5]
LEDs present many advantages over traditional light sources including lower energy consumption, longer
lifetime, improved robustness, smaller size and faster switching. However, they are relatively expensive
and require more precise current and heat management than traditional light sources.
Applications of LEDs are diverse. They are used as low-energy indicators but also for replacements for
traditional light sources in general lighting, automotive lighting and traffic signals. The compact size of
LEDs has allowed new text and video displays and sensors to be developed, while their high switching
rates are useful in communications technology.
Crystal oscillator
A crystal oscillator is an electronic circuit that uses the mechanical resonance of a vibrating crystal of
piezoelectric material to create an electrical signal with a very precise frequency. This frequency is
commonly used to keep track of time (as in quartz wristwatches), to provide a stable clock signal for digital
integrated circuits, and to stabilize frequencies for radio transmitters/receivers.
[6]
Piezo buzzer
Piezo buzzer is an electronic device commonly used to produce sound. Light weight, simple construction
and low price make it usable in various applications like car/truck reversing indicator, computers, call bells
etc. Piezo buzzer is based on the inverse principle of piezo electricity discovered in 1880 by Jacques and
Pierre Curie. It is the phenomena of generating electricity when mechanical pressure is applied to certain
materials and the vice versa is also true. Such materials are called piezo electric materials. Piezo electric
materials are either naturally available or manmade. Piezoceramic is class of manmade material, which
poses piezo electric effect and is widely used to make disc, the heart of piezo buzzer. When subjected to
an alternating electric field they stretch or compress, in accordance with the frequency of the signal
thereby producing sound.
GSM Modem
This GSM Modem can accept any GSM network operator SIM card and act just like a mobile phone with
its own unique phone number. Advantage of using this modem will be that you can use its RS232 port to
communicate and develop embedded applications. Applications like SMS Control, data transfer, remote
control and logging can be developed easily.
The modem can either be connected to PC serial port directly or to any microcontroller. It can be used to
send and receive SMS or make/receive voice calls. It can also be used in GPRS mode to connect to
internet and do many applications for data logging and control. In GPRS mode you can also connect to
any remote FTP server and upload files for data logging. This GSM modem is a highly flexible plug and
[7]
play quad band GSM modem for direct and easy integration to RS232 applications. Supports features like
Voice, SMS, Data/Fax, GPRS and integrated TCP/IP stack.
LM7805 (3 TERMINAL VOLTAGE REGULATER)
This is used to make the stable voltage of +5V for circuits. The LM7805 is three terminal positive
regulators are available in the TO-220 - package and with several fixed output voltages, making them
useful in a wide range of applications. Each type employs internal current limiting, thermal shut down and
safe operating area protection, making it essentially indestructible. If adequate heat sinking is provided,
they can deliver over 1A output current. Although designed primarily as fixed voltage regulators, More
information please refer Data sheet 0f LM7805
MAX232
The MAX232 is an integrated circuit that converts signals from an RS-232 serial port to signals suitable for
use in TTL compatible digital logic circuits. The MAX232 is a dual driver/receiver and typically converts the
RX, TX, CTS and RTS signals. The drivers provide RS-232 voltage level outputs (approx. 7.5 V) from a
single + 5 V supply via on-chip charge pumps and external capacitors.
[8]
Th
he memories carry a bu
uilt-in 4 bit, unique devvice identific
cation code
e (1010) corrresponding
g to the I2C
C bus
de
efinition. This issued to
ogether with
h 2 chip en
nable inputs
s (E2, E1) so
s that up to 4 x 4K devices
d
may be
atttached to th
he I2C buss and seleccted individu
ually. The memories
m
b
behave
as a slave de
evice in the
e I2C
pro
otocol with all memorry operation
ns synchronized by th
he serial cllock. Read and write operationss are
initiated by a START con
ndition gene
erated by th
he bus mastter. The STA
ART condittion is follow
wed by a strream
of 7 bits (iden
ntification co
ode 1010), plus
p
one rea
ad/write bit and termina
ated by an acknowledg
ge bit.
PDT RELAY
Y 12V
SP
It closes
c
the voltage
v
lesss point of co
ontact while
e the remote
e control wo
orks to conttrol the equ
uipment outsside.
Th
he relay ta
akes advan
ntage of th
he fact tha
at when electricity flo
ows through a coil, it becomess an
ele
ectromagne
et. The elecctromagnetic coil attra
acts a stee
el plate, wh
hich is atta
ached to a switch. So
o the
sw
witch's motio
on (ON and
d OFF) is co
ontrolled byy the curren
nt flowing to
o the coil, o
or not, resp
pectively. A very
usseful feature
e of a relay is that it can be used to
t electrically isolate different partts of a circu
uit. It will allo
ow a
low
w voltage circuit
c
(e.g. 5VDC)
5
to switch
s
the power
p
in a high
h
voltage
e circuit (e.g. 230 VAC
C or more). The
rellay operatess mechaniccally, so it ca
annot opera
ate at high speed.
s
As
ssembly
Usse the com
mponent ovverlay on the
t
PCB to
o place the
e compone
ents startin
ng with the
e lowest he
eight
co
omponents first.
f
Make sure that tthe diode, LED and electrolytic
e
c
capacitors
a
are inserted
d the right way
aro
ound.
Firrst check th
he compone
ents supplie
ed in the Kitt against the
e Compone
ent listing. Id
dentify all th
he compone
ents.
It is generally best to solder the lowest height components
c
s first: the IC
C SOCKET
TS, resistors
s, & diodes. The
IC socket should be insstalled first. Begin sollders the pin
p of the socket.
s
The
e entire resistor should
d be
insstalled nextt. In order to find theiir values yo
ou have to check the color code
e. All the diode should
d be
[9]
installed next. Make sure to get the diodes the correct way around. Match up the bar on the diodes with
the bar on the overlay. Afterwards solder the capacitors, transistors, LED display & other remaining
components. Especially care should be taken in order to find the polarity of the electrolytic capacitors.
Use the component overlay on the PCB to place the components in the following order
Note: - Please before assemble the kit; please see the photograph or demonstration video of assembled
projects. (Included in CD)
1]
2]
3]
4]
5]
6]
7]
8]
9]
SMS
Sensor 1
Sensor 2
Sensor 3
GET
ACK
SMS
Function
Relay ON
Relay OFF
Store user Mobile NO in SYS
Get Status of all Sensors and Relay
[10]
Project operation
To operate projects in first time, please some important steps, following order
1]
Insert the SIMCARD in GSM Module SIM Holder and connect the GSM Antenna
Do not insert the SIM Password Protection in SIMCARD (SIMPIN)
Before use the SIM card in GSM Module Delete ALL SMS or Massages from SIM Memory.
2]
Connect the GSM Module with main board VIA RS232 Data Cable, and apply 12V DC power from
main board (CN5) DC PIN Connection (please check PCB Components Overlay).
3]
4]
To configured the GSM Module or delete SMS from SIMCARD Memory, restart the all system
5]
REFERENCES
www.atmel.com
For a datasheet on the AT89Sxx micro controller and AT24C04 EEPROM
www.national.com
For a datasheet on the LM7805
www.ti.com
For a datasheet on the MAX232
[11]
R1, 2
R4, 11
R5, 6, 9
R7, 8, 10, 12
RN1
- 4K7
[YELLOW, VIOLET, RED]
- 1K
[BROWN, BLACK, RED]
- 10K
[BROWN, BLACK, ORANGE]
- 220E
[RED, RED, BROWN]
- 10K 9 Pin Resistor bank (R-Pack)
(2 NOS)
(2 NOS)
(3 NOS)
(4 NOS)
C1, 8, 9, 10, 11
C2, 3
C4
C5
C6, 7
X1
D1 ~ 5
L1 ~ 5
L6
Q1, 2
- 1N4007 DIODE
(5 NOS)
- 3mm OR 5mm Red LED
(5 NOS)
- 3mm OR 5mm Green LED
- BC547 / BC548 NPN TRANSISTOR
(2 NOS)
U1
U2
U5
U4
RL1
BZ1
CN 4
CN 5
1nos
1nos
1nos
1nos
1nos
1nos
(5 NOS)
(2 NOS)
(2 NOS)
NOTE: - U3, PR1, AND R3 NOT INCLUDE IN KITS, ITS NOT REQUIRED
[12]