Professional Documents
Culture Documents
3.DESIGN APPROACH
A smart home is equipped with special structured wiring that permits
occupants to program associate degree array of machine-controlled home
electronic devices by
entering one command. Implementation of the smart house is supported the lab
VIEW software package.The objective of this project is to map the processes
that optimize the use of smart home technology to ensure that as many users as
possible have access to the technology as possible.
The software Lab VIEW controls the Indoor lighting, outside illumination,
temperature, fire In-house security, burglary security. Every component
typically performs one function, and there is no function synchronization with
other pieces that are safety systems including failure warning system That
signals a burglary, the lighting system which includes internal house lighting,
The design specifications of the circuit are very simple & the following
parameters can be calculated using the given formula:
Sensor value of temperature (t):
Sensor Value t = analog Read(A0)/2
Lcd write((sensorValuet%10) +0x30)
Sensor value of gas sensor(p):
Sensor Value p = analog Read(A1)/2
Lcd. write(((sensorValuep%100)/10) +0x30)
Sensor value(z):
Sensor value z =analog Read(A2)/2
Lcd. Write((((sensorValuez%100)/10+0x30)
Pyro electric Infrared (PIR) Sensor may be a compact and complete sensor
which is employed for physical body detection. For high sensitivity and low
noise a Fresnel lens and motion detection circuit are incorporated in the sensor.
Output of a sensor is a standard 5V active low output signal. The sensor can
detect motion up to six meters and may be utilized in burglar alarms. It can also
access control system. It’s not expensive and ideal for security systems, holiday
props, motion activated lighting and robotics applications.
Specifications:
Size: Rectangular.
Power supply: 5V-12V input voltage for most modules (they have a 3.3V
regulator), but 5V is ideal in case the regulator has different specs
3.4.2 LDR sensor
Applications:
Analog applications:
Digital applications:
Sensitivity:
The sensitivity of a photodetector is that the relationship between the sunshine
falling on the device and therefore the resulting output . In the case of a
photocell, one is handling the connection between the incident light and
therefore the corresponding resistance of the cell.
Spectral response:
Like the human eye, the relative sensitivity of a detector depends on the
wavelength (color) of the incident lightweight. every photoconductor
material kind has its own distinctive spectral response curve or plot of the
relative response of the photocell versus wavelength of sunshine .
3.4.3 Temperature sensor (LM35):
The LM35 thus has a plus over linear temperature sensors calibrated in ˚ Kelvin,
because the user isn't required to subtract an outsized constant voltage from its
output to obtain convenient Centigrade scaling. The LM35 doesn't require any
external calibration or trimming to supply typical accuracies of ±1⁄4˚C at
temperature and ±3⁄4˚Cover a full −55 to +150˚C temperature range.
It are often used with single power supplies, or with plus and minus supplies. As
it draws only 60 µA from its supply, it's very low self-heating, but 0.1˚C in still
air. The LM35 is rated to figure over a −55˚ to +150˚C temperature vary, while
the LM35C is rated for a −40˚ to +110˚C vary (−10˚ with improved accuracy).
When the target combustible gas exist, The sensor’s conductivity is higher
along side the gas concentration rising. Please use simple electrocircuit, convert
change of conductivity to correspond output of gas concentration. MQ-2 gas
sensor has high sensitity to LPG, Propane and Hydrogen, also might be wont to
Methane and other combustible steam, it's with low cost and suitable for
different application.
Character:
High sensitivity to LPG, Propane and Hydrogen
Long life and low cost
Simple drive circuit
Application:
Domestic gas leakage detector
Industrial Combustible gas detector
Portable gas detector
Parameter Condition
Concentration 300-10000ppm
Voltage 24V dc
Sensing resistance 2Kohm-20Kohm
Detection Combustible gas and smoke
3.4.5 Zigbee transmitter and receiver modules:
Zigbee technology:
Introduction:
ZigBee is the industry wireless mesh networking standard for connecting
sensors, instrumentation and control systems. ZigBee, a specification for
communication during a wireless personal area network (WPAN), has been
called the "Internet of things." Theoretically, your ZigBee-enabled kitchen
appliance can communicate together with your ZigBee-enabled toaster.
Path between the transmitter and therefore the receiver briefly , the transmitter
feeds a sign of encoded data modulated into RF waves into the antenna. The
antenna radiates the signal through the air where it's picked up by the antenna of
the receiver. The receiver demodulates the RF waves back to the encoded data
stream sent by the transmitter.
Specification:
Zigbee digital transmitter in 2.4GHZ band is meant using Verilog for
acknowledgement frame (or) architecture. There are two types of layers.
Physical layer and
Medium Access Control (MAC) layer.
In these Zigbee transmitter we are using 2.4 GHZ band because it's a world
wide band. In these schemes, we focus on 2.4 GHZ band application which has
16 channels with spacing of 5 MHZ and data rate is 250 Kbps.
Parameter Specification
Data rate 250kbps
No of channels 16
Operating frequency 5.4GHz
Channel spacing 5MHz
Chip rate 2 mega chips for second
MAC layer defines two sorts of nodes they're Reduced Function Devices
(RFDs) and Full Function Devices (FFDs).
Arduino Uno:
Overview:
It has fourteen digital input/output pins (of that six ar typically used as PWM
outputs), 6 analog inputs, a sixteen Mc ceramic resonator, a
USB association, associate degree influence jack, associate degree ICSP header,
and a push. It contains everything required to support the
microcontroller; merely connect it to a pc with a USB cable or power it
with associate degree AC-to-DC adapter or battery to urge started.
Parameter Condition
Microcontroller ATmega328
Operating voltage(limits) 5V
Input voltage (recommended) 7-12V
Input voltage(limits) 6-20V
Flash memory 32KB
Digital I/O pins 14
Analog input pins 6
3.4.6 Step down transformer:
General description:
It is a general-purpose chassis mounting mains transformer. Transformer has
240V primary windings and Centre tapped secondary coil . In AC circuits, AC
voltage, current and waveform are often transformed with the assistance of
Transformers.
Product description:
A transformer is an device that transfers electricity between two or more circuits
through electromagnetic induction. Electromagnetic induction produces an
voltage within a conductor which is exposed to time varying magnetic fields.
Transformers are wont to increase or decrease the alternating voltages in
electrical power applications.It is a step-down transformer in which the
secondary winding is more than primary winding. Due to this winding it can
able to step down the voltage.
Applications:
DIY projects Requiring In-Application High current drain.
On chassis AC/AC converter.
Designing a battery Charger.
Electronic applications.
Step down applications (Power transmission).
3.4.7 Relay unit
Description:
The relay module is an electrically operated switch that permits you to show on
or off a circuit using voltage and/or current much above a microcontroller could
handle. There is no connection between the low voltage circuit operated by the
microcontroller and therefore the high-power circuit.
The each channel within the module has three connections named NC, COM,
and NO. Depending on the input trigger mode, the jumper cap are often placed
at high level effective mode which ‘closes’ the normally open (NO) switch at
high level input and at low level effective mode which operates an equivalent
but at low level input.
Specifications:
Relay long life can absorb 100000 times during a row
Module are often directly and MCU I/O link, with the output indicator
PCB Size: 45.8mm x 32.4mm
Pin configuration:
1. VCC: 5V DC
2. COM: 5V DC
3. IN1: high/low output
4. IN2: high/low output
5. GND: ground
4. PROJECT DEMONSTRATION
4.1 INTRODUCTION:
The project is started by completing hardware part and then it is tested for the
correct functionality of the components. Graphical code is developed in the
LabVIEW software and both software and hardware are both interfaced through
Zigbee technology which is wireless transmission. there are some accuracy
problems regarding the functionality of sensors when interfaced with the
software which can be resolved by taking better quality sensors.
4.2 SIMULATION:
To turn your acquired data into real business results, you'll develop algorithms
for data analysis and advanced control with included math and signal processing
IP or reuse your own libraries from a variety of tools.
Simulation results:
LabVIEW block diagram
The above block diagram indicates the back panel of the LabVIEW where we
write the graphical code which is suitable and interfaceable with the Zigbee
software. when we write the graphical code in the black panel then
automatically subsequent control functions which can be monitored are created
in control panel or front panel.
When we want to switch ON/OFF the loads by using the LabVIEW, alternate
code which we created for our own purpose will be given to LabVIEW control
panel which controls the loads of the smart home. we can monitor the data of
the sensors generated on the front panel of the LabVIEW continously.so real
time data monitoring can be done using the LabVIEW.
LabVIEW front panel result:
The max –min limits of every sensor are mentioned clearly .so using those
limits we can monitor the functionality of the sensor that is we can check
whether the sensor is working properly or not from the front panel indication
.separate block is created for each and every sensor and load so that it makes us
easy to do the monitoring. Simulation is successfully tested against the
hardware setup.
Hardware results:
Home automation Arduino code:
Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(13, 12, 11, 10, 9, 8);
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
pinMode(2, OUTPUT); //buzzer
pinMode(3, OUTPUT); //led labview
pinMode(4, OUTPUT); //relay
pinMode(5, OUTPUT); //relay
pinMode(6, OUTPUT); //led 1
pinMode(7, OUTPUT); //led 2
digitalWrite(7,0);
digitalWrite(6,0);
digitalWrite(5,0);
digitalWrite(4,0);
digitalWrite(3,1);
lcd.begin(16,2);
}
char oc;
void loop() {
// read the analog in value:
lcd.setCursor(0, 0);
lcd.print("T");
sensorValuet = analogRead(A0);
sensorValuet = analogRead(A0)/2;
lcd.write((sensorValuet/100)+0x30);
lcd.write(((sensorValuet%100)/10)+0x30);
lcd.write((sensorValuet%10)+0x30);
lcd.setCursor(8, 0);
lcd.print("G");
sensorValuep = analogRead(A1)/2;
lcd.write((sensorValuep/100)+0x30);
lcd.write(((sensorValuep%100)/10)+0x30);
lcd.write((sensorValuep%10)+0x30);
lcd.setCursor(0, 1);
lcd.print("L");
sensorValuez = analogRead(A2)/2;
lcd.write((sensorValuez/100)+0x30);
lcd.write(((sensorValuez%100)/10)+0x30);
lcd.write((sensorValuez%10)+0x30);
lcd.setCursor(8, 1);
lcd.print("S");
pinMode(A5,INPUT_PULLUP); //switch 1
pinMode(A4,INPUT_PULLUP); //swith 2a
sensorValuei=digitalRead(A5);
sensorValuej=digitalRead(A4);
lcd.print(sensorValuei);
lcd.print(sensorValuej);
if(sensorValuep>200)
{
digitalWrite(5,HIGH);
}
else
{
digitalWrite(5,LOW);
}
if(sensorValuet>40)
{
digitalWrite(2,HIGH);
}
else if(sensorValuep>200)
{
digitalWrite(2,HIGH);
}
else
{
digitalWrite(2,LOW);
if(sensorValuez<200)
{
digitalWrite(4,HIGH);
}
else
{
digitalWrite(4,LOW);
while (Serial.available()) {
// get the new byte:
char inChar = (char)Serial.read();
lcd.setCursor(15,1);
lcd.print(inChar);
// add it to the inputString:
// if the incoming character is a newline, set a flag
// so the main loop can do something about it:
if (inChar == 'A') {
pinMode(3,OUTPUT);
digitalWrite(3,0);
}
if (inChar == 'B') {
pinMode(3,OUTPUT);
digitalWrite(3,1);
}
}