GUJARAT TECHNOLOGICAL UNIVERSITY 2170001-Project 1 A Project Report On LABVIEW BASE SMART HOUSE CONTROL

GUJARAT TECHNOLOGICAL UNIVERSITY
2170001-Project 1

A Project Report
On
LABVIEW BASE SMART HOUSE CONTROL
(PROJECT CATEGORY: UNIVERSITY DEFINED PROJECT)
A.D. Patel Institute of Technology
Prepared By:
150010109024 – Patel Arth
150010109031 – Patel Ravi
150010109032 – Patel Shreyas
Group ID: 3733

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

Internal Guide:
Dr. Kalpesh Chudasama
Academic Year: 2018-2019

ACKNOWLEDGEMENT

I would like to express my profound gratitude and deep regards to my guide Dr. KALPESH J. CHUDASAMA for his excellent guidance and constant encouragement throughout the course of this thesis. We are also grateful and give our vote of thanks to Dr. NILESH CHOTHANI , Head of the EE Department ADIT and to all the staff members of Electrical Engineering Department who provide us the guidance for this project and helping us through out. the help and advice given by him from time to time shall take me to a long way in my journey of life.

INDEX
1. Introduction
Project Background…………………………………………………………………………………………………….
Basics of Lab VIEW……………………………………………………………………………………………………….
Block Diagram of the System………………………………………………………………………………………..
Objective of the System…………………………………………………………………………………………………………..
2. Interfacing Lab VIEW and DAQ Card
3. Introduction of Lab VIEW
Graphical Programming ……………………………………… 11
Lab VIEW Data Flow Programming …………………………………………………………………. 10
Environment……………………………………….11
3.3.1 Front Panel……………………………………………….12
3.3.2 Block Diagram…………………………………………..13
3.4 Different Palettes………………………………………………
Controls Palettes………………………………………..14
Function Palettes
4. Components and its Specifications……..
Temperature Sensor (LM35) … …………………………………………..
LPG Sensor (MQ-6) ……………….. ………… ……………… 17
PIR (Passive Infrared Sensor) ………………………..
Smoke Sensor (MQ-2)…………………………………………20
5. Simulation and Results………………………………………… 21
Overview and Coding ………………………………………………………….0020…………. 21
Working ………………………………………………………… 23
Implementation…………………………………………………26
Result Analysis…………………………………………………28
6. Project Evaluation and Conclusion………………………
Cost Analysis ………………………………………………………………………………… 31
Project Bifurcation …………………………………………… 33
Work Division and Days required……………………34
Applications…………………………………………………….35
Conclusion………………………………………………………36
7. Bibliography ……………………………………………………..
8. Appendix …………………………………………………………..

INTRODUCTION

Project Background

Laboratory Virtual Instrument Engineering Workbench (LabVIEW) is a system-design platform and development environment for a visual programming language from National Instruments. LabVIEW can monitor different sensor output at a same time easily with a single computer. For use of this software the computer must have high performance such as Laptop. When we started looking for the literature and research paper we came up with an idea of INTERFACING OF LabVIEW WITH DAQ CARD. The DAQ card is very high performance device in which we can monitor six numbers of sensors as a same time. As this project helpful in different application like CO2 level detection, Fire detection and many more, we decided to bring this project as our Final Year Project under the guideline of Dr. Kalpesh Chudasama in Gujarat Technological University.

Basics of Lab VIEW
Full name of lab view is laboratory virtual instrument engineering workbench. Which is made by national instruments. it is similar like MATLAB. Means it is also graphical programming language some kind of function are in lab view is
Data acquisition
Signal analysis
Hardware control with DAQ card
For lab view there is no need of external hardware instruments. There is Virtual Instruments called VI’S short.
Lab view has two windows that are
1) Front panel window
2) Block diagram window
Front panel window is use for controlling and show indicators of the system.
Block diagram window is use for making program and coding of the system

1.3 Block Diagram of the System
Here simple block diagram of our project is shown below:

