HOMEMADE SMART MIRRORJun 14th, 2020 | by: ELECTRONOOBS
See the VIDEO
Part 1 - What we need?
First you need the 3D parts for this design. For now I'm sharing the design for free on my shop since the plane was not tested yet. But, if you consider supporting my work, there is the same version for 5$ so thank you. So, go below and see all the parts. Download the .zip file with the STL files from my shop. Get the rods, servos, battery, glue and all you need, and then, in a few hours, you can assemble this plane once you have the 3D parts. Printing the parts will take some days. Having multiple printers will reduce time.
- 1 x Raspberry Pi: LINK eBay
- 1 x LCD HDMI module KIT: LINK eBay
- 1 x HDMI cable: LINK eBay
- 1 x 5V Micro-USB adaptor: LINK eBay
- 1 x 12V 1A adaptor: LINK eBay
- 1 x 32GB fast micro SD card: LINK eBay
- 1 x SD card USB reader: LINK eBay
- 1 x USB keyboard: LINK eBay
- 1 x USB Mouse: LINK eBay
- 1 x WiFi Antenna (only for non-wifi Raspberry Pi): LINK eBay
- 2m x 220V cable: LINK
- PC with internet connection:
- 6m x 45x30mm wood: LINK
- 1m 20x20mm wood: LINK
- 97 x 35 cm transparent glass (3mm thick): EXAMPLE LINK (in my case is from old furniture)
- 50x200xm one way film: LINK eBay
- Wood putty: LINK eBay
- Wood glue: LINK eBay
- Wood Screws M3: LINK eBay
- 20mm x 1mm nails: LINK eBay
- Sand paper, saw, hammer, soap-water pulverizer, plastic spatula, screwdriver...
PART 2.1 - Preparing The Frame
PART 2.2 - Making The Frame
PART 2.3 - Final touches
PART 3.1 - Assemble 1
PART 3.2 - Schematic
PART 3.3 - Prepare for software
PART 4.1 - OS Software 1
Connect the SD card to the PC and format the SD card. Then go to the link below on raspberrypi.org and downlaod the Debian Buster version for the raspberry pi OS. That will download a ZIP file. Save this ZIP file for later.
1. Raspberry Pi OS: https://www.raspberrypi.org/downloads/raspberry-pi-os/
Next go to the link below and downlaod a software called Etcher that will burn the OS image to the SD card. This will download an .EXE file. So install taht software and run it.
2. Balena Etcher: https://www.balena.io/etcher/
Run Balena Etcher. Click the plus button and here, select the ZIP file for the Raspberri PI OS we haev just downloaded before. Then, on the drive button select the SD card drive. Then click flash. This will burn the OS to the SD card. This will take some time so be patient. When is ready, remove the SD card reader from the PCB adn get the micro SD card. We can now pu the card into the raspberry Pi.
PART 4.2 - OS Software 2
PART 4.3 - OS Software 3
PART 5.1 - Magic Mirror Software 1
Now we can install the Magic Mirror. for that 1. run the terminal on the Pi. You can find all the steps here on the original psot as well on https://docs.magicmirror.builders/getting-started/installation.html Then 2. copy the next link and paste it on the terminal and hit enter.
When that process is finish, 3. copy the next line and paste taht in the terminal and hit once again enter and wait to finish.
Now we have to clone the repository and check out the master branch. For that 4. copy the next line and paste it into the terminal and hit enter. Now we have a clone of the files for the magic mirror on our raspberry pi. Let' go to the next step. Don't close the terminal yet!
PART 5.2 - Magic Mirror Software 2
Now, we have to open the folder where magic mirror is and for that 5. we type the next line on the terminal and hit enter. Then 6. type the npm install and taht will install magic mirror.
Later we will change the config file, but for that we make first a copy of this file just in case. For that, 7. copy the next line, paste it into the terminal and hit enter.
Finally, we can now run the magic mirror platform and for that 8. copy the next line, paste it on the terminal and hit enter.
PART 6.1 - Configure Magic Mirror 1
Magic Mirror works but it has the default data. We want to place our data for time, weather and calendar. 1. Go to the the pi directory, to the MagicMirror Folder, open the config folder and there 2. open the config.js file with the text editor. Is time to add our data. First, in my case I delete the greatings block because I don't want that. 3. Delete from bracket to bracket. Go to the next link and create an account. Then go to APIs and create a new API and copy that code and 4. paste it in the config.js file.
Go to openweathermap.org: https://home.openweathermap.org/api_keys
PART 6.2 - Configure Magic Mirror 2
Below one the City List file and press CTRL+F for Find. 7. Search for your city, in my case Barcelona. 6. Copy the city ID and paste it in the config.json file as you can see below. Now save the file and go back to the termianl and type agin npm start and magic mirror will start but now with your local weather data.
ART 6.3 - Configure Magic Mirror 3
Ok, close Magic Mirror again by pressing ALT and then file, and quit. Open config.json again. We need to add our agenda. For that we need a google calendar account. Go to the link below and if you don't already have a google mail, create a new account. Then go to calendars, 9. click the settings gear and select settings. On the lft side, on my calendars, select your calendar. 10. First enable public share by checking the checkox. Go below on this same apge and 11. copy the public link in an iCal format. 12. Paste that link in the config.json file on the calendar block url. Save the file adn run again magic mirror. Your google calendar should now appear. If you want to also keep the US holiday calendar, just copy adn paste that block in the config.json file.
PART 7.1 - Auto start 1
Ok, magic mirror works but we want it to auto start when we reboot the Pi because we won't have the keyboard and mouse. For taht we wull use the PM2 method. So, go back to the terminal and 1. paste the next line and hit enter. That will Install PM2 using NPM.
Then 2. copy the next line and paste it and hit enter.
This action will give you a link to copy and paste. So, 3. copy that link, paste i on the terminal and hit enter. Once that action is ready, 4. copy the next link, paste is and hit enter.
PART 7.2 - Auto start 2
That will open the mm file. In that file 5. copy the next lines and paste it there in the file. To save type CTRL+O and hit enter and then typoe CTRL+X for exit.
In the terminal, now 6. copy and paste the next line and hit enter.
Then 7. copy and paste the next line and hit enter. Then copy adn paste the save line adn that's it. Reboot the pi and magic mirror should start automatically after a few seconds.
PART 8.1 - The one way glass
PART 8.2 - Assemble the mirror
PART 8.3 - All Ready
PART 9 - Thank you
See the full video tutorial below. If you want to support me, consider my PATREON page or if you want, consider helping me on PayPal. I hope this project will help you and teach you something new. Thanks again!