Smart Mirror

by Femke Neirinck in Craft > Reuse

639 Views, 3 Favorites, 0 Comments

Smart Mirror

101584284_687789842005144_2016270030580219904_n.jpg

In this instructable we'll be creating a smart mirror. I made this because I think smart mirrors are really cool. It's easy to see what time it is and what weather or temperature it is outside, while getting ready to go out.

Supplies:

Before we start, there are a few parts you will need to make a smart mirror like mine. These parts together cost about 250 to 350 euros, depending on the material you already have and the region you're in.


Hardware

Sensors

  • One Wire temperature sensor (DS18B20)
  • Humidity sensor (DHT11)
  • PIR Motion sensor
  • LCD Display

Computing and IC's

  • Raspberry Pi 3B+
  • SD Card (16GB is good)
  • Resistor 10k Ohm

Various

  • Jumperwires
  • Breadboard
  • Mirror Foil (you need to be able to see through)
  • HDMI cable
  • Ethernet cable
  • Wood
  • Monitor (size depends on the size of the mirror you want)
  • plexiglass

Software

  • Putty
  • Visual Studio Code
  • Win32 Disk Imager
  • MySQL Workbench

Raspberry Pi Setup

Putty.PNG

When you have all the components. You can start configuring the raspberry pi.

Install the Raspbian OS Software from the Pi website. You need to use Win32 Disk Imager to install the OS on the SD card. Then you should look for the file "cmdline.txt" and write "169.254.10.1" at the end. Then save and close this file.

Insert the SD card into the Raspberry Pi. Use Putty to connect to the Raspberry Pi using IP 169.254.10.1 and port 22.

I this is successful you should try to connect to the internet. You also need to create a folder where you will put all of your documents.

Hardware

Elektrisch_schema6.0.png
Breadboard_schema6.0.png

Now that the Raspberry Pi is ready, you can start setting up the circuit. Connect your circuit as shown above.

Attention: you will see that no LCD Display is drawn on the photos or in the accompanying documents.

SQL Database

EER-diagram.PNG

As you can see in the photo, we keep track of different users and a history of the measurements of the sensors.

The Case

117865865_781843299219935_6540074292581136907_n.jpg
117945130_724557434756655_3358534983056957730_n.jpg
117769465_310507730009105_4696731778664322870_n.jpg

I used light wood so it wouldn't weigh too much in the end. I made the wooden slats in such a way that they are the same size as my screen.

Plexiglass with the mirror foil

  1. Remove the protective film from the plexiglass on one side.
  2. Make sure that side is clean, so that the mirror foil can be hung nicely. If this would not have happened, you will get bubbles in it.
  3. Hang the mirror foil on the plexiglass using water and a little bit of soap.

Make the framework

  1. Make sure that the wooden slats are smoothly sanded, so that you don't get splinters in your hands.
  2. Saw the slats to the dimensions you want, so that your screen fits nicely. Saw off an angle of 90° on both sides, so that you get a nice frame.
  3. I then glued the slats together and let this dry for 2 hours.
  4. After those 2 hours I shot the slats again with a staple gun, so that they certainly cannot come off.

Behind the framework

  1. I attached slats of the same length to the back so that I created some sort of box to house the screen and the circuit.
  2. I tried to glue the plexiglass (with foil on the front) into the frame, but it turned out not to be strong enough so I screwed it into the wood.