1.4 Objective of the System
The first objective of our project is to design a simple monitoring system for smart home application.
Other objective is to create a virtual instrument for monitor temperature, gas leakage, and smoke and motion level.
And third objective is to interface software with hardware.
Our work uses a computer based signal acquisition system. Analysis made by the system can be efficient using Lab VIEW and it is also cost effective method for smart home monitoring.
Interfacing Lab VIEW and DAQ Card
Step 1 : First of all we have to download toolkit for LabVIEW interfacing with DAQ card. NI DAQ MAX is the toolkit which is to be download.

Step 2: For the interface with DAQ card we have to take DAQ Assist. For taking DAQ assist we have to open Function palette; Measurement I/O ; NI-DAQ mx ; DAQ assist as shown in figure.

Step 4: after taking DAQ assist from the function palette we have to open specification of the DAQ card.

Step 5: As shown in above diagram of DAQ assist then we have to select acquire signal because of we have to acquire signal from the DAQ card port. After selecting acquire signal the below figure will appear after selecting voltage output. As shown in figure eight pin is appear, we have to select the pin for the connecting sensor to it.

3. Introduction of LabVIEW
Graphical programming

LabVIEW has the Front Panel which is almost like GUI. LabVIEW programs or coding are called Virtual Instruments. Each VI has mainly three components: a block diagram, a connector panel and Front Panel.
The graphical approach also makes easy for new comers on this software, they can simply drag and drop familiar VI of lab equipment. There are controls and indicators on thr front panel which allow an operator to input data from running VI.
Lab view Data flow programming

The programming language which is used in LabVIEW is a dataflow programming language. Execution of the VI is determined by structure which operator connect different function nodes and icons from function palette by drawing wires.
This wire propagates variables and any node can execute as soon as all its input data become available to the node. Since this might be the case for multiple nodes simultaneously, parallel execution is possible.

Environment of LabVIEW

When we open the LabVIEW, the first screen shown is “Getting Started” window.

For making a new VI, we have to select “Blank VI”. When we open a blank VI, an untitled front panel window will appears, it displays the front panel and is one of the two LabVIEW window you use to build a VI.

Front Panel

In the Front Panel of the LabVIEW we can take different controls and indicators, which are the input and output terminals of the VI, Controls are push button, knobs, dials and other devices. Indicators are the LED’s, graphs etc.
Block Diagram

After the building of interface, we have to add code using VI’s and structures to control the objects. The block diagram contains the code. The block diagram is almost same like the flowchart.
The block diagram contains the graphical source code. It includes terminals, functions, constants, wires and structures which transfer data among other block diagram components.
3.4 Different Palettes

Controls Palette

The Controls and Functions palettes contains sub palettes of objects which we can use to create VI for our projects. When we click on sub palettes the entire palettes is change in sub palettes, where we can get some more controls.

Function Palette

4. Components and its Specifications
Temperature Sensor (LM35) … …………………………………………..

Description:
These sensors are the most precise which has integrated circuit whose output voltage is linearly proportional to the centigrade temperature.
This device makes interfacing to readout or control circuitry quite easy because of low output impedance, linear output, and precise inherent calibration.
It can operate over -55 C to 150 C temperature ranges.
It is used with single power supplies.

Features:
Calibrated directly in Celsius
Suitable for remote application
Low-Cost
Operates from 4V to 30V
Low self-heating

Application:
Monitoring of Industrial Parameters
Home Appliances

LPG Sensor (MQ-6) ……………….. ………… ……………… 17

Description
It is a simple device to use which is used to sense LPG which is composed of mostly propane and butane concentrations in the air. It can easily detect gas concentrations anywhere in ambient atmosphere from 150 to 10000 ppm.
??It is highly sensitive device and also has fast response time.
Output of the sensor is in the analog form. For the drive circuit, we need to give power the heater coil with 5 V and connect the output to an ADC.
Features
It is highly sensitive device to LPG, propane and Iso-butane.
??It is fast in sensing.
??It has long life and is stable.
??Simple drive circuit.
??Small sensitivity to alcohol and smoke.
Applications:
It is used in gas leakage detection.

