Close
0%
0%

Smart Mirror

Added features Like music stream,
customizable greeting, camera selfie.

Similar projects worth following
Every invention aims to make the life more easier than the life without it.Today time is everything,time is money.A person on average spends 2 weeks per year in front of mirror.Why not utilize it?.And make it more fun.
This project smart mirror give features like news,stocks,weather forecast and some fun features like music stream,camera selfie,lights control etc.A person does not have to take extra time to read the headline,he can do that while shaving,women while doing makeup etc

Why smart Mirror, do you need one, all these features are possible on any other device like smart phone, THEN WHY?

Smart mirror is a smart device just like a smart watch etc. You may not need it, But the device will benefit you in some way or the other. Surely you can read news, stocks weather on a phone. But smart mirror will save your time with entertaining experience. Why not to have a cool looking device in your home. Imagine reading news while shaving in front of mirror, taking a mirror selfie without the phone itself, listening to music etc

Below is the diagram which explains proposed functionality of the mirror.Some of them have been done other are in progress.Till now the basic UI of the mirror has been made in which the features like stock ticker, news feeds,time ,date,weather,greetings have been done.This list can be further expanded.

As for the website which control other features like music stream,home automation(LED lights),update greetings,getting detailed stock message,selfie has been done.

To make this mirror more independent ,the future work is to control these features from motion . As for now I have decided to go with PIR Sensor.

Here are some of the videos on YouTube to demonstrate the project.

license - 1.04 kB - 05/28/2017 at 13:22

Download

  • 1 × Raspberry Pi 3 Model B
  • 1 × Monitor
  • 1 × Two way mirror
  • 1 × led lights 12 volt
  • 1 × camera

View all 10 components

  • Motion Control using PIR sensor(proposed)

    shubham khatri05/28/2017 at 12:32 0 comments

    The features(music stream,camera selfie,stock message,Lights control will be implemented using PIR sensor.

    Below are the images explaining motion in-front of different sensor to achieve some objective.

    • Music control: this make use of two PIR sensor to start,stop,play next song and to play previous song. The arrow represent the direction of motion.

    • Light and camera selfie control : Both these feature uses separate PIR sensor.These events are activated when there is motion in-front of the sensor. In case of the Light control First time motion will turn ON the Lights while second motion will switch OFF the lights.And for camera motion take picture.


  • Mirror interaction website

    shubham khatri05/28/2017 at 11:19 0 comments

    The sole purpose of this website is to configure some setting for mirror like greeting, to access some features like music stream, click pictures etc.In future this website will interact with mirror to configure setting like changing location of weather,news preference,stocks preference.The secondary function is to control/access other features (music,home automation etc).As these feature are thought to be controled by motion ,it is also to be implemented in future.

    The screenshot of the website are shown below.

    On this page the user can see the changes that he made.Those will reflect side by side on the mirror as well.

    On this page the user can view/change the greeting that will be displayed on the mirror. Or he can reset them to default.This is implemented through use of JSON,a JSON file is created from which the mirror access the greeting that will be displayed on the UI. By using This website the data in that JSON file is manipulated.

    This page gives the ability to control the LED lights,hence fulfills the purpose of home automation on small scale. This is implemented through the use of a python script which is triggered when the button on the website is clicked.this python script then sends signal to relay to turn on/off the LED lights.

    The camera selfie works through use of Python,python script is triggered as we click the button.This python script then use camera to take the picture and save it to the storage of the raspberry pi.This pictures can be assessed through the FTP server of the raspberry PI.But in the future I am thinking of sending the image either through Email or through use of Bluetooth(On the paired phone).This will be done as soon the image is clicked.

    This page access the music stream feature.The user can add more music to website list by adding music files in the raspberry pi storage through use of FTP server.When the user updates the files in the raspberry pi directory he needs to refresh the website list by clicking refresh button (purple color circle).when the user wants to play a song first he has to select the song then press play button.To stop the song he have to press kill button.This is achieved through use of JSON ,python and JavaScript .First when user pushes the songs in the directory through FTP then after pressing refresh button a python script is triggered which scans for all the files in the directory.Then these file names are saved to a JSON file o the raspberry pi.After this the website uses JavaScript to display only MP3 files on the website.After this when user wants to play the song a JSON file is created with the name of the song.This name is then passed in the program which starts VLC to run the song.

    This feature of sending message to the phone of the user uses "Twilio API".Which is a trial base free service.This API is used inside python program to fetch stocks data then send it to the user phone number.




  • Mirror UI

    shubham khatri05/28/2017 at 10:21 0 comments

    The basic features have been implemented, the code for some features is not that friendly with user.Like for the news,stocks if he wants to change type of news to be displayed he have to make some changes in code with the RSS feed links.I am trying to make the code more flexible.

    The user greeting part is flexible ,user can change the greeting from the website.Or he can use them as reminder notes that will be displayed on the mirror.

  • Mirror Design

    shubham khatri05/28/2017 at 10:09 0 comments

    It is a basic design of wooden frame,fixed with two-way mirror.To hold the monitor in place,I have drilled 4 holes on two sides of this frame.I could have made this design more compact ,but due to reason that I do not have separate parts particularly for this project like computer monitor,camera etc.

    There is enough space in the frame to hold other hardware like raspberry pi, camera ,speaker,dc adapter,relay,PIR sensors,wires etc.

    The PIR sensor will be installed on the sides of the frame by drilling holes on each side.These sensors are used to control features like music stream,lights controls etc.

    This design was made so as to disassemble and reuse the hardware when necessary.Else can be more compact.

View all 4 project logs

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates