Sunteți pe pagina 1din 79

Template 1

SMART CLASSROOM AUTOMATION SYSTEM


USING ARDUINO AND IOT
A Project Report submitted in partial fulfillment of the requirements
for the award of the degree of
Bachelor of Engineering
In
Specialization
Submitted by
Shubham Kulsange (48) Akshay Bhoyar (23)
Stuti Patil (17) Shyamli Kamane (16)
Swati Gajbe (18)

Under the Guidance of


Assistant Prof. Pranay Ambade

Department of Electrical Engineering

J D College of Engineering and Management, Nagpur-441501


Affiliated to Rashtrasant Tukadoji Maharaj Nagpur University, Nagpur.
Year 2019-2020
Template 2

SMART CLASSROOM AUTOMATION SYSTEM


USING ARDUINO AND IOT

A Project Report submitted in partial fulfillment of the requirements for the award
of the degree of
Bachelor of Engineering In
Specialization

Submitted by
Shubham Kulsange (48)
Akshay Bhoyar (23)
Stuti Patil (17)
Shyamli Kamane (16)
Swati Gajbe (18)

Under the Guidance of


Assistant Prof. Pranay Ambade

Department of Electrical Engineering

J D College of Engineering and Management, Nagpur-441501


Affiliated to Rashtrasant Tukadoji Maharaj Nagpur University, Nagpur.
Year 2019-2020
Template 3

DECLARATION

We hereby declare that the work presented in this project report entitled, “SMART
CLASSROOM AUTOMATION SYSTEM USING ARDUINO AND IOT” in the
subject Department of Electrical in the faculty of Science and Technology is the original
contribution carried out by us under the guidance of Prof. Pranay Ambade, Department of
Electrical Engineering, J D College of Engineering and Management, Nagpur. This work
has not been submitted to any other University or Institution for the award of any degree
course.

Place:
Date:
Shubham Kulsange (48)
Akshay Bhoyar (23)
Stuti Patil (17)
Shyamli Kamane (16)
Swati Gajbe (18)
Template 4

CERTIFICATE

This is to certify that the project report entitled, “SMART CLASSROOM


AUTOMATION SYSTEM USING ARDUINO AND IOT“ in the subject
Department of Electrical Engineering in the faculty of Science and Technology
submitted by Shubham Kulsange (48), Akshay Bhoyar (23), Stuti Patil (17), Shyamli
Kamane8(16), Swati Gajbe (18) to Rashtrasant Tukadoji Maharaj Nagpur
University, Nagpur for the award of the degree of Bachelor of Engineering is a
bonafide record of work carried out by them under my supervision. The contents of
this Project Report, in full or in parts, have not been submitted or published to any
other Institute or University for the award of any degree.

Prof. Pranay Ambade


Department Electrical
Engineering

Forwarded to:

Dr. S.R Vaishnav


Head of the Department
Department of Electrical Engineering

Dr. Subhash R Choudhar


Principal
Template 5

CERTIFICATE OF APPROVAL

This is to certify that the Project Report “SMART CLASSROOM AUTOMATION


SYSTEM USING ARDUINO AND IOT“ is approved work done by Shubham
Kulsange (48), Akshay Bhoyar (23), Stuti Patil (17), Shyamli Kamane8(16), Swati
Gajbe (18) in partial fulfillment of the requirements for the award of the degree of
Bachelor of Engineering in Electrical Engineering at J D College of Engineering &
Management, Nagpur affiliated to Rashtrasant Tukadoji Maharaj Nagpur University,
Nagpur during the academic year 2019 -2020.

Prof. Pranay Ambade Dr. S.R Vaishnav


Guide Head of the Department

Project Examination held on

Internal Examiner/ Guide External Examiner


Template 6

INDEX

Title Page No.


Acknowledgement i
List of Figures ii
List of Tables iii
Abstract iv

CONTENTS AT GLANCE

Title Page No.


Chapter 1 INTRODUCTION
1.1 Brief Outline of Project 1
1.2 Overview of Project Report 2
Chapter 2 LITERATURE SURVEY
2.1 Literature Review 5
2.2 Problem Statement 10
2.3 Objective 11

Chapter 3 RESEARCH METHODOLOGY


Research Methodology 12

Chapter 4 EXPERIMENTATION
4.1] Hardware
4.1.1] NodeMCU 14
4.1.2] EM18 Reader Module 15
4.1.3] RFID Tag 17
4.1.4] Arduino Nano 21
4.1.5] LCD 16*2 22
4.1.6] IR 24
4.1.7] DHT11 27
4.1.8] Relay 29
4.1.9] I2C LCD MODULE 31
4.1.10] Servo Motor 32

4.2] SOFTWARE

4.2.1] Arduino Ide 35


4.3.1] Design of RFID Based Attendance System 36
4.3.2] Design of Class Room Automation System 36
4.3.3] Implementation of RFID Based Attendance System 37
4.3.4] Implementation of Class Room Automation System 37
4.4.1] Code for Automation 40
4.4.2] Code for Attendance 44

Chapter 5 Result and Discussion


5.1] Result 50
5.2] Discussion 51

Chapter 6 Summary Conclusion and Future Scope


6.1) Summary 53
6.2) Conclusion 53
6.3) Scope for future work 53

REFERENCES 54

ANNEXURES

Paper published

Copy Right Certificate

NPTEL Elite Certificate

Plagiarism Report

Grammarly Report
Photo Gallery

Bibliography.
Template 7

ACKNOWLEDEMENT

We express our sincere gratitude, for giving us the opportunity to work on the project during our final
year of B.E.
We owe our sincerest gratitude towards Dr. S. R. Choudhari, Principal J D College of Engineering &
Management, Nagpur, for providing the platform and necessary facilities.
We also express our sincere gratitude towards Dr. S.V. Sonekar, Vice Principal and Dean Academics, J
D College of Engineering and Management, Nagpur, for continuous support and motivation.
The constant guidance and encouragement received from Dr S.R. Vaishnav, Head, Department of
Electrical Engineering J D College of Engineering & Management, Nagpur, has been of great help in
carrying out the project work and is acknowledged with reverential thanks.
We would like to thank Prof.Akshay Kakde, Project Coordinator, J D College of Engineering &
Management, and Nagpur for providing proper guidelines and continuous efforts taken towards the
completion of project.
We would like to express a deep sense of gratitude and thanks profusely to our Guide Assistant
Prof.Pranay Ambade, Department of Electrical Engineering, J D College of Engineering &
Management, Nagpur. Without his/her wise counsel and able guidance, it would have been impossible to
complete the project in this manner.
We would like to thank the members of the Departmental Research Committee for their valuable
suggestions and healthy criticism during our presentation of the work. We express gratitude to other
faculty members Electrical Engineering Department, J D College of Engineering & Management,
Nagpur, for their intellectual support throughout the course of this work.

Name of the students

Shubham Kulsange (48)


Akshay Bhoyar (23)
Stuti Patil (17)
Shyamli Kamane (16)
Swati Gajbe (18)

i
Template 8

LIST OF FIGURES

Figure Title Page No.


No.
4.1.1.1 ESP8266 NodeMCU 14
4.1.1.2 Pin of ESP8266 NodeMCU 15
4.1.2 EM 18 RFID Reader Module 16
4.1.3.1 RFID Tag 17
4.1.3.2 Working of RFID Tag and RFID Reader 19
4.1.4 Arduino Nano 21
4.1.5 16*2 LCD Pin Out Diagram 22
4.1.6.1 IR Sensor Module 24
4.1.6.2 Brief IR Sensor Module 26
4.1.7 DHT11 (Temperature and Humidity Sensor) 27
4.1.8.1 Relay Module 29
4.1.8.2 Pin Configuration of Relay Module 30
4.1.9 I2C lcd Module 31
4.1.10 Servo Motor 32
4.2.1 Arduino IDE Window 35
4.3.1 Block Diagram of RFID Based Attendance System 35
4.3.2 Block diagram of Class Room Automation System 36
4.3.3 Circuit diagram of Class Room Attendance System 37
4.3.4 Circuit diagram of Class Room Automation System 38
5.1 Implementation of Attendance System 49
5.2 Implementation of Class Room Automation 50

ii
Template 9

LIST OF TABLES

Table No. Title Page No.