PIR (Passive Infrared Sensor)
Description
PIR sensor detects infrared rays from human being around within approximately 10 meter from the sensor.
Actual detection range is between 5m to 12m.
????Features
Motion Detection
Dual Element sensor with low noise high sensitivity.
Supply voltage 5V
Delay time adjustable.
Standard TTL output
Application:

Outdoor lights
Lift Lobby
Multi apartment complexes
Common staircases
Shopping mall
Covered parking area
Garden light

.
Smoke Sensor (MQ-2)…………………………………………20
?Description
??The sensitive material of this sensor is SnO2, which has lower conductivity in clean air.
??It detects fire whenever there is any smoke.
????Features
?????????????It is highly sensitive to smoke and also so me gases.
??It has long life.
??It is also low in cost.
??Simple drive circuit.
?Applications
??Portable detector.
??Can be used in Industries, Hospitals, Malls,
House, Railway Stations etc.

Simulations and
Results
5.1 Overview of the Coding
The coding for this project is developed in the block diagram.
It has been developed for sensing different parameters like temperature, smoke, CO level and LPG.
Lab VIEW uses the dataflow programming where the flow of data through the nodes and wires on the block diagram determines the execution order of the functions and VI’s.
The block diagram contains the coding and graphical source code which is also known as G code.

5.2 Working
The working of this system starts with the sensing of the sensor. In this system here are four sensors which are LM35, MQ2 , MQ6 and MQ7. They sense temperature, smoke and LPG respectively.

5.3 Implementation

6. Project Evaluation and Conclusion

6.1 Cost Analysis
It shows here various amount which we have spent during project work.
??It is quite affordable and this system can be placed anywhere.
Given below is the cost exploration of the project of various components that either we have purchased.

Component
Quantity
Price

MQ-2 (Smoke Sensor)
1
270/-

MQ-6 (LPG sensor)
1
220/-

LM35 (Temperature Sensor)
1
60/-

Buzzer
2
60/-

PIR Sensor
1
250/-

Miscellaneous Cost

500/-

1360/-

6.2 Project Bifurcation
Entire project of current semester is self-funded by students. We are working as team of three students and one faculty guide from Electrical department of A. D. Patel Institute of Technology. Work of this project was stared around Mid-July 2018, by setting a definition, learning LabVIEW software, reviewing components and cost analysis. We have spent much amount of time in learning LabVIEW. Then we had created a circuit diagram and simultaneously made the coding in the LabVIEW. Division of work in the project is partial as mentioned in above figures but rather we had collaborated approached in which all of the three has shown helpful hand to each other’s domain. We have followed our time schedule decided as before so there was no hustle up at any point of task completion.

6.2.1 Work Division and Days Required

Given below is the tabular form which describes work division during the entire project completion from July 2018 to October 2018.

Code Reference

Completed

In progress

Remaining

To be done by Ravi Patel

To be done by Arth Patel

To be done by Shreyas Patel

Sr No.
TASK

SENSORS

LabVIEW

1.
Research

2.
Interfacing LabVIEW with DAQ card

3.
Circuit Design

4.
Sheet Making in LabVIEW

5.
Implementation

6.
Final Testing

BIBLIOGRAPHY

1 Mythily J and Balaji P ”Implementation of Monitoring Industrial Pollution System Using LabVIEW and GSM”
2 Isha Gupta and Rashpinder Kaur ”Design and Development of Industrial Pollution System Using LabVIEW”
3National Instrument (www.ni.com)
4 Arduino(www.arduino.cc)
5Data sheet of LM 35 Temperature Sensor
6Data sheet of MQ-2 Smoke Sensor
7Data sheet of MQ-6 LPG Sensor
9Data sheet of PIR Sensor
10Gary W. Johnson, Richard Jennings, “Lab VIEW Graphical
Programming”, 4th ed. McGraw-Hill.
11Youtube(www.youtube.com)
12Wikipedia (www.wikipedia.org)
13www.mindmajix.com
14www.learnni.com

APPENDIX
Design engineering canvas of our project:
AEIOU

2.Empathy Canvas:

3. Ideation Canvas: