DEPARTMENT OF INFORMATION TECHNOLOGY
PES’S MODERN COLLEGE OF ENGINEERING, SHIVAJINAGAR,
PUNE 05 2022-23
Project Report On
“SMART MIRROR USING RASPBERRY PI”
Submitted to the
PES Modern College of Engineering, Pune
In partial fulfilment for the award of the Degree of Bachelor
of Engineering
in
Information Technology
by
Mansi Inamdar 45031
Devika Kadam 45036
Nivedita Tupe 45074
Shital Nawal 45058
Under the guidance of
Mrs. Sampada Kulkarni
PES Modern College of Engineering- Information Technology, 2022-23
P.E.S. MODERN COLLEGE OF ENGINEERING, PUNE
DEPARTMENT OF INFORMATION TECHNOLOGY
Certificate
This is to certify that the project report entitled “Smart Mirror” being submitted
by - Mansi Inamdar(45031), Devika Kadam(45036), Nivedita Tupe(45074), Shital
Nawal(45058) and is a record of Bonafide work carried out by them under the
supervision and guidance of Prof. Sampada Kulkarni in partial fulfillment of the
requirement for BE (Information Technology Engineering) 2019 course of Savitribai
Phule Pune University, Pune in the academic year 2022-2023.
Date: 03/06/2023
Place: Pune
Dr. Prof. Mrs. S. D. Deshpande Prof. Sampada Kulkarni
Head of Department Guide
Dr. Mrs. K. R. Joshi
Principal
This Project based report has been examined by us as per the Savitribai Phule Pune
University, Pune requirements at Progressive Education Society’s Modern College of
Engineering, Shivajinagar, Pune - 411005 on 03/06/2023
Internal Examiner External Examiner
2|P age
PES Modern College of Engineering- Information Technology, 2022-23
ACKNOWLEDGEMENT
It is a matter of great pleasure for our team that we have been selected to work on this
project to prove our knowledge and abilities. This project not only enhanced our
knowledge in this field but also increased our general awareness.
The completion of any project is always due to the effort from numerous people, so no
project would be considered complete without words of appreciation for all those who
contributed efforts to the project.
In completion of this project, we have been fortunate to help, support, and encouragement
from many people. We would like to acknowledge them for their co-operation. First, we
would like to thank my internal project guide Prof. Sampada Kulkarni, for his constant
motivation and valuable help through the project work express.
We express my deep thanks to Prof. Sarita Deshpande, for their valuable suggestions
and advices. We also extend our thanks to other faculties for their cooperation during our
course. We also thank to our friends who helped our team to complete this work
successfully.
3|P age
PES Modern College of Engineering- Information Technology, 2022-23
ABSTRACT
Smart mirror, which continues to grow vastly, plays an important role in the future
technology, providing both the functionalities of a mirror and the smart features that come
with it to the users. The impact of such emerging technology would completely change
the lives of the people on a day-to-day basis. In recent years everything is turning smart,
such as smart home and smart cities. The smart mirror is one such device where a normal
mirror acts as a smart device. It has different modes namely the regular mode where the
mirror will act as a normal mirror and the smart mode where the mirror accepts external
commands and displays relevant results. The smart mirror can be built using the Raspberry
Pi-3 model B along with the touch screen functionalities.
Keywords—Smart Mirror, Information System, Internet of Things, Automation,
Raspberry Pi, Raspbian OS
4|P age
PES Modern College of Engineering- Information Technology, 2022-23
LIST OF FIGURES
Figure Number Figure Title Page Number
1. Flowchart 10
2 Architecture 12
3 DFD 0 13
4 DFD 1
5 Class Diagram 14
6 Use Case Diagram 15
7 Sequence Diagram 16
8 ER Diagram 17
9 Activity Diagram 18
10 Implementation 19
11 Test Case 1 25
12 Test Case 2
Working Modules:
13 Module 1 26
14 Module 2 26
15 Module 3 27
16 Module 4 27
17 Module 5 28
5|P age
PES Modern College of Engineering- Information Technology, 2022-23
CONTENTS
Chapter No. Name of Chapter Page Number
Abstract 4
1 Introduction 7
2 Literature Review 8
3 Problem Statement 9
4 Project Requirement 11
Specification
5 Proposed System Architecture 12
6 Implementation 19
7 System Implementation 21
8 Project Plan 29
9 Future work 31
10 Conclusion 32
11 References 33
Appendices:
Chapter No. Name of Chapter Page Number
A. Plagiarism Report of Paper 33
B. Hardware Components 34
specifications
C. Published Papers and Certificates. 36
6|P age
PES Modern College of Engineering- Information Technology, 2022-23
1. INTRODUCTION
The Internet of Things (IoT) is an arrangement of interrelated, web associated objects that
can gather and move information over a remote organization with no human intercession.
IOT's major huge pattern lately is the rapid development of gadgets associated by the web.
The IOT sets out more open doors for more straightforward joining of the actual world
into PC based frameworks bringing about effectiveness enhancements, financial
advantages and diminished human efforts. In the customer market, IoT innovation is
generally inseparable from items relating to the idea of the "smart home", including
gadgets and apparatuses (like lighting installations, indoor regulators, home security
frameworks and cameras, and other appliances) that help one or more normal biological
systems, and can be controlled through gadgets related with that environment, for
example, smart-phones and shrewd speakers. IoT can likewise be utilized in medical care
frameworks. The Internet of Things (IoT) is characterized as a worldwide framework for
the data society, empowering progressed benefits by interconnecting (virtual and physical)
things dependent on existing and developing (new) interoperable data and correspondence
advancements. The Internet of Things with its huge development has changed the
environment of people by converting home to smart homes. A smart home is associated
with the smart devices where the communication happens with devices through internet.
Our way of life has advanced such that streamlining time is the main thing. The use of
Smart devices is increasing day by day because of the vast improvement in the technology.
Every single day we tend to look at the mirror to check our attire and appearance. By this
we are psychologically interacting with the mirror. So, the idea of a mirror which can
respond to any of your commands can excite anyone. Normal mirror is improved into
insolent mirror and used as an information system to collect data. Multiple tasks can be
carried out on single user interface. The smart mirror device is suitable to check regular
activities, important meetings, worksheet by PC, tab, cellphone and other devices in few
seconds. The Smart mirror is an IoT based intelligent system that can be used for the
facilitation and enhancement of the user's awareness towards various functions. By using
this smart mirror the standard of living and the quality is changing drastically with the
help of interactive computing systems and the embedded systems. A Smart mirror can be
used as a normal commodity which ca can change the perspective of a person towards the
mirror.
7|P age
PES Modern College of Engineering- Information Technology, 2022-23
2. LITERATURE REVIEW
Sr. Reference Paper / Field Seed Idea/ Work Problems found / Your solution /
No. Visit / Other Sources description Research gap / Comment
Work gap
1 Ayushman Johri, Sana Through the creation of this lack of alert system focusing on other
Jafri, Raghav Narain device, they were able to for user utilities of the
Wahi and Dhiraj Pandey, provide an interactive device as a
"Smart Mirror: A experience to the user of the traditional mirror
timesaving and Affordable Smart Mirror, displaying or an emergency
Assistant" in, IEEE, 2018. valuable day-to-day triggering alarm
information to the user by system to
integrating computing and broaden the use
communication technologies, case
thus conserving time
2 Raju A. Nadaf, M. The system is designed to The Smart mirror The smart mirror
Rubina, P Sujata and display weather information, thus designed is an is designed in
Vasudha M. Bonal, temperature and latest news interactive system such a way that
"Smart Mirror Using on the mirror. The system is which is capable of system is
Raspberry Pi for Human primarily designed as a home accepting input by accepting touch
Monitoring and Intrusion Security and Human mobile based based control
Detection" in, IEE, 2019 Monitoring system. controls.
3 Muhammad Muizzudeen smart home-based Internet of The smart mirror is The proposed
Yusri, Shahreen Kasim, Things (IoT). This system used in house smart mirror is
Rohayanti Hassan, Husni allows users to access used in College,
Ruslai, Kamaruzzaman information Medical and
Jahidin, et al., "Smart and also control the lights in many other
Mirror for Smart Life", the house. Relevant places.
International Journal of information can be traced
Advanced Research in such as time and date,
Computer and weather, warning,
Communication traffic, and location
Engineering, 2017 map.
8|P age
PES Modern College of Engineering- Information Technology, 2022-23
3. PROBLEM STATEMENT
The proposed system is developed based on three objectives:
a. To design a prototype Smart Mirror using Raspberry PI
b. To develop a voice recognition system to facilitate the implementation of Smart Mirror.
c. Implement a convenient user interface
9|P age
PES Modern College of Engineering- Information Technology, 2022-23
4. FLOW CHART:
Face
Recognition
Fig.1
10 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
5. PROJECT REQUIREMENT SPECIFICATION
SOFTWARE REQUIREMENTS:
• Raspberry Pi OS: Raspberry Pi OS (formerly Raspbian) is a Unix-like operating
system based on the Debian Linux distribution for the Raspberry Pi family of
compact single-board computers
• Magic Mirror: Magic Mirror is an open source modular smart mirror platform.
With a growing list of installable modules, the Magic Mirror allows you to convert
your hallway or bathroom mirror into your personal assistant.
HARDWARE REQUIREMENT:
• Raspberry Pi 4 Model B
• Raspberry Pi Case
• Camera Module
• Charger
• 15.6” IR Touch Frame
• HDMI Screen
• HDMI Cable
11 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
6. PROPOSED SYSTEM ARCHITECTURE:
The system architecture of an Interactive modular-based Smart mirror is shown in Fig
- 1. The 2-way mirror is the main object placed at the of front the whole setup. The
mirror can be operated by touch feature using IR (Infrared) frame. The IR frame
basically has light sources, or light emitting diodes (LEDs) on one side and light
detectors on the opposite side, creating an optical grid across the screen. When an
object touches the screen, the invisible light beam is interrupted, causing a drop in the
signal received by the photo sensors. Then an LED display that shows the information
to a user is placed just behind the mirror. The other physical devices are the Power
supply, and cable to supply power to the whole setup from Raspberry pi 4 Model B
and SD card. The whole code is dumped onto an SD card and inserted into
Raspberry pi . The whole data is taken down by raspberry pi using an internet
connection i.e., connected using either Ethernet (LAN) or wireless (Wi-Fi)
connectivity.
Fig. 2
12 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
7. DATA FLOW DIAGRAM:
DFD 0:
Fig 3
DFD 1:
Fig 4
13 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
8. Class Diagram:
Fig. 5
14 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
9. Use Case Diagram:
Date
Time
Cloud
User Weather
Appointment
Fig. 6
15 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
10. Sequence Diagram
Fig 7
16 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
11. ER Diagram:
Fig 8
17 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
12. Activity Diagram
Fig 9
18 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
13. IMLEMENTATION
Fig 10
We plan to design and develop a kind of futuristic smart mirror that provides a whole new
experience to the user. Our proposed smart mirror consists of a two- way mirror, IR frame,
monitor, and Raspberry Pi. A wooden frame will be prepared with LED attached behind the
glass with raspberry pi. The power supply is attached to the raspberry pi which will power
the monitor.
The Interactive Smart Mirror consists of 4 modules that will perform over the normal
Two-way mirror i.e., Date and Time (Module 1), Weather (Module 2), Calendar (Module 3)
and Reminder (Module 4).
19 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
14. SYSTEM IMPLEMENTATION- CODE DOCUMENTATION:
20 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
21 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
22 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
23 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
15. TEST CASES:
Fig 11
Fig 12
24 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
16. WORKING MODULES:
The Interactive Smart Mirror consists of 4 modules that will perform over the normal
Two-way mirror i.e., Date and Time (Module 1), Weather (Module 2), Calendar (Module 3)
and Reminder (Module 4).
Module 1: Whenever the mirror is turned on using a power supply the Raspberry pi takes it
to the Raspbian environment. In the Raspberry pi terminal when the command “cd Magic
Mirror” will run, the Raspberry Pi will be working under the Magic Mirror software. Magic
Mirror is an open-source modular smart mirror platform. With a growing list of Magic
Mirror modules, the Magic Mirror allows you to convert your mirror into your personal
assistant. After typing the command “npm start”, the Magic mirror will be turned ON and
the mirror will display the basic information i.e., date and time which is our module 1.
Fig 13
Module 2:
We need to set up the Google assistant for our system. We will install our Google Assistant
module by entering the “npm install” command in the terminal. After the installation using
our raspberry pi browser, we will log in to the google account. The system also displays
current weather along with the temperature that is felt by the human body of the city which
is mentioned. User must register on the open weather website and provide the API
(Application Programming Interface) key as well as the location ID to display the weather
conditions based on the particular city.
Fig 14
25 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
Module 3:
This module displays all the upcoming Indian Holidays. This information is fetched from
google whose location is given as a link in the code. Once this module gets activated, the link
will be accessed and fetches the information accordingly. The position to be displayed is also
accessed by the code which is to the left of the mirror. Once the module is executed the output
of upcoming Indian Holidays will be displayed on the mirror to the Left side.
Fig 15
Module 4:
This module describes the main advantage of the mirror. User may set up his daily scheduled
meetings using the Google Calendar enabled on the dashboard of Magic Mirror. This will
keep the user updated about his/her activities.
Fig 16
26 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
The mirror also has an additional feature which makes it more attractive by displaying a
compliment whenever the mirror is turned on. It is basically a pre-written compliment as a
print statement, when the mirror is accessed, these messages will be displayed on the
middle position of the mirror and these compliment messages are changed on a timely basis
according to the input print statements in the code.
Fig 17
27 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
17. PROJECT PLAN:
DOMAIN SEARCH
RESEARCH
TESTED IOT USE
CASES
DECIDE ON CORRECT
HARDWARE AND
SOFTWARE
SELECTION OF
PROJECT
PLATFORM
DCUMENTATION
PROTOTYPING
AND
IMPLEMENTING
PUBLISH
28 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
Academic Year:
Week Activities planned Activity Guide Remarks
No completed status
1. Domain selection Completed
2. Topic Finalization Completed
3. Literature Survey Completed
4. Hardware Component Survey Completed
5. Documentation (SRS, Diagrams, Synopsis, Completed
Report)
6. Software Installation (Magic Mirror, Completed
Raspbian OS)
7. Module Installations Completed
(Day, Date, Time, Weather, Appointments)
8. Testing Completed
9. Deployment Completed
10. Publish Research Paper Completed
11. Final Project Report Completed
29 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
18. FUTURE WORK:
By utilizing sensor, we can reduce the power consumption since the mirror will display
information only in the presence of a human. The future prototype is ripe with
potential and probably robust in terms of functionality. The scope of this study is to
develop an efficient and cost-effective solution for the development of a Smart Mirror
to reduce and possibly eliminate the need for the user to make time in their daily
morning or nightly routine to check their PC, tablet, or smartphone for the information
they need. The mirror will provide the information with little to no effort from the user
with the goal of not being a burden that he or she must maintain. The mirror wouldn’t
be another activity, rather an enhancement to the already common use of mirrors in
most modern bathrooms. The mirror will do the thinking for the user. First, it will
turn on and off by itself. Then, it will update with the user’s calendar schedule, to-do
lists, Twitter, news, and weather. The information wouldn’t be thrown in the user’s
face, but unobtrusively displayed on the edges of the mirror to still allow use of the
actual mirror. The mirror provides common information most people check their
smartphones or tablets for, such as weather, news, Twitter and schedules. This allows
the users to read, think, and plan their day while getting ready in the morning or night.
30 | P a g e
PES Modern College of Engineering- Information Technology, 2022-23
19. CONCLUSION:
Our system integrated the concept and methodologies that have been implemented in
many existing systems a smart mirror system. It is a novel application of creating a smart
interacting system. The system is reliable and easy to use, in this interactive system; we
have been concentrating on an interactive system for home. There exist many benefits
from the smart mirror.
31 | P a g e
20. REFERENCES:
a. Devika Kadam, Mansi Inamdar, Nivedita Tupe, Shital Nawal, "Smart
Mirror Using Raspberry Pi" in, IJIRSET, 2023.
b. Ayushman Johri, Sana Jafri, Raghav Narain Wahi and Dhiraj Pandey,
"Smart Mirror: A time-saving and Affordable Assistant" in, IEEE,
2018.
c. Raju A. Nadaf, M. Rubina, P Sujata and Vasudha M. Bonal, "Smart
Mirror Using Raspberry Pi for Human Monitoring and Intrusion
Detection". In, IEE, 2019
d. Muhammad Muizzudeen Yusri, Shahreen Kasim, Rohayanti Hassan,
Husni Ruslai, Kamaruzzaman Jahidin, et al., "Smart Mirror for Smart
Life", International Journal of Advanced Research in Computer and
Communication Engineering, 2017.
e. 2019 1st International Conference on Advances in Information Technology.
f. N M Lakshmi and M S Chandana, "IoT based Smart Mirror using
Raspberry Pi", International Journal of Engineering Research &
Technology (IJERT), vol. 6, no.13, 2018.
g. "Smart Mirror: A time-saving and Affordable Assistant ", IEEE 2018.
32 | P a g e
Appendices:
A. Plagiarism Report of Paper
33 | P a g e
B. Hardware Components specifications
Raspberry Pi:
Raspberry Pi is a series of small board Computers developed in the United Kingdom. The Raspberry Pi
is a low cost, credit-card sized computer that plugs into a computer monitor or TV, and uses a standard
keyboard and mouse. It is a capable little device that enables people of all ages to explore computing,
and to learn how to program in languages like Scratch and Python. It’s capable of doing everything
you’d expect a desktop computer to do, from browsing the internet and playing high-definition video, to
making spreadsheets, word-processing, and playing games.
Features:
• It is a 1.2 GHz 64-bit quad core ARM Cortex-A53 processor,
on-board 802.
• 11n Wi-Fi, Bluetooth and USB boot capabilities.
• a faster 1.4 GHz processor,
• a three-times faster Gigabit Ethernet
• 2.4 / 5 GHz dual-band 802.11ac Wi-Fi (100 Mbit/s).
• Other features are Power over Ethernet (PoE),
• USB boot and network boot
Monitor/LCD Screen:
A Raspberry Pi display is a screen that can be connected to the Raspberry Pi board to display the output
from the device. The Raspberry Pi Touch Display is an LCD display which connects to the Raspberry Pi
through the DSI connector. In some situations, it allows for the use of both the HDMI and LCD
displays at the same time (this requires software support).
Two Way Mirror:
A piece of glass that is a mirror on one side but that can be seen through like a window from the other
side.
HDMI Cable:
HDMI means High-Definition Multimedia Interface, a standard for simultaneously transmitting digital
video and audio from a source, such as a computer or TV cable box, to a computer monitor, TV or
projector. The HDMI technology is used with devices such as an HDTV, Projector, DVD player, or Blu-
ray
34 | P a g e
Features:
• Audio and video interface for the transfer of video and audio over
a single cable.
• Data transfer up to 4.95 Gbps.
• 1080p at 60 frames per second
IR Frame:
The IR touch frame is composed of Infrared LEDs and photodetectors. The frame has an optical bezel or
protective cover through which IR LEDs emit infrared beams, invisible to the naked eye, creating an
optical grid on the display's surface. A major benefit of such a system is that it can detect essentially any
input including a finger, gloved finger, stylus, or pen.
35 | P a g e
C. Published Papers and Certificates.
1. Devika Kadam, Mansi Inamdar, Nivedita Tupe, Shital Nawal, "Smart
Mirror Using Raspberry Pi" in, IJIRSET, 2023
36 | P a g e