4.1.5 Pin Description of 16*2 LCD 23
4.1.6 Pin Description of IR Sensor 25
4.1.7 Specification of DHT11 28
4.1.8 Configuration of Relay Pin 30
4.1.9 Specification of I2C 16*2 Serial LCD Module 32
4.1.10 Wire Configuration of servo motor 33

iii
4
Template 11

ABSTRACT

Modern day class rooms are equipped with electronic devices that have supporting software to
improve and facilitate teaching methods. However, it is often seen that significant class time is
wasted on taking attendance, or the class may face interruption due to late entries of students and
disturbances such as the manual control of fan and light. Therefore, to overcome those problems a
feasible system is created in this thesis project that will have no physical intervention from
teachers, students or floor attendance. Thus, the system will facilitate the smooth running of the
scheduled classes at our class room, and minimize time loss.
In this project we are building a prototype of smart classroom in which an application
would be pivotal for carrying out various operations in classroom. This thesis instantly infers the
power consumption in the class rooms. The knowledge about the power wastage is used to
suggest the smart class room in which the operation of the electrical and electronic devices is
automated. In our method we first estimated what are all the devices a classroom consist (i.e.)
fan, light. Some existing method had already control this kind of devices using infrared remotes.
Hence by replacing the infrared remote with wireless sensor effective automation can be achieved
in the class room. The smart classroom system controls automatic ON/OFF of fan and light
system based on the presence and absence of the human inside the room through IR Sensor and
based on the temperatures of the room. The system is developed with the help of ARDUINO
board which can be used to control the electric fan based on the changes in temperature of its
surrounding using DHT11 Sensor. With the help of one sensor connected outside the door which
is basically open and close the door when someone goes to enter in the class room.
RFID card is used for attendance purpose, which is connected to the NodeMCU board.
When student punch the RFID card through the RFID reader module NodeMCU board sends the
data to the internet in the goggle firebase and with the help of webpage , teachers can easily get
the date wise analysis of the particular student.

Keywords: ArduinoUno, IR sensors, NodeMCU Board, Relay, RFID, DC fan, DC lights.

iv
CHAPTER 1

INTRODUCTION

1.1 Brief Outline of Project


The proposed system is a union of hardware components like relay modules, voltage
supplies NODEMCU and softer components like web applications. Both are equally
important and don’t any importance in the system without each other’s existence. The
system is divided into 2 parts for better understanding. A - The electrical equipments
automation. B - Attendance automation part.
A] The electrical equipments automation, the initial phase of this will consist of a IR
Sensors that takes care of the end user. In the proposed project there are three IR sensors
are used for controlling Lights Fans and door of the class room. Lights and fans
automation is explained in this part and figure 1.1 explains the detailed architecture of the
proposed system. In this module, when someone is present below the IR sensor then
corresponding light and fan ON/OFF. This task will be performed by Arduino Nano Uno
kit.
B] Attendance automation part – In this module the student attendance is automated with
the help of Radio Frequency Identification (RFID) Technology. Each student will be
provided with a RFID card for identification purpose. and the uniqueness of this system
is that student’s, thus making it compulsory for student to bring his RFID card. A RFID
card has its internal storage which holds a unique identification number. These cards can
be programmable or comes with a predefined identifier. This RFID card/tag is a passive
tag which will be activated when in contact with a RFID receiver. The card contains at
least two components: an integrated circuit for storing the unique identification number
and modulating and demodulating radio frequency (RF) signals; an Antenna for signal
sending and receiving purpose. The RFID readers are fixed and they create an
interrogation zone. It reads the RFID cards/tags when they go in or out of the
interrogation zone. The reader gets a unique identification number from RFID card. RFID
receiver is connected with a NodeMCU ESP8266 module. The NodeMCU is an IoT
platform. The unique identification number read by reader is collected by the

1
microcontroller kit and it will be sent on a static web page then it will be compared in the
SQLite database of dedicated web application for this system. If the unique identification
number is matched with any record in database the associated record of student will be
retrieved from database and the information will be stored in another database and that
student’s attendance will be marked and will be notified to the teacher via the web
application. In case of attempt to mark intentional fake attendance if any student marks
attendance of other students, the system also stores total count of number of students who
marked their attendance then the teacher can cross verify headcount of students by
entering value in application and can have detailed information of present students and
students who are absent but still having their attendance marked.

1.2 Overview of Project Report


It is expected that by 2020 there will be 50 million things that will be connected to
the internet which was only about 15 million in 2010. In the internet of things home
automation contributes to around 27 % roughly. Revenue in the home automation sector
amounts to US $ 3759 m in 2016. In spring 2015 control Networks surveyed 1,600
consumers for smart home report. The report suggests that in just 12 months there was
seen a rise in the level of excitement about smart home with millennials (79%) and
parents (76%) leading the pack and 50%of the overall population excited about the
technology. Apart from this the intent to purchase smart home technology is quickly
following suit with 50 % of people saying they plan to buy at least one smart home
product in the next year. In this system we will be focusing on classroom automation. It is
observed in colleges that are taking the attendance and keeping a track record of the
attendance is a major issue. We still follow the traditional method of a pen and paper
attendance and even if there is some automation there needs to be more than one add on
modules that make the system working. Companies and corporate offices follow the card
swipe methods which is very useful to some extent. But when it comes to classroom
attendance the things have still not changed. In today’s time there are applications
available that operate things with the help of RFID's. This system is also expected to
solve the problem of incorrect attendance marked in the class intentionally or
unintentionally. This system will generate accurate count for each person with a tag

2
through an algorithm without any biases. This said system model is proposed for the
basic automations for a classroom that need to be automated. This system is also
expected to help automate classroom electronics such as tube light, fan etc. If changes
incorporated further this can also help in contributing to the institute automation and
make the entire information of the place available in a single web application with the
help of RFID tracking. This will also help in having a good automation impact in the near
future for city and home automations. This will also add as an initiative to digitalize the
world and make a smarter move towards the evolution of Internet of Things.

Considering the estimation of the possible device in the class room, three modules
were planned to be executed (1) RFID attendance, (2) light and fan control (3)
temperature sensing. Thus in case of light and fan control, occupancy sensor is used to
estimate the people present and with that, only the required devices are made ON & OFF
automatically. Counting to 315 million students, India has the most number of students in
the world. This counts that there is a strong need for the automation when it comes to
mark the attendance of these students. 69.133 % of the total youth are found college
going or taking some kind of education. The traditional system which is being followed
since ages is the pen and paper method. Later we observe a time wherein to avoid the
intentional fake attendance given by the student’s adoption of biometric system was
observed. Colleges have started to turn down to this in order to say goodbye to intentional
proxy attendances, apart from this when it comes down classroom automation we also
need to consider the electric equipments and their functioning. We have a strong need of
a system where it can mark attendance along with a regular thing (say ID card). Hence
these systems will be not only help in attendance but also make things like ID cards
compulsory for college premises. A classroom mostly consist of a fan and a tube light at
least. Many a times it is observed that it’s the human nature and we tend to forget to
switch off the lights when we leave the house. This leads to more of energy consumption
and wastage of energy. The same scenario can also happen with the classroom. Hence it
is considered as one of the most important issue that needs to be addressed. The same
system is not only dedicated to solve the problems of class room but the same can also be
used in home automation application. The said system can be used to keep a track on the

3
devices that are on in the classroom when we are not present. This will lead to
automation plus the energy consumption factor that will save energy. The system will
operate with the help of a relay module. The relay controls the circuit functions and acts
as an interface between input and output circuits. The system will also require a
communication network channel that helps to transmit messages between the application
at the user end and the hardware at the system end.

4
CHAPTER 2

LITERATURE SURVEY

5.1 Literature Survey


As we know that before starting to make some system we have to think
about or search about the previously made system in order to make better than that
previously made system or to overcome some drawbacks of that system. Hence Literature
survey is one of the important part of making project. There are lots of similar projects or
system are already made in market, so by searching these projects and take some new
ideas, literature survey plays important role.
As engineers plays important role in changing the face of society, by implementing
new technologies. So as we are engineers hence we search what is the exactly need of
society for making human beings life easy and comfortable. As today is era of
technology, day by day some inventions are happen so impact of this invention surely on
human beings. One of the famous and useful inventions is class room automation.
Hence there is lots of things which make automation system useful in the society in
the era of technology. So we think to make advance system so that it helps to society to
make some good changes.
As there are lots of automation system made previously but depends on different
technology. We search that system and technology, study that, observe some drawback
from them also we find some good things from it and trying to implement in our project
and make some impactful system which is really essential for the society.
Following are some Class room and Home automation systems……

1) Vinayak T. Shelar, Mahadev S. Patil “Implementation of automated smart


classroom using sensors” International Journal Of Intellectual Advancements and
Research in Engineering Computation, Volume 6pp. 468-478, June 2015.
This paper instantly infers the power consumption in the class rooms. The
knowledge about the power wastage is used to suggest the smart class room in which the
operation of the electrical and electronic devices is automated. In our method we first
estimated what are all the devices a classroom consist (i.e.) fan, light, projector. Some

5
existing method had already control this kind of devices using infrared remotes. Though
the infrared remotes are used, power wastage due to human negligence is possible. Hence
by replacing the infrared remote with wireless sensor effective automation can be
achieved in the class room. The smart classroom system controls automatic ON/OFF of
fan and light system based on the presence and absence of the human inside the room and
based on the temperatures of the room. The system is developed with the help of
ARDUINO NANO board which can be used to control the speed of an electric fan based
on the changes in temperature of its surrounding using Thermistor.

2) Mrs. Tanuja Sali, Shelar, Mr. Chetan Pardeshi,. Mr. Vikas Malshette,
“Classroom Automation System” International Journal of Innovations in Engineering
and Technology (IJIET), Volume, Mar 2014.
The application of Internet of Things in the modern world is the center of interest
of many researchers and standardization bodies since several years. Internet of things
mainly consists of two parts automations and analysis. Automation is an important topic
which is more and more covered by various actors in the intelligent transportation
systems, home automations field via many proposed solutions. Thus, in order to achieve
the dream of automation, a special attention has given to the treatment of home
automations and home management problem; especially when it comes to operating
things with the help of mobile applications. In this context systems based on wireless
operational technologies, are proposed to address this situation. Therefore, with
increasingly high-speed networks, it is increasingly important to have mechanisms that
keep throughput high. Our systems will certainly contribute to the concept of home
automation and classroom automation is some way. The paper will present the complete
adaptation of the new methodologies of the intelligent classroom automation systems. We
will also present a schema of the proposed model.

3) Md. Nahal Islam “Intelligent Classroom Management System” A Thesis submitted


to the Dept. of Electrical & Electronic Engineering, BRAC University in partial
fulfillment of the requirements for the Bachelor of Science degree in Electrical &

6
Electronic Engineering, December 2013.
Modern day class rooms are equipped with electronic devices that have supporting
software to improve and facilitate teaching methods. However, it is often seen that
significant class time is wasted on taking attendance, or the class may face interruption
due to late entries of students and disturbances such as the manual control of fan and
light. Therefore, to overcome those problems a feasible system is created in this thesis
project that will have no physical intervention from teachers, students or floor attendance.
Thus, the system will facilitate the smooth running of the scheduled classes at our
university, and minimize time loss.

4) Shashank Jaiswal, Akash Parmar, Harshit Singh “ SMART CLASSROOM


AUTOMATION” Project report submitted of the requirement for the degree of
Bachelor of Technology, March-2018.
Smart classroom is the representative of the modern teaching. With the advent of
modern technology it becomes easier for the students as well as teachers to perform their
task more efficiently. With the aid of modern technology it has become easier for the
students and teachers across the world to get a good grasp of the theoretical as well as
practical knowledge.
Through technology it has become easier to visualize anything in 3D and therefore the
technology helps us to be conversant of the nuances of any concept.
The smart classroom is rectification to various problems that teacher as well as student
faces inside the classroom. This projects aims to make use of the modern technology for
helping the teachers in utilizing more time for teaching and students to easily get access
to the study material. In this project we are building a prototype of smart classroom in
which an application would be pivotal for carrying out various operations in classroom.

5) Yasodharan R, Karthick S “IoT based Classroom Automation using Arduino


Nano” International Journal Of Trend in Scientific Research and Development
(IJTSRD) Engineering Computation, Volume-2, Issue_2, Jan-Feb 2018..
The Internet has become a daily necessity to utmost of the effective participants in
which we interact and communicate among ourselves by switching data and information
7
sensed about the environment and atmosphere. From this IoT they relate autonomously
to the real world events and offer us with services with or without direct human
interference. In this project we use IoT for energy efficient Environmental Conditions
recognizing and supervising in our Classroom. This gives a vast advantage on the smart
Classroom systems using Internet of Things. This project will help the teacher present in
the classroom to allow them to control the classroom using android application in the
Android Smartphone. The overall system design is ainly based on Arduino Nano Mega
2560. The appliances are to be controlled by the Android Application. The android
application is developed using Blynk software or Blynk android application. We can
supervise the state of sensors connected in the Arduino Nano board and we can control
the modules by simply enabling some options in the android application in our smart
phone.

6) Yasodharan R | Bennaiah D | Harikrishnan V | Karthick S | Prince Roy “IoT based


Classroom Automation using Arduino Nano” ISSN: 2456-6470, Volume-2 | Issue-
2, February 2018, pp.306-313.
The Internet has become a daily necessity to utmost of the effective participants in
which we interact and communicate among ourselves by switching data and information
sensed about the environment and atmosphere. From this IoT they relate autonomously to
the real world events and offer us with services with or without direct human
interference. In this project we use IoT for energy efficient Environmental Conditions
recognizing and supervising in our Classroom. This gives a vast advantage on the smart
Classroom systems using Internet of Things. This project will help the teacher present in
the classroom to allow them to control the classroom using android application in the
Android smartphone. The overall system design is mainly based on Arduino Nano Mega
2560. The appliances are to be controlled by the Android Application. The android
application is developed using Blynk software or Blynk android application. We can
supervise the state of sensors connected in the Arduino Nano board and we can control
the modules by simply enabling some options in the android application in our smart
phone.

8
7) Miss. Snehal Arun Khulape, Miss. Sakshi Rajendra Malage, Miss. Manasi Sudhir
Patil, Miss. Arfa Aslam Bargir, Mr. Sagar V. Chavan “Home Automation Android
Based GSM System” International Journal of Trend in Scientific Research and
Development (ijtsrd), ISSN: 2456-6470, Volume-2 | Issue-6, October 2018, pp.774-777.
The main aim of the project is to develop a system, which uses mobile technology that
keep control of the various units of the automobiles, which executes with respect to the
signal sent by mobile. In today’s time every system is automated in order to face new
challenges. Automated system has minimized manual operation, so that the flexibility,
reliabilities are found to be highly accurate. Hence every field prefers automated control
systems. Specifically in the field of electronics automated systems are proved to be best.
Probably the important factor to know about the GSM is that it is an international
standard. If you travel around the world, global system for mobile communication is only
type of cellular service available in present time. Rather than analog service global
system for mobile communication (GSM) was developed as a digital system using
TDMA technology. For using devices the unique concept has been about to implement to
operate them remotely by using global system for mobile communication , which enables
the user to remotely control ON/OFF condition of household appliances. Only a simple
SMS sending to the global system for mobile communication modem at nearer place, the
devices can be turned ON/OFF and the status of the devices can be sent to the prescribed
mobile number registered in the microcontroller. We can control the appliances using
mobile. We develop the android app on our mobile. That we can control the any
household devices..

8) Er. Bharti Sood, Er. Rahul Gupta “Smart Home Automation using Wi-Fi”
International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN:
2456-6470, Volume-3 | Issue-2, February 2019, pp.396-399.
This paper aims to design an Advanced home automation system using normal web
server and Wi-Fi technology. The devices can be switched ON/OFF and sensors can be
read using a Personal Computer (PC) through Wi-Fi. This paper helps to develop a home
automation system that gives the user complete control over all remotely controllable
aspects of his or her home. The automation system will have the ability to be controlled
9
from a central host PC, the Internet, and also remotely accessed via a Pocket PC with a
Windows Mobile based application.

9) Shelar, Mahadev S. Patil “IOT Biometric Fingerprint Attendance System using


NodeMCU” International Journal Of Intellectual Advancements and Research in
Engineering Computation, Volume 9pp, April 2015.
In this project IoT Biometric Project, we will learn how to build IoT based
Biometric Fingerprint Attendance System using NodeMCU ESP8266 12E,
0.96” OLED Display & R305 Fingerprint Sensor. The ESP8266 Wi-Fi Module will
collect the fingerprint data from the multiple users and sends it over the internet to
a website. The Enrolment of fingerprints is done on the Server using R305 or R307 or
any other compatible Fingerprint Sensor and verification is done on the client with the
transmission of fingerprint templates over the network. The website that is coded
in PHP has a database and records of attendance. By logging into the website, you can
collect all the attendance records of each user including personal details as well as
incoming & outgoing timing. The data can also be downloaded and exported to an excel
sheet.

5.2 Problem Statement


An ideal classroom is an environment in which teachers are able to focus solely
on their lectures and the students are able to concentrate on the information they are
being given. Unfortunately, this does not happen in India. During class hours, time is
usually wasted in many ways such as manually recording student’s attendance one after
another. Other disruptions also occur throughout class time such as temperature and light
variation. These problems cause affected students to wander around the class guessing for
the right switch and adjusting it to equilibrate the environment back to satisfying
conditions. This causes disturbances for both teachers and other students, and so to
eliminate these irritations an intelligent classroom system is created that allows the
classroom to become more efficient, and eliminate any human assistance.

10
5.3 Objectives
The Intelligent Classroom management system has three main objectives that will be
explained in details in the further chapters. The first objective of the system is to
automatically take attendance from students using their RFID card. Student ID cards
contains coded data, and if the data is utilized and transmitted to a computer via EM18
reader module, the attendance can be recorded with greater efficiency. The second
objective is to automatically control the fan and lights. The idea is to plant several sensors
around the classroom and give a calculated feedback to the response these sensors
receive. An example would be having temperature sensors around the class room that
would detect the temperature and respond to any change by altering the fan ON/OFF. For
light control, there will be IR sensors that would detect student’s presence and cause the
lights to turn on if students are near that area. The third objective is to be overall cost
effective. While the idea to improve classroom is the priority of this thesis work,
importance is made to ensure that this system is affordable to all those who need it. The
setup cost may initially be a bit high, but in the long run it is expected that there will be a
reduction in both electricity and paper cost.

11
CHAPTER 3

RESEARCH METHODOLOGY

The proposed SMART CLASSROOM AUTOMATION SYSTEM USING ARDUINO


NANO AND IOT is Technology used to automate the class room, which reduces the
power loss, and also we perform automatic attendance, which reduce the wastage of time
during the class hours of the school and college.
In the proposed system there are two different task are perform in the first part we
take the attendance of the students by using RFID technology which is connected to entry
door of the class room. When the student punch the RFID card through the RFID reader
module then the buzzer perform the buzz sound and led glow for the fraction of second
which means the attendance of the particular card holder is done successfully and the
name of the card holder display on the LCD also, the particular card holder data send to
the Google firebase database which is used for the analysis of the individual student
performance. Faculty can easy get the daily count of the class room in real time also it
store for the future reference which is basically used for the daily analysis. This method
replace the previously pen and paper method.
In the second part we make the class room automation which performs by the
Arduino Nano Uno controller. We someone enter in front of the class room door , then
the door of the class room automatically open and close with the help of the IR sensor.
When someone enter into the class room the second IR detect that someone is present
then it automatically ON/OFF light of class room. Also when the temperature of the class
room go above the threshold value which is previously store in the controller then the fan
turn ON/OFF according to the temperature of the class room which are connected to the
Relay board.

12
CHAPTER 4
EXPERIMENTATION

4.1] HARDWARE
4.1.1] NodeMCU
4.1.2] EM18 Reader Module
4.1.3] RFID Tag
4.1.4] Arduino Nano
4.1.5] LCD
4.1.6] IR
4.1.7] DHT11
4.1.8] Relay
4.1.9] I2C LCD MODULE
4.1.10] Servo Motor

4.2] SOFTWARE
4.2.1] Arduino Ide

13
4.1.1] NodeMCU

Figure 4.1.1.1 - ESP8266 NodeMCU

The ESP8266 is the name of a micro controller designed by Espressif Systems. The
ESP8266 itself is a self-contained WiFi networking solution offering as a bridge from
existing micro controller to WiFi and is also capable of running self-contained
applications. This module comes with a built in USB connector and a rich assortment of
pin-outs. With a micro USB cable, you can connect NodeMCU devkit to your laptop and
flash it without any trouble, just like Arduino Nano. It is also immediately breadboard
friendly.

Specification:
• Voltage: 3.3V.
• Wi-Fi Direct (P2P), soft-AP.
• Current consumption: 10uA~170mA.
• Flash memory attachable: 16MB max (512K normal).
• Integrated TCP/IP protocol stack.
• Processor: Tensilica L106 32-bit.
14
• Processor speed: 80~160MHz.
• RAM: 32K + 80K.
• GPIOs: 17 (multiplexed with other functions).
• Analog to Digital: 1 input with 1024 step resolution.
• +19.5dBm output power in 802.11b mode
• 802.11 support: b/g/n.
• Maximum concurrent TCP connections: 5.

Pin Definition:

Figure 4.1.1.2- Pin of ESP8266 NodeMCU

4.1.2] EM 18 RFID READER MODULE


This board is based on the EM-18 RFID Module. Using the board with
microcontrollers to read a card's data is very simple and requires just a serial connection.
The board has a 5V voltage regulator so it can be powered by 9~15V DC adaptor.
Module can also be powered through header wires (+5V & GND) from other interfacing
board.

15
The board has power indication LED (Labeled red in color) and to indicate the detection
of Card/Tag, it has a LED (Labeled green in color) and Buzzer. SEL selection jumper is
used to switch between two output formats:
 Serial O/P from TTL/CMOS Pin (Microcontroller Compatible) and RS232 O/P from
DB9 Female Connector. (Note:- Data is available at both TTL/CMOS and DB9
simultaneously.)
 Weigand26 O/P from ONLY DATA2 (It is DATA0 pin of EM-18) & DATA1 (It is
DATA1 pin of EM-18) Pins. (Note:- This is a different mode which uses different
protocol, so if selected data can’t be read using SERIAL Protocols, Like on UART or
HyperTerminal.)

Figure 4.1.2- EM 18 RFID Reader Module


Features

 Low-cost method for reading passive RFID transponder tags.


 9600 bps serial interface.
 125 KHz Operating Frequency.
 Reads EM4100 compatible transponders. 64bit Read Only (Manchester 64-bit,
Modulus64).
 Read Distance up to: 6~10cm for cards, and 5cm for key-tags.
 On board LED (Green) for Pass indication.
 On board Buzzer for Pass indication.
 Integrated RFID Coil Antenna.
 Serial UART out from pin headers (TTL/CMOS) and RS232 (DB9).

16
Technical Specification:

 Supply Voltage: 4.6 V to 5.4 V DC.
 Current: 65mAmp.
 Card/Tag Format: EM4001 or Compatible.
 Frequency: 125 KHz.
 Encoding: Manchester 64-bit, Modulus64.
 Operating Temp. : 0* to 85* Celsius.

4.1.3] RFID Tag

Figure 4.1.3.1:- RFID Tag

An RFID tag is comprised of a microchip containing identifying information and an


antenna that transmits this data wirelessly to a reader. At its most basic, the chip will
contain a serialized identifier, or license plate number, that uniquely identifies that item,
similar to the way many bar codes are used today. A key difference; however is that
RFID tags have a higher data capacity that their bar code counterparts. This increases the
options for the type of information that can be encoded on the tag, including the
manufacturer, batch or lot number, weight, ownership, destination. and history (such as
the temperature range to which an item has been exposed) in application needs. An RFID
17
tag can be placed on individual items, cases or pallets for identification purposes, as well
as on fixed assets such as trailers, containers, totes, etc.

Data capacity

The amount of data storage on a tag can vary, ranging from 16 bits on the low end to as
much as several thousand bits on the high end. Of course, the greater the storage capacity,
the higher the price per tag.

Frequencies
Like all wireless communications, there is variety of frequencies or spectra through
which RFID tags can communicate with readers. Again, there are trade-offs among cost,
performance and application requirements. For instance, low-frequency tags are cheaper
than ultra high-frequency (UHF) tags, use less power and are better able to penetrate non-
metallic substances. They are ideal for scanning objects with high water content, such as
fruit, at close range. UHF frequencies typically offer better rang, and can transfer data
faster. But they use more power and are less likely to pass through some materials. UFIF
tags are typically best suited for use with or near wood, paper, cardboard or clothing
products. Compared to low-frequency tags, UHF tags might be better for scanning boxes
of goods as 2they pass through a bay door at a warehouse.

RF TRANSCEIVER

The RF transceiver is the source of the RF energy used to activate and power the passive
RFID tags. The RF transceiver may be enclosed in the same cabinet as the reader or it
may be a separate piece of equipment. When provided as a separate piece of equipment,
the transceiver is commonly referred to as an RF module. The RF transceiver controls
and modulates the radio frequencies that the antenna transmits and receives. The
transceiver filters and amplifies the backscatter signal from a passive RFID tags.
Typical Applications for RFID
 Automatic Vehicle identification
 Inventory Management
18
 Work-in-Process
 Container/ Yard Management
 Document/ Jeweler tracking
 Patient Monitoring

Advantages of RFID Over Bar Coding

1. No "line of sight" requirements: Bar code reads can sometimes be limited or


problematic due to the need to have a direct "line of sight" between a scanner and a bar
code. RFID tags can he read through materials without line of sight.
2. More automated reading: RFID tags can be read automatically when a tagged product
comes past or near a reader, reducing the labor required to scan product and allowing
more proactive, real-time tracking.
3. Improved read rates: RFID tags ultimately offer the promise of higher read rates than
bar codes, especially in high-speed operations such as carton sortation.
4. Greater data capacity: RFID tags can be easily encoded with the item details such as
lot and batch, weight, etc.

Working:

Figure 4.1.3.2: Working of RFID Tag and RFID Reader

Many types of RFID exist, but at the highest level, we can divide RFID classes:
active and passive. Active tags require a power source they’re either connected to a
powered infrastructure or use energy stored in an integrated battery. In the latter case, a
19
tags lifetime is limited by the stored energy, balanced against the number-of read
operations the device must undergo. One example of an active tag is the transponder
attached to an aircraft that identifies its national origin. Another example is a LoJack
device attached to a car, which incorporates cellular technology and a GPS to locate the
car if stolen. However, batteries make the cost, size, and life-time of active tags
impractical for the retail trade. Passive RFID is of interest because the tags don't require
batteries or maintenance. The tags also have an indefinite operational life and are small
enough to fit into a practical adhesive label. A passive tag consists of three parts: an
antenna, a semiconductor chip attached to the antenna, and some form of encapsulation.
The tag reader is responsible for powering and communicating with a tag. The tag
antenna captures energy and transfers the tag's ID (the tag's chip coordinates this
process). The encapsulation maintains the tag’s integnity and protects the antenna and
chip from environmental conditions or reagents.
The encapsulation could be a small glass vial or a laminar plastic substrate with
adhesive side to enable easy attachment to goods. Two fundamentally different RFID
design approaches exist for transferring power from the reader to the tag: magnetic
induction and electromagnetic (EM) wave capture. These two designs take advantage of
the EM properties associated with an RF antenna—the near field and the far field. Both
can transfer enough power to a remote tag to sustain its operation—typically between
10W and 1mW, depending on the tag type, (For comparison, the nominal power an Intel
X Scale processor consumes is approximately 500 mw, and an Intel Pentium 4 consumes
up to 50W.) Through various modulation techniques, near-and far-fields based signals
can also transmit and receive data.

20
4.1.4] Arduino Nano

Figure 4.1.4: Arduino Nano


The Arduino Nano board is designed in such a way that it is very easy for beginners to
get started with microcontrollers. This board especially is breadboard friendly is very
easy to handle the connections. Let’s start with powering the Board.

Powering you Arduino Nano:

There are totally three ways by which you can power ano.

USB Jack: Connect the mini USB jack to a phone charger or computer through a cable
and it will draw power required for the board to function

Vin Pin: The Vin pin can be supplied with a unregulated 6-12V to power the board. The
on-board voltage regulator regulates it to +5V

+5V Pin: If you have a regulated +5V supply then you can directly provide this o the +5V
pin of the Arduino Nano.

Input/output:

There are totally 14 digital Pins and 8 Analog pins on your Nano board. The digital pins
can be used to interface sensors by using them as input pins or drive loads by using them
as output pins. A simple function like pinMode() and digitalWrite() can be used to
control their operation. The operating voltage is 0V and 5V for digital pins. The analog
21
pins can measure analog voltage from 0V to 5V using any of the 8 Analog pins using a
simple function liken analogRead()

These pins apart from serving their purpose can also be used for special purposes which
are discussed below:

Serial Pins 0 (Rx) and 1 (Tx): Rx and Tx pins are used to receive and transmit TTL serial
data. They are connected with the corresponding ATmega328P USB to TTL serial chip.

External Interrupt Pins 2 and 3: These pins can be configured to trigger an interrupt on a
low value, a rising or falling edge, or a change in value.

PWM Pins 3, 5, 6, 9 and 11: These pins provide an 8-bit PWM output by using
analogWrite() function.

SPI Pins 10 (SS), 11 (MOSI), 12 (MISO) and 13 (SCK): These pins are used for SPI
communication.

In-built LED Pin 13: This pin is connected with an built-in LED, when pin 13 is HIGH –
LED is on and when pin 13 is LOW, its off.

I2C A4 (SDA) and A5 (SCA): Used for IIC communication using Wire library.

AREF: Used to provide reference voltage for analog inputs with analogReference()
function.

Reset Pin: Making this pin LOW, resets the microcontroller.

4.1.5] LCD 16*2


We come across LCD displays everywhere around us. Computers, calculators,
television sets, mobile phones, digital watches use some kind of display to display the
time. An LCD is an electronic display module which uses liquid crystal to produce a
visible image. The 16×2 LCD display is a very basic module commonly used in DIYs
and circuits. The 16×2 translates o a display 16 characters per line in 2 such lines. In this
LCD each character is displayed in a 5×7 pixel matrix.

22
Figure 4.1.5:- 16*2 LCD Pin out Diagram

Pin Description of 16*2 LCD

Pin no Function Name

1 Ground (0V) Ground

2 Supply voltage; 5V (4.7V – 5.3V) Vcc

3 Contrast adjustment; the best way is to use variable resistor Vo / VEE


such as a potentiometer. The output of the potentiometer is
connected to this pin. Rotate the potentiometer knob forward

and backwards to adjust the LCD contrast.

4 Selects command register when low, and data register when RS (Register
high Select )

5 Low to write to the register; High to read from the register Read/write

23
6 Sends data to data pins when a high to low pulse is given; Enable
Extra voltage push is required to execute the instruction and
EN(enable) signal is used for this purpose. Usually, we make
it en=0 and when we want to execute the instruction we make
it high en=1 for some milli seconds. After this we again Make
it ground that is, en=0.

7 8-bit data pins DB0

15 Backlight VCC (5V) Led+

16 Backlight Ground (0V) Led-

Table 4.1.5:- Pin Description of 16*2 LCD

4.1.6] IR SENSOR MODULE

Figure 4.1.6.1: IR Sensor Module

24
Pin Configuration

Pin Name Description

VCC Power Supply Input

GND Power Supply Ground

OUT Activate High Output

Table 4.1.6:- Pin Description of IR Sensor

IR Sensor Module Features

 5VDC Operating voltage

 Range: Up to 20cm

 Adjustable Sensing range

 Built-in Ambient Light Sensor

 20mA supply current

 Mounting hole

Brief about IR Sensor Module

Figure 4.1.6.2: Brief IR Sensor Module

25
The IR sensor module consists mainly of the IR Transmitter and Receiver, Opamp,
Variable Resistor (Trimmer pot), output LED in brief.

IR LED Transmitter
IR LED emits light, in the range of Infrared frequency. IR light is invisible to us as
its wavelength (700nm – 1mm) is much higher than the visible light range. IR LEDs have
light emitting angle of approx. 20-60 degree and range of approx. few centimeters to
several feets, it depends upon the type of IR transmitter and the manufacturer. Some
transmitters have the range in kilometers. IR LED white or transparent in colour, so it can
give out amount of maximum light.

Photodiode Receiver
Photodiode acts as the IR receiver as its conducts when light falls on it. Photodiode
is a semiconductor which has a P-N junction, operated in Reverse Bias, means it start
conducting the current in reverse direction when Light falls on it, and the amount of
current flow is proportional to the amount of Light. This property makes it useful for IR
detection. Photodiode looks like a LED, with a black colour coating on its outer side;
Black colour absorbs the highest amount of light.

LM358 Opamp
LM358 is an Operational Amplifier (Op-Amp) is used as voltage comparator in the
IR sensor. the comparator will compare the threshold voltage set using the preset (pin2)
and the photodiode’s series resistor voltage (pin3).
Photodiode’s series resistor voltage drop > Threshold voltage = Opamp output is
High
Photodiode’s series resistor voltage drop < Threshold voltage = Opamp output is
Low
When Opamp's output is high the LED at the Opamp output terminal turns
ON (Indicating the detection of Object).
Variable Resistor

26
The variable resistor used here is a preset. It is used to calibrate the distance range
at which object should be detected.

4.1.7] DHT11 (Temperature and Humidity Sensor)

DHT11 Temperature & Humidity Sensor features a temperature & humidity sensor
Complex with a calibrated digital signal output. By using the exclusive digital-
signal-acquisition technique and temperature & humidity sensing technology, it ensures
high reliability and excellent long-term stability. This sensor includes a resistive-type
humidity measurement component and an NTC temperature measurement component,
and connects to a highperformance 8-bit microcontroller, offering excellent quality, fast
response, anti-interference ability and cost-effectiveness.

Figure 4.1.7: DHT11 (Temperature & Humidity Sensor)

Specifications:

Temperature Range 0 - 50°C / ± 2°C

Humidity Range 20 - 80% / ± 5%

27
Sampling Rate 1Hz (one reading every
second)

Body Size 15.5mm x 12mm x 5.5mm

Operating Voltage 3 - 5V

Max Current During 2.5mA


Measuring

Table 4.1.7:- Specifications of DHT11

DHT11 Specifications:

 Operating Voltage: 3.5V to 5.5V


 Operating current: 0.3mA (measuring) 60uA (standby)
 Output: Serial data
 Temperature Range: 0°C to 50°C
 Humidity Range: 20% to 90%
 Resolution: Temperature and Humidity both are 16-bit
 Accuracy: ±1°C and ±1%

Each DHT11 element is strictly calibrated in the laboratory that is extremely accurate on
Humidity calibration. The calibration coefficients are stored as programmes in the OTP
memory, which are used by the sensor’s internal signal detecting process. The single-wire
serial interface makes system integration quick and easy. Its small size, low power
consumption and up-to-20 meter signal transmission making it the best choice for various
applications, including those most demanding ones. The component is 4-pin single row
pin package. It is convenient to connect and special packages can be provided according
to users’ request.

28
4.1.8] Relay

Figure 4.1.8.1: Relay Module

The relay module is an electrically operated switch that allows you to turn on or off a
circuit using voltage and/or current much higher than a microcontroller could handle.
There is no connection between the low voltage circuit operated by the microcontroller
and the high power circuit. The relay protects each circuit from each other. The each
channel in the module has three connections named NC, COM, and NO. Depending on
the input signal trigger mode, the jumper cap can be 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 the same but at low level input. Specifications

 On-board EL817 photoelectric coupler with photoelectric isolating anti interference


ability strong.

 On-board 5V, 10A / 250VAC, 10A / 30VDC relays

 Relay long life can absorb 100000 times in a row

 Module can be directly and MCU I/O link, with the output signal indicator

 Module with diode current protection, short response time

 PCB Size: 45.8mm x 32.4mm

29
Pin Configuration

Figure 4.1.8.2:- Pin configuration of Relay Module


Configuration of Relay Pin

Pin Pin Name Description


Number

1 Coil End 1 Used to trigger(On/Off) the Relay, Normally one


end is connected to 5V and the other end to ground

2 Coil End 2 Used to trigger(On/Off) the Relay, Normally one


end is connected to 5V and the other end to ground

3 Common (COM) Common is connected to one End of the Load that is


to be controlled

4 Normally Close The other end of the load is either connected to NO


(NC) or NC. If connected to NC the load remains
connected before trigger

5 Normally Open The other end of the load is either connected to NO

30
(NO) or NC. If connected to NO the load remains
disconnected before trigger

Table 4.1.8:- Configuration of Relay Pin


Features of 5-Pin 5V Relay
 Trigger Voltage (Voltage across coil) : 5V DC
 Trigger Current (Nominal current) : 70mA
 Maximum AC load current: 10A @ 250/125V AC
 Maximum DC load current: 10A @ 30/28V DC
 Compact 5-pin configuration with plastic molding
 Operating time: 10msec Release time: 5msec
 Maximum switching: 300 operating/minute (mechanically)

4.1.9] I2C LCD MODULE

The I2C 1602 LCD module is a 2 line by 15 character display interfaced to a


daughter board. The I2C interface only requires 2 data connections, +5VDC and
GND to operate.

Fig 4.1.9:- I2C LCD MODULE

31
Specifications:

I2C Address Range 2 line by 16 character

Operating Voltage 5vdc Backlight White

Contrast Adjustable by

potentiometer on I2c module -

Size 80mm x 36mm x 20mm

Viewable area 66mm x 16mm -

Table 4.1.9:- Specification of I2C 16*2 Serial LCD Module

4.1.10] Servo Motor


It is a rotary actuator or linear actuator that provides precise control of angular motion
and position, velocity and acceleration. Servo motor controls the ON and OFF position of
the container.

Figure 4.1.10:- Servo Motor


32
Wire Configuration

Wire Wire Colour Description


Number

1 Brown Ground wire connected to the ground of


system

2 Red Powers the motor typically +5V is used

3 Orange PWM signal is given in through this wire to


drive the motor

Table 4.1.10: Wire configuration of Servo Motor

Features
 Operating Voltage is +5V typically
 Torque: 2.5kg/cm
 Operating speed is 0.1s/60°
 Gear Type: Plastic
 Rotation : 0°-180°
 Weight of motor : 9gm
 Package includes gear horns and screws

4.2.1 ARDUINO IDE


The Arduino Nano Integrated Development Environment - or Arduino Nano
Software (IDE) - contains a text editor for writing code, a message area, a text console, a
toolbar with buttons for common functions and a series of menus. It connects to the
Arduino Nano and Genuino hardware to upload programs and communicate with them.
Programs written using Arduino Nano Software (IDE) are called sketches. These
sketches are written in the text editor and are saved with the file extension .ino. The
33
editor has features for cutting/pasting and for searching/replacing text. The message area
gives feedback while saving and exporting and also displays errors. The console displays
text output by the Arduino Nano Software (IDE), including complete error messages and
other information. The bottom righthand corner of the window displays the configured
board and serial port. The toolbar buttons allow you to verify and upload programs,
create, open, and save sketches, and open. Steps to run code and examine the outputs are
as follows.
1. Verify
Checks your code -for errors compiling it.
2. Upload
Compiles your code and uploads it to the configured board.
See uploading below for details.
3. New
Creates a new sketch.
4. Open
Presents a menu of all the sketches in your sketchbook. Clicking one will open
it within the current window overwriting its content.

5. Save
Saves your sketch.
6. Serial Monitor
Opens the serial monitor.

34
Figure 4.2.1: Arduino IDE window

4.3.1) Design of RFID Based Attendance System

Figure 4.3.1: Block Diagram of RFID Based Attendance System


35
4.3.2) Design of Class Room Automation System

Figure 4.3.2: Block diagram of Class Room Automation System

In this module the student attendance is automated with the help of Radio
Frequency Identification (RFID) Technology. Each student will be provided with a RFID
card for identification purpose and the uniqueness of this system is that student’s college
identity card will be printed itself on RFID card thus making it compulsory for student to
bring his college identity card. A RFID card has its internal storage which holds a unique
identification number. These cards can be programmable or comes with a predefined
identifier. This RFID card/tag is a passive tag which will be activated when in contact
with a RFID receiver. The card contains at least two components: an integrated circuit for
storing the unique identification number and modulating and demodulating radio
frequency (RF) signals; an Antenna for signal sending and receiving purpose. The RFID
readers are fixed and they create an interrogation zone. It reads the RFID cards/tags when
they go in or out of the interrogation zone. The reader gets a unique identification number
from RFID card. RFID receiver is connected with a microcontroller Arduino Nano
NodeMCU ESP8266 module. The NodeMCU is an IoT platform. It is a firmware that
uses Lua scripting language. The unique identification number read by reader is collected

36
by the microcontroller kit and it will be sent on a static web page then it will be compared
in the SQLite database of dedicated Android application for this system. The SQLite
database is weakly typed, ACID compliant database. It does not uses client-server
architecture like most of the databases. It resides on local/client side or can be embedded
in web browsers. This also provides bindings with an android application. If the unique
identification number is matched with any record in database the associated record of
student will be retrieved from database and the information will be stored in another
database and that student’s attendance will be marked and will be notified to the teacher
via web applications. In case of attempt to mark intentional fake attendance if any student
marks attendance of other students, the system also stores total count of number of
students who marked their attendance then the teacher can cross verify headcount of
students by entering value in application and can have detailed information of present
students and students who are absent but still having their attendance marked.

4.3.3) Implementation of RFID Based Attendance System

Figure 4.3.3: Circuit diagram of Class Room Attendance System

37
4.3.4) Implementation of Class Room Automation System

Figure 4.3.4: Circuit diagram of Class Room Automation System

Smart Classroom, can be defined as the classroom equipped with the technology
to aid teaching and learning .We often see that from entering the class to leaving it much
of the time teacher is occupied in many of secondary nature jobs such as taking the
attendance which (cases where class size is more than 60) eats up much of the time and
after that adjusting the lighting of the room etc. Thus teacher is left with a portion of
allotted time which in much of the cases is not sufficed. To eliminate this conundrum
smart classroom would be the best rectification.
With the help of smart classroom it would be easier for teacher to focus on primary job
(teaching) whereas the secondary job can be done in miniscule part of allocated time.
It makes it possible to control lighting, fan as well as allows the teacher to mark
attendance through RFID based system. Even it allows the teachers to access the
attendance of the students date wise.
This is a simplest smart automation system prototype which ranges from the controlling
of electrical devices in the room to the attendance marking through RFID System.

38
4.4.1) Code for Automation
#include <Servo.h>
#include "DHT.h"
#include <LiquidCrystal.h>
#define servoPin 8
#define DHTPIN A3 // what digital pin we're connected to
#define DHTTYPE DHT11 // DHT 11
#define IR1 A0
#define IR2 A1
#define bulb1 9
#define fan1 10
#define bulb2 11
#define fan2 12
#define doorsensor A2
DHT dht(DHTPIN, DHTTYPE);
Servo S1;
//LiquidCrystal lcd(RS, EN, D4, D5, D6, D7); // LCD pin
LiquidCrystal lcd(7, 6, 5, 4, 3, 2); // arduino pin
float tempC;
int servoCureentAngle = 45;
int openAngle = 120, closeAngle = 45;
void setup() {
Serial.begin(9600); // bits/sec
pinMode(IR1, INPUT);
pinMode(IR2, INPUT);
pinMode(doorsensor, INPUT);
pinMode(bulb1, OUTPUT); pinMode(fan1, OUTPUT);
pinMode(bulb2, OUTPUT); pinMode(fan2, OUTPUT);
digitalWrite(bulb1, HIGH);
digitalWrite(bulb2, HIGH);
digitalWrite(fan1, HIGH);
39
digitalWrite(fan2, HIGH); //off
dht.begin();
lcd.begin(16, 2); //char length , lines
lcd.clear();
lcd.setCursor(0, 0); // lcs.setCursor(position , Line) (pos= 0to 15, Line 0 to 1)
lcd.print("Temp Hum ");
lcd.setCursor(0, 1);
lcd.print(" ");
delay(1000);
S1.attach(servoPin);
S1.write(closeAngle);
}

void loop() {
int h = dht.readHumidity();
// Read temperature as Celsius (the default)
int t = dht.readTemperature();
Serial.println("Temp=" + String(t) + " Hum=" + String(h));
lcd.setCursor(0, 1);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print(t);
lcd.print("^c ");
lcd.print(h);
lcd.print("% ");

if (digitalRead(IR1) == LOW)
{
Serial.println("BULB1 ON");
digitalWrite(bulb1, LOW); //ON
if (t > 27)
40
{
digitalWrite(fan1, LOW); //ON
Serial.println("FAN1 ON");
}
}
else
{
digitalWrite(bulb1, HIGH); //off
digitalWrite(fan1, HIGH);
}
if (digitalRead(IR2) == LOW)
{
Serial.println("BULB2 ON");
digitalWrite(bulb2, LOW); //ON
if (t > 27)
{
digitalWrite(fan2, LOW); //ON
Serial.println("FAN2 ON");
}
}
else
{
digitalWrite(bulb2, HIGH);
digitalWrite(fan2, HIGH);
}
if (digitalRead(doorsensor) == LOW)
{
delay(100);
if (digitalRead(doorsensor) == LOW)
{
Serial.println("OPENING DOOR");
41
ServoAngle(openAngle);
delay(5000);
Serial.println("CLOSING DOOR");
ServoAngle(closeAngle);
}
}
delay(300);
}
void ServoAngle(int angleofservo)
{
if (servoCureentAngle < angleofservo)
{
while (servoCureentAngle < angleofservo)
{
S1.write(servoCureentAngle);
servoCureentAngle = servoCureentAngle + 10;
delay(50);
}
}
else
{
while (servoCureentAngle > angleofservo)
{
S1.write(servoCureentAngle);
servoCureentAngle = servoCureentAngle - 10;
delay(50);
}
}
}

42
4.4.2) Code for Attendance
#include <ESP8266WiFi.h> //wifi header file
#include <FirebaseArduino.h>
#include <WiFiUdp.h>
#include <NTPClient.h>
#include <LiquidCrystal_I2C.h>
#define led D5
// Set these to run aaexample.
//pcollegeiot@gmail.com
//
#define FIREBASE_HOST "myclassroom-d4cf2.firebaseio.com"
#define FIREBASE_AUTH "H9ceMrsUjmHK3JvHcwYM4p3GwhbD7tWfw2NoAtln"
#define WIFI_SSID "ElectroEra"
#define WIFI_PASSWORD "mywifipassword"

int lcdColumns = 16;


int lcdRows = 2;
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows); //I2c address

String RFID1 = "5900D4C882C7",


RFID2 = "5A001DCA028F",
RFID3 = "5900D4B3FEC0",
RFID4 = "5900D4CE2566",
RFID5 = "16006686D82E";
const long utcOffsetInSeconds = 5.5 * 3600; //to conver indian time
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday",
"Thursday", "Friday", "Saturday"};
// Define NTP Client to get time
WiFiUDP ntpUDP;
NTPClient timeClient(ntpUDP);
43
void setup() {
pinMode(led,OUTPUT);
Serial.begin(9600);
lcd.init();
// turn on LCD backlight
delay(100);
lcd.backlight();
lcd.setCursor(0,0);
connectNet();
Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);
timeClient.begin();
timeClient.setTimeOffset(5.5 * 3600);
}

int n = 0;
int light = 10;
String formattedDate;
String dayStamp;
String OlddayStamp = "";
String timeStamp;
int rollno = 50;
void loop() {

digitalWrite(led,LOW);

while(true)
{
rollno=getid();
if(rollno!=0)
break;
44
else
{
lcd.setCursor(0,1);
lcd.print("INVALID CARD ");
delay(5000);
lcd.setCursor(0,1);
lcd.print(" ");
}
}

timeClient.update();
formattedDate = timeClient.getFormattedDate();
Serial.println(formattedDate);

int splitT = formattedDate.indexOf("T");


dayStamp = formattedDate.substring(0, splitT);
Serial.print("DATE: ");
Serial.println(dayStamp);
// Extract time
timeStamp = formattedDate.substring(splitT + 1, formattedDate.length() - 1);
Serial.print("HOUR: ");
Serial.println(timeStamp);

if (OlddayStamp != dayStamp)
{
OlddayStamp = dayStamp;
Firebase.setString(dayStamp, dayStamp); //Firebase.setString(dayStamp);
if (Firebase.failed()) {
Serial.print("New Date Creation Fails");
lcd.setCursor(0,1);
lcd.print("Not uploaded# ");
45
}
else
{
Serial.println("New db created with date" + dayStamp);

}
delay(1000);
}
//Firebase.setString(Path,"sarang shastrakar,123");
Firebase.pushInt(dayStamp, rollno);
if (Firebase.failed()) {
Serial.print("Roll number logging fails");
Serial.println(Firebase.error());
delay(1000);
lcd.setCursor(0,1);
lcd.print("Not uploaded# ");
//return;
}
else
{
Serial.println("ROll No. " + String(rollno)+" Updated");
lcd.setCursor(14,1);
lcd.print("OK");
delay(3000);
}

//delay(3000);
}
int getid()
{
int rNo=0;
46
//lcd.clear();
Serial.println("Puch ID Card");
lcd.clear();
//lcd.setCursor(0,0);
lcd.print(" Puch ID Card ");
String ID="";
for(int i=0;i<12;i++)
{
while(!Serial.available());
char ch=Serial.read();
ID+=ch;
Serial.print(ch);
//delay(1);
}
digitalWrite(led,LOW);
if(ID.compareTo(RFID1)==0)
rNo=50;
else if(ID.compareTo(RFID2)==0)
rNo=51;
else if(ID.compareTo(RFID3)==0)
rNo=52;
else if(ID.compareTo(RFID4)==0)
rNo=53;
else if(ID.compareTo(RFID5)==0)
rNo=54;
else
rNo=0;
Serial.println("Attendance : "+String(rNo));
lcd.setCursor(0,1);
lcd.print("Roll No : "+String(rNo));

47
return rNo;

}
void connectNet()
{
if ((WiFi.status() != WL_CONNECTED))
{
Serial.println("ERROR - NO INTERNET");
Serial.print("Connecting to ");
lcd.clear();
lcd.print("Connecting NET ");
Serial.println(WIFI_SSID);
WiFi.begin(WIFI_SSID, WIFI_PASSWORD); // network connection
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(".");
}
lcd.setCursor(0, 1); // pos,line
lcd.print("Connected");
Serial.println();
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
delay(3000);
}
}

