Sunteți pe pagina 1din 17

MADANAPALLE INSTITUTE OF TECHNOLOGY & SCIENCE

(UGC-AUTONOMOUS), ANGALLU, CHITTOOR DIST.

MINI PROJECT REPORT


ON
SMART ENERGY SAVING ENVIRONMENT

BACHELOR OF TECHNOLOGY
COMPUTER SCIENCE & ENGINEERING,
ELECTRICAL AND ELECTRONIC ENGINEERING
AND
ELECTRONICS & COMMUNICATIONS ENGINEERING
Of
UGC AUTONOMOUS
2014-2018

Submitted by:
P.CHANDRAKALA 14691A0522
K.CHANDRAMOULI 14691A0521
S.K.IRFAN ALI 14691A0290
M.VISWANATH 14691A0285
M.SUBHRAMANYAM 14691A0M04
MADANAPALLE INSTITUTE OF TECHNOLOGY & SCIENCE
(UGC-AUTONOMOUS)
ANGALLU, CHITTOOR DIST.

CERTIFICATE

This is to certify that this mini project entitled SMART ENERGY SAVING
ENVIRONMENT has been completed by

P.CHANDRAKALA 14691A0522
K.CHANDRAMOULI 14691A0521
S.K.IRFAN ALI 14691A0290
M.VISWANATH 14691A0285
M.SUBHRAMANYAM 14691A0M04

Project guides
Dr. TIRUPATHY KESAVAN, Dept. of CSE
Mr. K.SATHEESH BABU, Dept. of EEE
Mr.ASHOK, Dept. of ECE

HEAD OF DEPARTMENTS:

Dr. M.SREEDEVI
Dr.KAMAL BASHA
Dr. M.THAMARAI
ACKNOWLEDGEMENT

During our project work in the Madanapalle Institute of Technology And Science,
Angallu. Several persons involved directly and indirectly with our work. Without their support it
would be not possible for us to finish our work. That is why we wish to dedicate this section to
recognize their support.
We would like to express our gratitude to all the people behind the screen who helped us
to transform an idea into a real application
We would like to express our heartfelt gratitude to my parents without whom we would not have
been privileged to achieve and fulfill our dreams.
We profoundly thank to Dr. TIRUPATTHY KESAVAN AND Mr. K.SATHEESH BABU,
Mr.ASHOK, , who has been an excellent guide and also a great source of inspiration to our
Work.
We wish to thank Dr. M.SREEDEVI AND DR.M.THAMARAI,DR,KAMAL BASHA
Head of Department computer science and Engineering MITS, Madanapalle, for his valuable
suggestions during the course of miniproject work.
We wish to thank our principal Dr. C. YUVARAJ for permitting us to carry project work
We would like to thank all the other staff members, both teaching and non-teaching, who
extended their timely help and eased our task. We would also like to thank friends and classmates
who held directly or indirectly in the successful completion of our project work.
DECLARATION

We hereby declare that the results embodied in the project SMART ENERGY SAVING
ENVIRONMENT by us under the guidance of Dr.TIRUPATTHY KESAVAN(dept of
CSE)Mr. K.SATHEESH BABU, Dept. of EEE , Mr.ASHOK, Dept. of ECE,in partial
fulfillment of the award of bachelor of technology in Electronics and Communication
Engineering and computer science & engineering from UGC AUTONOMOUS and we have not
submitted the same to any other university/Institute for award of any other degree.

Date:
Place: Madanapalle

Project Associates

P.CHANDRAKALA 14691A0522
K.CHANDRAMOULI 14691A0521
S.K.IRFAN ALI 14691A0290
M.VISWANATH 14691A0285
M.SUBHRAMANYAM 14691A0M04
INTRODUCTION

In recent years, the consumption of energy has increased considerably in the industrial,
commercial and residential sectors. This has prompted a branch of research which attempts to
overcome this problem by applying different information and communication technologies,
turning houses and buildings into smart environments. In this paper, we propose and design an
energy saving technique based on the relationship between the user's activities and electrical
appliances in smart home environments,by using IOT.
The main idea of this project is, in this system the RF reader will read the ID and
automatically switch on the corresponding lights and fans based on the humidity. For this
humidity sensor and intensity sensor required. The decision of which fan and light to be switched
on depends on the data that are already available in the database.

This we did as, the fans and lights have to be given numbers. The staff ids based on their
location of their seating place has to be mapped with the corresponding fan and light. If the
faculty exist, the room the fan or /and light have to be switched off. The problem to be taken care
here is by having the assumption that the RFID reader is having the UPS connectivity by which
power supply is always available.
If the power goes off,the fans and lights will be off once the power comes which has to be
on and off. The idea we execute in the staff room,by assigning a separate RFID reader to each
faculty ,we use IR sensor first and detect the person with IR Id and then their RFID card will be
readed with EM18 RFID Reader.If a person enters to his cabin his corresponding FAN and
LIGHT to be switched on where the devices details are already stored in the database.
Component List

COMPONENT USED
ARDUINO MEGA 2560
RFID READER EM18
MULTIPLE POWER SUPPLY
4 RFID CARDS
12V /12A ADAPTOR
LEAD CONEECTORS
WIRES,NUTS,BOLTS
WASHERS
GLUE
ACRYLIC SHEET
WIFI MODULE/GSM MODEM
IR SENSORS
4 RELAYS
ANTENNA
EVAT CHIP
MICROCONTROLLER 2560
BLOCK DIAGRAM

Block Diagram Description


It mainly consists of following blocks

Arduino Board:

Arduino is an open-source electronics platform based on easy-to-use hardware and software.


Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message
- and turn it into an output - activating a motor, turning on an LED, publishing something online.
You can tell your board what to do by sending a set of instructions to the microcontroller on the
board. To do so you use the Arduino programming programming based on Wiring), and the
Arduino Software (IDE), based on Processing.
Arduino has been used in thousands of different projects and applications. The Arduino software
is easy-to-use for beginners, yet flexible enough for advanced users. It runs on Mac, Windows,
and Linux. Arduino boards are relatively inexpensive compared to other microcontroller
platforms. The least expensive version of the Arduino module can be assembled by hand, and
even the pre-assembled Arduino modules cost less than $50The Arduino Software (IDE) runs on
Windows, Macintosh OSX, and Linux operating systems. Most microcontroller systems are
limited to Windows.
The Arduino Software (IDE) is easy-to-use for beginners, yet flexible enough for advanced users
to take advantage of as well. The Arduino software is published as open source tools, available
for extension by experienced programmers. The language can be expanded through C++
libraries, and people wanting to understand the technical details can make the leap from Arduino
to the AVR C programming language on which it's based. Similarly, you can add AVR-C code
directly into your Arduino programs if you want to.
The plans of the Arduino boards are published under a Creative Commons license, so
experienced circuit designers can make their own version of the module, extending it and
improving it. Even relatively inexperienced users can build the breadboard version of the module
in order to understand how it works and save money.

RFID Tag:

In an RFID system the transponder that contains the data to be transmitted is called an RF tag.
RF tags are either active or passive. RFID tagging is an ID system that uses small radio
frequency identification devices for identification and tracking purposes. An RFID tagging
system includes the tag itself, a read/write device, and a host system application for data
collection, processing, and transmission. An RFID tag (sometimes called an RFID transponder )
consists of a chip , some memory and an antenna.
Most RFID tags are made up of at least two main parts. The first is an an antenna, which receives
radio frequency (RF) waves. The second is an integrated circuit (IC), which is used for
processing and storing data, as well as modulating and demodulating the radio waves
received/sent by the antenna.A RFID tag is also known as a RFID chip.

RFID tags that contain their own power source are known as active tags. Those without a power
source are known as passive tags. A passive tag is briefly activated by the radio frequency ( RF )
scan of the reader. The electrical current is small -- generally just enough for transmission of an
ID number. Active tags have more memory and can be read at greater ranges.
Increasingly, RFID tagging is used in supply chain management as an alternative to bar code
technology. Although more expensive to use than the bar code stickers, RFID tags don't get dirty
or fall off or require an unobstructed line-of-sight between the tag and the reader. There are
almost endless possible uses for RFID tagging. Injectable ID chips have been used to track
wildlife and livestock for over a decade. An injectable RFID tag called the VeriChip can be used
to help medical personnel identify a patient who is unable to speak -- and even provide access to
the person's medical records.
1.1 : IOT
The Internet of things (IoT) is the inter-networking of physical devices, vehicles (also referred to
as "connected devices" and "smart devices"), buildings, and other itemsembedded with
electronics, software, sensors, actuators, and network connectivity that enable these objects to
collect and exchange data.[1] In 2013 the Global Standards Initiative on Internet of Things (IoT-
GSI) defined the IoT as "the infrastructure of the information society." The IoT allows objects to
be sensed or controlled remotely across existing network infrastructure, [2] creating opportunities
for more direct integration of the physical world into computer-based systems, and resulting in
improved efficiency, accuracy and economic benefit in addition to reduced human intervention.[3]
When IoT is augmented with sensors and actuators, the technology becomes an instance of the
more general class of cyber-physical systems, which also encompasses technologies such as
smart grids, smart homes, intelligent transportation and smart cities. Each thing is uniquely
identifiable through its embedded computing system but is able to interoperate within the
existing Internet infrastructure. Experts estimate that the IoT will consist of almost 50 billion
objects by 2020.
Scope:
Internet of Things can connect devices embedded in various systems to the internet. When
devices/objects can represent themselves digitally, they can be controlled from anywhere. The
connectivity then helps us capture more data from more places, ensuring more ways of
increasing efficiency and improving safety and IoT security.
IoT is a transformational force that can help companies improve performance through IoT
analytics and IoT Security to deliver better results. Businesses in the utilities, oil & gas,
insurance, manufacturing, transportation, infrastructure and retail sectors can reap the benefits of
IoT by making more informed decisions, aided by the torrent of interactional and transactional
data at their disposal.

2 : Cloud Computing
Cloud computing is a type of Internet-based computing that provides shared computer
processing resources and data to computers and other devices on demand. It is a model
for enabling ubiquitous, on-demand access to a shared pool of configurable computing
resources (e.g., computer networks, servers, storage, applications and services), [1][2] which can
be rapidly provisioned and released with minimal management effort.
Cloud computing and storage solutions provide users and enterprises with various
capabilities to store and process their data in either privately owned, or third-party data
centers[3] that may be located far from the userranging in distance from across a city to
across the world. Cloud computing relies on sharing of resources to achieve coherence
and economy of scale, similar to a utility (like the electricity grid) over an electricity network.
Cloud computing eliminates the capital expense of buying hardware and software and setting up
and running on-site datacentersthe racks of servers, the round-the-clock electricity for power
and cooling, the IT experts for managing the infrastructure. It adds up fast.

Most cloud computing services are provided self service and on demand, so even vast amounts
of computing resources can be provisioned in minutes, typically with just a few mouse clicks,
giving businesses a lot of flexibility and taking the pressure off capacity planning.

The benefits of cloud computing services include the ability to scale elastically. In cloud speak,
that means delivering the right amount of IT resourcesfor example, more or less computing
power, storage, bandwidthright when its needed and from the right geographic location.

On-site datacenters typically require a lot of racking and stackinghardware set up, software
patching and other time-consuming IT management chores. Cloud computing removes the need
for many of these tasks, so IT teams can spend time on achieving more important business goals.

The biggest cloud computing services run on a worldwide network of secure datacenters, which
are regularly upgraded to the latest generation of fast and efficient computing hardware. This
offers several benefits over a single corporate datacenter, including reduced network latency for
applications and greater economies of scale.

Cloud computing makes data backup, disaster recovery and business continuity easier and less
expensive, because data can be mirrored at multiple redundant sites on the cloud providers
network.

Cloud computing services all work a little differently, depending on the provider. But many
provide a friendly, browser-based dashboard that makes it easier for IT professionals and
developers to order resources and manage their accounts. Some cloud computing services are
also designed to work with REST APIs and a command-line interface (CLI), giving developers
multiple options.
SOURCE CODE

#include <String.h>

int IRsense = 2;

int Relay1 = 4;
int Relay2 = 5;
int Relay3 = 6;
int Relay4 = 7;

unsigned int attendance;


//Rx1 Tx1 - Connections to GSM Modem
//Rx2 - Input from RFID Reader

int count = 0, cvalidate = 0;


char RFIDinput[12];
boolean flag, check = 0;
boolean Matthew=0,Ganesh=0,Irfan=0,Kapil=0;

char RFID_Tag1[] = "10004B6A9FAE"; //Matthew


char RFID_Tag2[] = "10004B854698"; //Ganesh
char RFID_Tag3[] = "10004B8ED306"; //Irfan
char RFID_Tag4[] = "10004BA4EA15"; //Kapil

void setup()
{
Serial.begin(9600);
Serial.println("Initializing Attendance Monitoring System...");

Serial1.begin(9600); //GSM modem


Serial2.begin(9600); //RFID reader
pinMode(IRsense, INPUT);

pinMode(Relay1, OUTPUT);
pinMode(Relay2, OUTPUT);
pinMode(Relay3, OUTPUT);
pinMode(Relay4, OUTPUT);

digitalWrite(Relay1, LOW);
digitalWrite(Relay2, LOW);
digitalWrite(Relay3, LOW);
digitalWrite(Relay4, LOW);

}
void loop()
{

if(Serial2.available()) //RFID processing begins


{
count = 0;
while(Serial2.available() && count < 12)
{
RFIDinput[count] = Serial2.read();
count++;
delay(5);
}
//Serial.print(RFIDinput);

count = 0;
while(count<12)
{
if(RFIDinput[count]== RFID_Tag1[count])
{
Matthew = 1;
}
else
{
Matthew = 0;
break;
}
count++;
}

int senseValue1 = digitalRead(IRsense);


if((Matthew == 1) && (senseValue1==0))
{
Serial.println("Matthew Present");
digitalWrite(Relay1, HIGH);

//------------------------------------------------------
count = 0;
while(count<12)
{
if(RFIDinput[count]== RFID_Tag2[count])
{
Ganesh = 1;
}
else
{
Ganesh = 0;
break;
}
count++;
}

int senseValue2 = digitalRead(IRsense);


if((Ganesh == 1) && (senseValue2==0))
{
Serial.println("Ganesh Present");
digitalWrite(Relay2, HIGH);

//------------------------------------------------------
count = 0;
while(count<12)
{
if(RFIDinput[count]== RFID_Tag3[count])
{
Irfan = 1;
}
else
{
Irfan = 0;
break;
}
count++;
}

int senseValue3 = digitalRead(IRsense);


if((Irfan == 1) && (senseValue3==0))
{
Serial.println("Irfan Present");
digitalWrite(Relay3, HIGH);

//------------------------------------------------------
count = 0;
while(count<12)
{
if(RFIDinput[count]== RFID_Tag4[count])
{
Kapil = 1;
}
else
{
Kapil = 0;
break;
}
count++;
}

int senseValue4 = digitalRead(IRsense);


if((Kapil == 1) && (senseValue4==0))
{
Serial.println("Kapil Present");
digitalWrite(Relay4, HIGH);

}
//delay(200);
// Send2Cloud();

// if (Serial1.available())
// Serial.write(Serial1.read());

}// RFID ends

delay(200);
Send2Cloud();

if (Serial1.available())
Serial.write(Serial1.read());

void Send2Cloud()
{
Serial1.println("AT");
delay(1000);

Serial1.println("AT+CPIN?");
delay(1000);

Serial1.println("AT+CREG?");
delay(1000);

Serial1.println("AT+CGATT?");
delay(1000);

Serial1.println("AT+CIPSHUT");
delay(1000);

Serial1.println("AT+CIPSTATUS");
delay(2000);

Serial1.println("AT+CIPMUX=0");
delay(2000);

ShowSerialData();

Serial1.println("AT+CSTT=\"airtelgprs.com\"");
delay(1000);

ShowSerialData();

Serial1.println("AT+CIICR");
delay(3000);

ShowSerialData();

Serial1.println("AT+CIFSR");
delay(2000);

ShowSerialData();

Serial1.println("AT+CIPSPRT=0");
delay(3000);

ShowSerialData();

Serial1.println("AT+CIPSTART=\"TCP\",\"api.thingspeak.com\",\"80\"");
delay(6000);

ShowSerialData();

Serial1.println("AT+CIPSEND");
delay(4000);
ShowSerialData();

String str="GET https://api.thingspeak.com/update?


api_key=W1BJCOB8F7ZKG1UF&field1="+String(Matthew)+String("&field2=")
+String(Ganesh)+String("&field3=")+String(Irfan)+String("&field4=")+String(Kapil);
delay(4000);
ShowSerialData();

Serial1.println((char)26);
delay(5000);
Serial1.println();
ShowSerialData();

Serial1.println("AT+CIPSHUT");
delay(100);
ShowSerialData();
}

void ShowSerialData()
{
while(Serial1.available()!=0)
Serial.write(Serial1.read());
}

CONCLUSION
With the knowledge of new techniques in Electronics & Computer science we are able to make
our life more comfortable. One such application of electronics is used in Android based Door
Lock Security System The approach we followed and which is explained in this project report is
novel and has achieved the target of Android based Door Lock Security System satisfying user
needs and requirements.

The development of this project has shown how much hard work goes into the creation of a
system. Android based Door Lock Security System was a project based on microcontroller,
due to which hardware requirement is reduced. Embarking of this project has helped us in
developing a team spirit, patience and time management necessary for today's technical
professionals.
Hence we can conclude that the required goals and objectives of our project have been achieved.
This project has built in us confidence that any problem can be solved with sheer determination,
hard work and optimism. We feel that our product serves something good to this world and we
like to present it before this prosperous world. By doing this project, we were better able to
understand the various facets of doing an embedded system project which is emerging as one of
the most 'in demand' technologies right now.

References:
[1] Brown, Eric (13 September 2016). "Who Needs the Internet of Things?". Linux.com.
Retrieved 23 October 2016.

[2] "Internet of Things: Science Fiction or Business Fact?". Harvard Business Review. November
2014. Retrieved 23 October 2016.

[3] Vermesan, Ovidiu; Friess, Peter (2013). Internet of Things: Converging Technologies for
Smart Environments and Integrated Ecosystems. Aalborg, Denmark: River Publishers.

S-ar putea să vă placă și