Professional Documents
Culture Documents
(Session 2019-2021)
Supervised By
1|Page
UNIVERSITY OF ENGINEERING AND TECHNOLOGY LAHORE
(FAISALABAD CAMPUS)
2|Page
TABLE OF CONTENTS
Abstract 5
Acknowledgement 6
Chapter # 01
BACKGROUND 7
CHAPTER # 2
PROPOSED ARCHITECTURE 16
2.1 Flow Diagram 16
3|Page
Chapter # 03
APPENDIX 22
REFERENCES 25
4|Page
Abstract
In Pakistan, this is the Common problem that either the Natural Gas is being stolen
by some CNG stations owner or also it’s very difficult to detect the gas leakage in
the field area.
I design a mobile telemetry device for SNGPL that is helpful to stop the Gas
larceny, abnormality in gas flow and outpouring detection. In this project
flowmeter will be measuring flow of the gas and in case of critical situation the
control valve will close the line. I use Microcontroller, Flow meter (In this for
flow meter values I use variable resistor to get different voltage values) so we can
use this simulation as an understanding and can implement this project on control
of any other quantity too like water or any chemical etc.
Microcontroller gets the inputs from the flow sensor and then interface between
microcontroller and GSM modem. Then GSM modem will send the SMS to server.
This will surely improve the measurement of gas in the main pipeline, in fact this
is all for the convenience of SNGPL to prevent theft of Gas and detect the leakage
detection.
5|Page
Acknowledgement
I, the partner laborer of the venture report under examination take a
commencement with the lofty name of Almighty ALLAH, who gave us type,
impetus and solidarity to finish it with most dimensioning route inside the
endorsed time limit.
And the deepest appreciation undoubtedly goes to our most honorable and
respected Project Advisor Dr. Muhammad Nasir, who was never insolent to me,
instead, he remained magnanimous throughout the initial and final stages of my
project. His helping hand and guidance led this project in finding the real goal.
6|Page
Chapter#1
Background:
1.1 Flow meter:
A flow meter may be a device for measuring the speed of fluid flow or gas. The factors on which
flow meter is chosen relies on the medium of measurement and accuracy required.
All Mass Flow meters care for heat transfer, rotation caused by the turbine movement or
differential pressure. But Coriolis Mass Flow transmitters directly measures the mass and it is the
only flow transmitter which does so. Coriolis flow meters measures the quantity of flow by
directly converting the acceleration caused by the mass into amount of flow. Thanks to direct
measurement of mass the measurement isn't full of the fluid pressure, density or the other
parameter changes. Which is that the one in all the best advantage of this mass flow meter.
Coriolis mass flow meters include vibrating tubes inside it. When fluid flow through these tubes
swing is generated. Mass flow is proportional to the number of twist created by the fluid flow
through tubes. Coriolis mass flow transmitters are accustomed measure the twist generated and
make a linear electrical flow signal.
7|Page
FCI ST 75
E+ H PROMAG W 400
8|Page
Endress Hauser Promass 60 F
Benefits:
The Promass 60 F is barely used to measure the mass flow of any liquid or Gas. At the identical
time, it will also measure fluid density and therefore allow us to calculate the volume flow.
The benefits of Coriolis mass-flow estimation are undeniable. It does not shock anyone, hence,
to search out that this standard is utilized in an extremely gigantic scope of industry areas,
including drugs, synthetic substances and petrochemicals, oil and gas, food, and furthermore in
guardianship move applications for the most part.
Essentially all liquids will be estimated: cleaning specialists and solvents, energizes, vegetable
oils, creature fats, latex, silicon oils, liquor, natural product arrangements, toothpaste, vinegar,
ketchup, mayonnaise, gases, condensed gases, and so on
One for all - multivariable metering. The adaptability to live a few cycle factors all at the
indistinguishable time marches totally new application fields. Mass flow, thickness and
temperature (the essential estimated factors) might be wont to infer different factors like volume
flow, strong substance, focuses, and modern thickness capacities.
9|Page
Endress Hauser Promass 60 F
Specifications:
10 | P a g e
Application of Endress Hauser Promass 60 F:
Endress Hauser Promass 60 F used to measure volume flow of Chocolates, Milk, syrups, Oils,
fats, Acids, alkalis, Varnishes, paints, Suspensions, Pharmaceuticals, catalytic converters,
inhibitors, Gases, and many more.
The flow transmitter use to measure the flows having critical importance like, Mixing and
matching of assorted raw materials, Controlling of processes, Measurement of fluids with
quickly changing densities and Control and monitoring of product quality
The benefits of this measuring process are shown by its effective use in food preparing, the drug
business, the substance and petrochemical ventures, garbage removal, energy creation, and so on
CF = 2. (△m). (ω.ν)
Where:
CF is Coriolis Force.
ω is Angular Velocity.
So Amplitude of this force depends upon Moving Mass, Velocity so we can say it depends upon
Mass flow.
11 | P a g e
The Sensor utilize a wavering as opposed to a determined precise speed ω and two equal
estimating tubes (Promass M and F), with liquid flowing through them, are made to oscillate in
antiphase so they act kind of a carry out. The Coriolis Forces created at the estimating tubes
cause a stage move inside the tube oscillation (see Fig):
When there's zero flow, for example with the liquid stopping, the two tubes oscillate in stage (1).
When there's mass flow, the tube oscillation is decelerated at the bay (2) and sped up at the
power source (3).
As the mass flow expands, the Phase difference (A-B) will increase. The motions of the
estimating tubes are resolved utilizing electrodynamic sensors at the inlet and outlet. The
working standard is autonomous of temperature, pressure, thickness, conductivity or flow
profile.
12 | P a g e
GSM Modem is a modem in which we use SIM card and it will work same as Sim works in
mobile phones, In my project I use GSM Modem to send the SMS to user when flow value
increase from a given limit.
We have SIM Com Wireless Solution that is a quick growing M2M company which supports
GSM/EDGE/GPRS and WCDMA.
Applications of GSM Modem:
The Services we get from GSM Modem are Automotive, Telemeters, Security, Tracking &
Tracing, Auto Meter Reading, Industrial Automation, Payment, and Healthcare.
The list of AT commands I used for sending SMS to the user are given in Table (1) of Appendix.
PIN Configurations:
13 | P a g e
1.7 Soft ware’s used in project:
MICRO C
PROTEUS
1. MPLAB
2. PIC C COMPILER
3. MICRO-C
14 | P a g e
1.9 Why We Use PIC Micro Controllers:
Following are the reasons of using PIC-MICROCONTROLLER in projects.
1. Code Efficiency:
The Pic Microcontroller provide us the Code Efficiency like we have here programmable
and data memory. Also in this we have separate internal buses for both Data and
Memory.
2. Safety:
The instruction well fit in 12 or 14 bit programming memory. So there is no chance for
software jumping and trying to execute DATA as instruction.
3. Instruction Set:
We have 33 instructions for PIC Microcontroller so as we have lesser number of
instructions so it is easy to write program in programming language.
4. Speed:
PIC MICROCONTROLLER is extremely fast, the speed of PIC-18F452 which I use in
my project have speed of 40 MHz which provide a fast way of program execution.
5. Static Operation:
The PIC MICROCONTROLLER is a static Microcontroller which means that if we stop
the clock of microcontroller the data we have in registers will be saved. But usually we
did not stop the clock but we make the microcontroller in sleep mode in which it only use
1 micro amperes of current. So data will remain intact while controller in sleep mode, it
shows the static operation of microcontroller.
6. Drive Capabilities:
The PIC-18F452 which I use have high output driving capability and can directly drive
BJT’s, FET’s, LED’s and many more. The pins can draw 25mA to 100mA for device.
7. Options:
In PIC microcontrollers we have many options of Input/output Pins, Timers, and Analog
to Digital Convertors and memory for data storage and for programming. So PIC
microcontroller fulfil the requirements of users doing projects on it.
PIC MICROCONTROLLER is programmed using c language. One can use any compiler
available in market or online to programme and compile the code. It is easier to program in
embedded C instead to program in other programming languages. To write program one can use
DEMO version too but in this we can only code up to 2KB of programming memory.
15 | P a g e
CHAPTER # 2
Proposed architecture
2.1 Flow Diagram:
16 | P a g e
Chapter # 3
Experimental Results & Future Consideration
3.1 Experimental Results:
Experimental results are drawn by simulation. We use
Crystal Oscillator is made up of a natural material called quad. When we give voltages to the
crystal oscillator, quad particles of crystal oscillator will vibrate and will generate a specific
frequency which will depend on the size of the crystal. Capacitors are normally used for filtering
and decoupling purposes. Frequency is the basic component upon which our microcontroller
works. We may say that frequency is the heart beat of the microcontroller.
In the microcontroller the transistors works at the rising edge or falling edge of the clock cycle.
We may change this by our requirement. Our microcontroller is working at the falling edge.
17 | P a g e
3.2 Flow Start:
We measure the gas flow at starts if flow is normal then we have the menu like shown above.
Now we can change or show the data as shown in the menu.
18 | P a g e
3.3 Flow Stop:
In this case we can see from the simulations that valve will be closed because we have an over
flow. After closing the valve we will Send SMS.
19 | P a g e
3.4 Program Flow Diagram
Steps:
1) First the program check the flow from ADC. If flow is normal we have the menu like
given above.
Now we can enter the Data like change the flow limit or change the cell phone
number.
Or we can read the DATA like flow value or flow limit (maximum flow value) and
cell number of user.
20 | P a g e
2) Now if the value of flow of GAS is greater than the entered limit of flow, the MICRO
CONTROLLER will send a signal to close the valve and will also send SMS.
21 | P a g e
Appendix:
Table (1) AT Commands List
Testing:
Command Description
Call control:
Command Description
ATO Go on-line
Command Description
22 | P a g e
AT&C Define DCD usage
Command Description
23 | P a g e
AT+CMGW Write message to memory
Command Description
24 | P a g e
References
Engr. M. Amir
SNGPL 09929310079
1. http://int.rsdelivers.com/product/honeywell/awm3300v/3300v-airgas-mass-flow-sensor-1slm/
0407596.aspx#
2. http://www.poputek.com/GSM-GPRS-Module-35.html
3. http://www.simcom.us/product_detail.php?cid=1&pid=37
4. http://www.poputek.com/ks-gsm-module-SIM900-DATASHEET/
5. http://www.tutorialspoint.com/php/php_get_post.htm
6. http://www.flowmeters.com
25 | P a g e