48
CHAPET 5
RESULT AND DISCUSSION

5.1 Result

Figure 5.1: Implementation of Attendance System

In the above fig Automatic Attendance system using RFID system is shown which
consist of NodeMCU board through which I2C LCD is connected which always show an
information message for punching the RFID Card as soon as the student punch the card
the valid card holder name display on the LCD screen also the attendance of the
particular card holder login on the webpage. As the card is not register in the database
then LCD shown the invalid card in the LCD Screen.

49
Figure 5.2: Implementation of Class Room Automation
In the above fig show the Implementation of Class Room Automation which
consist of Arduino Nano as a motherboard through which all the peripherals devices (IR
Sensors, Relay, Fans, Lights, Servo Motor) are connected for making class room
automation. In the first part when someone come in front of entry door IR detect the
motion then it sends the signal to the controller according to the predefined instruction in
the controller , controller open the door with the help of servo motor for curtain amount
of time after some time it automatically close the door.
In the second part when no one is present in the class all light and fan are in the
off position. When someone enter in the class IR detect the motion and turn on the light
of class also if the temperature of the class is going above the threshold value then
controller automatically turn on/off according to the temperature of the class. All this
process is control by the controller. The implemented proposed project is shown in the
above fig.

50
5.2 Discussion

This presents a model that has been proposed to meet the basic needs of
classroom automation. An important advantage of this system is that it gives the system
as a complete prototype to develop more such cost efficient systems that can be used in
classrooms and college automation. A study of the system shall be conducted in order to
verify the expected results in the classroom automation system as proposed.

51
CHAPET 6
SUMMARY AND CONCLUSION
6.1) Summary
This presents a model that has been proposed to meet the basic needs of classroom
automation. An important advantage of this system is that it gives the system as a
complete prototype to develop more such cost efficient systems that can be used in
classrooms and college automation. A study of the system shall be conducted in order to
verify the expected results in the classroom automation system as proposed. In addition to
this the future work can be focused on developing applications that can help in
automating an entire department or a college.

6.2) Conclusion
In this project, we instantly infer the power wastage in the class rooms. The
knowledge derived from our estimation can enable many variable applications for social
good such as effective utilization of the available power and we consider our project as a
contribution for developing smart city. Thus we address the problem by establishing a
smart class room. By observing the above details, we conclude that these techniques can
also be implemented at collage level, Institute level. Which we will go to design a new
project that is “SMART CLASSROOM AUTOMATION USING ARDUINO NANO
AND IOT”.

6.3) Scope for Future Work


Future work should be along the lines of considering the validation of the
attendance also by including an image detection technique which will further more
authenticate the person. The same model also can be helped in making a home
automation system which will be cost efficient. Different technological advances can help
in making the system more reliable.

52
REFERENCES

1] “Vicent Ricquebourg, David Menga, David Durand, Bruno Marhic, Laurent


Delahoche, Christophe Loge”- The Smart Home Concept: our immediate future,
http://protege.stanford.edu/ .

2] “Anne-mie A G.Sponselee,Ben A.M.Schoutten and Don


G.Bouwhuis,Member,ISG”,January 2008 “Effective Use of Smart Home Technology
to Increase Well-Being”.

3] “Smart Campus: Smart campus- BuildingUser learning interaction for Energy


Efficiency”.

4] “Toril Laberg, Haakon Aspelund and Hilde Thygesen”, ISBN-82 8081-057-9,


“Smart Home Technology-Planning and management in municipal services”.

5] Coutaz J., Crowley J., Dobson S., Garlan D. - « Context is key » -Commun. ACM,
Vol. 48, No. 3. (March 2005).

6] Dermosoniadis V., Philippopoulos P., Georgopoulos C. - « Smart Homes: a user


perspective » - 19th International Symposium on Human Factors in
Telecommunication, Berlin, 2003.

7] “Dr.Teseer A.Rangrez”, “A Day in the life of a Smart Building”, Tamdeed projects.

8] Hall R.S., Cervantes H. –« An OSGi Implementation and Experience Report » -


Proceedings of the IEEE Consumer Communications and Networking Conference,
January 2004.

53
9] 9. Rey G., Coutaz J.- « Le Contexteur : Capture et distribution Dynamique
d'Informations Contextuelles » - Ubimob04 - Grenoble - France, ACM Publication,
2004. X10 standard », http://www.x10.com

10] Konnex Association », http://www.konnex.org 11. « Bacnet - a data communication


protocol for building automation and control networks », American Society of
Heating, Refrigerating and Air-Conditioning Engineers (ASHRAE)
http://www.bacnet.org .

11] Lonworks technology and lontalk protocol », Echelon Corporation,


http://www.echelon.com

12] Lee K.– « IEEE 1451: A Standard in Support of Smart Transducer Networking » -
IEEEInstrumentation and Measurement Technology conference Baltimore, MD USA,
May 1-4, 2000.

13] Launay P.- « Déploiement d'un bus à messages sur un réseau à grande échelle » -
Master thesis , Grenoble- France , 2000 June.

14] Yang H., Jansen E., Helal S., Mann W.- « An IDE for Programmable Pervasive
Spaces Based on a ContextDriven Programm » - PerCom, Italy, March 2006.

15] Wang X.H., Gu T., Zhang D.Q., Pung H.K. – « Ontology Based Context Modeling
and Reasoning using OWL ». Workshop on CoMoRea 2004, Orlando, Florida USA,
March 2004.

16] Euzenat J., Pierson J., Ramparany F.- « Gestion dynamique de contexte pour
l’informatique diffuse » - Tours – France - RFIA 2006.

54
ANNEXURES

Details of Paper/s Published

Published papers should be placed over here.

 Requirement for the submission of Project Report (For Final Year):

Minimum of one paper in IEEE/ SPRINGER/ ELSVIER / ACM journals / IEEE/


SCI/ IJE/SAE/ ICJ/ASME/ UGC Approved unpaid Journals with Journal
Number.

 The certificates of the paper presentation should be attached


after published paper. (Sample certificate is attached in the next page.)
Copyright Certificate
NPTEL Elite Certificate
Plagiarism Report
Grammarly Report
Photo Gallery
Bibliography

Mr. Akshay Bhoyar is a pursuing Bachelor of


Engineering in Electrical Engineering from J D
College of Engineering and management, Nagpur.
He has participated in various project competitions
and workshops.

Mr. Akshay Bhoyar

Ms. Stuti Patil is a pursuing Bachelor of Engineering


in Electrical Engineering from J D College of
Engineering and management, Nagpur. She has
participated in various project competitions and
workshops

Ms. Stuti Patil

Ms. Shyamli Kamane is a pursuing Bachelor of


Engineering in Electrical Engineering from J D
College of Engineering and management, Nagpur.
She has participated in various project competitions
and workshops

Ms. Shyamli Kamane


Mr. Shubham Kulsange is a pursuing Bachelor of
Engineering Electrical Engineering from J D
College of Engineering and management, Nagpur.
He has participated in various project competitions
and workshops

Mr. Shubham Kulsange

Ms. Swati Gajbe is a pursuing Bachelor of


Engineering in Electrical Engineering from J D
College of Engineering and management, Nagpur.
He has participated in various project competitions
and workshops

Ms. Swati Gajbe

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