Вы находитесь на странице: 1из 25

GSM BASED PREPAID ENERGY

METER BILLING VIA SMS

GUIDED BY:
S.Latha,

TEAM MEMBERS:
Valliappaan
Priyadharshini
Saranya
Sathish Raja

ABSTRACT
The main objective of the project is to develop a
prepaid energy meter.
The microcontroller takes the reading from the energy
meter and displays the reading on the LCD. The reading of
the energy meter is also sent to the cell phone of the user by
a message through GSM modem.
This project is powered by an on-board power supply
takes the ac power and converts it into dc power that is fed
to on-board devices and integrated circuits.

BLOCK DIAGRAM

SMART CARD BLOCK


DIAGRAM

HARDWARE
REQUIREMENTS:

SOFTWARE
REQUIREMENTS:

8051 MICROCONTROLLER KEIL COMPILER


EMBEDED C
GSM MODEM
Smart Card (SLE-4442)
LCD
LED
RESISTORS
CAPACITORS
DIODES
TRANSFORMER
REGULATOR
RELAY
ENERGYMETER
LAMP

HARDWARE REQUIREMENTS
ENERGY METER:
An energy or electric meter is a device that
measures the amount of electrical energy consumed
by a residence, business, or an electrically-powered
device.
Electric meters are typically calibrated in billing
units, the most common one being the kilowatt hour.

MICROCONTROLLER:

AT89S51
It is a smaller computer
Has on-chip RAM, ROM, I/O ports...

CPU

I/O
Port

RAM ROM
Serial
Timer COM
Port

A single chip
Microcontroller

Features of AT89S51/52:
Compatible with MCS-51 Products
8K Bytes of In-System Programmable (ISP) Flash Memory
Endurance: 10,000 Write/Erase Cycles
4.0V to 5.5V Operating Range
Fully Static Operation: 0 Hz to 33 MHz
256 x 8-bit Internal RAM
32 Programmable I/O Lines
Three 16-bit Timer/Counters
Full Duplex UART Serial Channel
Interrupt Recovery from Power-down Mode
Watchdog Timer
Dual Data Pointer

PIN DIAGRAM OF AT89S51:


40 Pin IC
4 Ports
32 Programmable I/O Lines

POWER SUPPLY:
230 V
AC
50
Hz

12V step down


transformer

Bridge
rectifier

5v Regulator

5V DC
Filter(470
f)

SERIAL COMMUNICATION
used for all long-haul communication
Cables that carry serial data
RS232 carries serial data in between micro controller
and MODEM through DB9 connector

MAX 232:
The MAX232 is an integrated circuit that converts signals from
an RS-232serial 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 .
When a MAX232 IC receives a TTL level
to convert, it changes a TTL Logic 0 to
between +3 and +15V, and changes TTL
Logic 1 to between -3 to -15V, and vice
versa for converting from RS232 to TTL.

DB9 CONNECTOR:
The DB9 (originally DE-9) connector is an
analog 9-pin plug of the D-Sub miniature
connector family (D-Sub or Sub-D).

RELAY:
Arelayis anelectricallyoperatedswitch.
Many relays use anelectromagnetto
mechanically operate a switch, but other
operating principles are also used, such
assolid-state relays.
Relays are used where it is necessary to
control a circuit by a low-power signal (with
complete electrical isolation between control
and controlled circuits), or where several
circuits must be controlled by one signal.
Relays with calibrated operating
characteristics and sometimes multiple
operating coils are used to protect electrical

GSM COMMUNICATION
The term GSM usually means the GSM standard
and protocols in the frequency spectrum around
900MHz.

Mobile Station:
The MS is the physical equipment used by a
subscriber, most often a normal hand-held cellular
telephone.

Base transceiver station:


The BTS comprises the radio transmission and
reception devices, and also manages the signal
processing related to the air interface.

GSM MODEM:
A GSM modem is a specialized type of modem which
accepts a SIM card, and operates over a subscription to a
mobile operator, just like a mobile phone.
From the mobile operator perspective, a GSM modem
looks just like a mobile phone.
When a GSM modem is connected to a computer, this
allows the computer to use the GSM modem to
communicate over the mobile network.
While these GSM modems are most frequently used to
provide mobile internet connectivity, many of them can
also be used for sending and receiving SMS and
MMS messages.

IR LED:
An IR LED, also known as IR transmitter, is a special purpose
LED that transmits infrared rays in the range of 760 nm
wavelength.
The appearance is same as a common LED. Since the human eye
cannot see the infrared radiations.
The camera can show us the IR rays being emanated from the IR
LED in a circuit.

DISPLAY UNIT
LIQUID CRYSTAL DISPLAY (LCD):
Most common LCDs connected to the microcontrollers are 16x2
and 20x2 displays.
This means 16 characters per line by 2 lines and 20 characters per
line by 2 lines, respectively.

LCD BACKGROUND:
If an 8-bit data bus is used the LCD will require 11 data lines
(3 control lines plus the 8 lines for the data bus)
The three control lines are referred to as EN, RS, and RW
EN=Enable (used to tell the LCD that you are sending it
data)
RS=Register Select (When RS is low (0), data is treated as a
command)
(When RS is High(1), data being sent is
text data )
R/W=Read/Write

(When RW is low (0), the data written to

the LCD)
(When RW is high (1), the data
reading to the LCD)

SOFTWARE
REQUIREMENTS

KEIL COMPILER:

Keil an ARM Company makes C compilers, macro assemblers,


real-time kernels, debuggers, simulators, integrated environments,
evaluation boards, and emulators for ARM7/ARM9/Cortex-M3,
XC16x/C16x/ST10, 251, and 8051 MCU families.
Compilers are programs used to convert a High Level Language
to object code. Desktop compilers produce an output object code for
the underlying microprocessor, but not for other microprocessors

AT COMMANDS:
AT commands are instructions used to control a modem.
AT is the abbreviation of Attention. Every command line starts with
"AT" or "at". That's the reason, modem commands are called AT
commands.
Many of the commands that are used to control wired dial-up
modems, such as ATD (Dial), ATA (Answer) supported by MODEM.
Besides this common AT command set, GSM modems and
mobile phones support an AT command set that is specific to the GSM
technology, which includes SMS-related commands like AT+CMGS
(Send SMS message), AT+CMSS (Send SMS message from storage),
AT+CMGL (List SMS messages) and AT+CMGR (Read SMS
messages).

SNAP SHOT:

CONCLUSION
Using this project we can reduce the manual
Efforts to take the readings from the energy
Meter which is cost effective solution .
Reduces man power.
It is user friendly and we can enhance this
Project ,in which an electricity department can
Send message to the consumer about the
billing information.

Thank u.........

?
?
.
?
.
s
e
i
r
e
Qu

Вам также может понравиться