How to Build a Smart Mirror with Raspberry Pi: What You Need to Know
Learning how to build smart mirror raspberry pi displays is more achievable than ever — here’s the short version:
Quick Overview: How to Build a Raspberry Pi Smart Mirror
- Get the hardware — Raspberry Pi 4 (or 3B+), a monitor (300+ nits brightness), a two-way acrylic or glass mirror, a frame, and a 5V 3A power supply
- Set up the software — Flash Raspberry Pi OS, connect via SSH, install Node.js, then clone and install MagicMirror²
- Assemble the physical build — Remove the monitor bezel, mount the display behind the two-way mirror inside your frame, and secure the Raspberry Pi behind it
- Configure your modules — Edit
config/config.jsto show the clock, weather, calendar, news, and any third-party modules you want - Enable autostart — Use PM2 so MagicMirror² launches automatically every time the Pi powers on
Smart mirrors have sat near the top of every maker’s wish list for years — and for good reason. The idea of a mirror that shows your mirror, the weather, and today’s news while you brush your teeth still feels like science fiction. But it’s real, practical, and very buildable on a weekend.
The secret behind it is simple. A two-way mirror lets a small amount of light pass through from behind while still reflecting like a normal mirror. Put a screen behind it, and the display shows through. Turn the screen off, and it looks like a regular mirror.
The software side is handled by MagicMirror² — an open-source platform that the Raspberry Pi community voted the number one project in The MagPi magazine’s Top 50. Hundreds of community-built modules exist for it, from Spotify playback to live weather and even cat videos.
This guide walks you through every step — components, software setup, physical assembly, and customization — so you end up with a mirror that actually works, not a fragile experiment you’re constantly fixing.

Essential Components for Your Build
Before we dive into the “how,” we need to talk about the “what.” Gathering the right parts is half the battle. If you use a dim monitor or a weak power supply, you’ll end up with a “mystery failure” that ruins your morning routine.

The Brain: Raspberry Pi 4 vs. 3A+
While we often recommend the Raspberry Pi 4 for its raw power and 4GB of RAM, the Raspberry Pi 3A+ is a fantastic choice for those aiming for a “super-slim” profile. The 3A+ is thinner and uses less power, though it might struggle if you load it down with dozens of complex modules. If you’re wondering Why Raspberry Pi is Perfect for Your Smart Mirror, it boils down to the massive community support and the low-profile hardware that fits behind glass.
The Display: Brightness is Key
The most common mistake beginners make is using an old, dim monitor. Because the two-way mirror reflects about 70-80% of the light, your screen needs to be bright enough to punch through. We recommend a display with at least 300 nits (or cd/m²) of brightness. Anything less, and your text will look like a ghost in a fog.
The Mirror: Acrylic vs. Glass
You have two main choices for the reflective surface. Acrylic is cheaper, lighter, and easier to drill (if you’re going for a frameless look), but it can scratch easily. Glass provides a much sharper reflection and won’t “warp” over time, but it’s heavy and expensive.
| Property | Acrylic Two-Way Mirror | Glass Two-Way Mirror |
|---|---|---|
| Weight | Very Light | Heavy |
| Durability | Scratches easily | Highly durable |
| Reflection Quality | Good (may have slight distortion) | Excellent (Professional grade) |
| Ease of DIY | Easy to cut/drill | Requires professional cutting |
| Cost | Budget-friendly | Premium |
Power and Storage
Don’t skimp here! A Raspberry Pi 4 requires a stable 5V 3A power supply. Using a cheap phone charger will lead to undervoltage warnings and random restarts. For storage, grab a 16GB (or larger) Class 10 microSD card. For more on the basics, check out our Beginners Guide to Building a Smart Mirror.
Step-by-Step Software Setup: How to Build Smart Mirror Raspberry Pi Systems
We always suggest getting the software running on your desk before you touch a saw or a drill. It’s much easier to troubleshoot a “black screen” when the Pi isn’t buried behind a piece of glass.
1. Flash the OS
Use the Raspberry Pi Imager to flash Raspberry Pi OS onto your microSD card. We recommend the “Lite” (64-bit) version for a dedicated mirror to save system resources, but the Desktop version is fine if you’re a beginner who wants a visual interface.
Pro Tip: Click the gear icon in the Imager to pre-configure your Wi-Fi credentials and enable SSH. This allows you to control the Pi from your main computer without needing a separate keyboard and mouse later.
2. Initial Commands
Once booted, connect to your Pi via SSH (e.g., ssh pi@raspberrypi.local) and run the standard updates:
sudo apt update && sudo apt upgrade -y
3. Install Node.js
MagicMirror² runs on Node.js. You can install it using these commands:
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs
4. Clone MagicMirror²
Now, grab the software from GitHub:
git clone https://github.com/MichMich/MagicMirror
cd MagicMirror
npm install
This process can take up to 30 minutes, so grab a cup of tea. Once done, you can test it by running npm start. If you see a beautiful interface with a clock and weather, you’re on the right track! For a deeper dive into the installation, see Setting Up Your Smart Mirror: A Complete Guide.
Installing MagicMirror² and PM2 Autostart
The last thing you want is to have to plug in a keyboard every time your house has a power flicker. We use a process manager called PM2 to make sure the mirror starts automatically on boot.
- Install PM2 globally:
sudo npm install -g pm2 - Setup PM2 to start on boot:
pm2 startup(Follow the instructions it prints on the screen). Create a start script: Create a file named
mm.shin your home directory with the following:cd ~/MagicMirror DISPLAY=:0 npm startMake it executable:
chmod +x mm.sh- Start and Save:
pm2 start mm.shthenpm2 save.
Now, your mirror is a true “appliance.” For more details on this step, visit Smart Mirror Modules Installation.
Physical Assembly and Hardware Integration
Now comes the “maker” part of how to build smart mirror raspberry pi displays. This is where we turn a pile of electronics into a piece of furniture.
1. Disassemble the Monitor
To get that “super-slim” look, you usually need to remove the plastic outer casing (the bezel) of your monitor. Use a prying tool or a flathead screwdriver. Be careful: The internal electronics and the LCD ribbon cables are fragile. Once the bezel is off, you’re left with a thin panel that’s much easier to mount.
2. The Shadow Box Frame
You’ll need a frame with some depth—often called a shadow box. It needs to be deep enough to hold the glass, the monitor, and the Raspberry Pi. If you’re building your own, use pocket hole screws for a sturdy build.
3. Light Leakage and Aesthetics
Any light that isn’t coming from your monitor’s display area will ruin the mirror effect. We recommend covering the back of the mirror (the parts not covered by the screen) with black vinyl or black construction paper. This ensures that the only thing “punching through” the mirror is your data.
For a great example of a sleek build, check out this tutorial on How to build a super-slim smart mirror – Raspberry Pi or follow our DIY Smart Mirror: A Step-by-Step Guide.
Mounting the Display for a Smart Mirror Raspberry Pi Build
Centering the monitor is critical. If it’s slightly crooked, you’ll notice it every time you look at the clock.
- Secure the Monitor: Use L-brackets or 3D-printed clips to hold the monitor tight against the glass. Some makers use nylon webbing and grommets for a secure, non-conductive fit.
- Mount the Pi: Use VHB (Very High Bond) tape or standoffs to mount the Raspberry Pi to the back of the monitor. Ensure it’s positioned so you can still reach the microSD card if you need to update it.
- Manage the Cables: Use zip ties and adhesive clips. Loose cables are the primary cause of “mystery failures” where a connection wiggles loose over time.
- Heat Dissipation: Don’t seal the back completely! Electronics get hot. Drill ventilation holes at the top and bottom of your frame to allow for natural convection.
If you are working with a limited budget, our guide on Smart Mirror Project for Tight Budgets has some great hacks for using reclaimed wood and cheaper materials.
Customizing MagicMirror² Modules and Features
The magic isn’t just in the mirror; it’s in the modules. Out of the box, you get a clock, a calendar, weather, and news. But the community has built hundreds more.
Default vs. Third-Party Modules
- Clock: Shows time and date (digital or analog).
- Weather: Uses OpenWeatherMap API to show local forecasts.
- Calendar: Can sync with your Google or Outlook calendars via iCal.
- Compliments: Displays nice messages (or cheeky jokes) to start your day.
To add more, like Spotify “Now Playing” or traffic updates, you usually clone the module’s folder into ~/MagicMirror/modules and add a snippet of code to your config/config.js file. See Smart Mirror Modules Installation 2 for a list of our favorites.
Advanced Customization: How to Build Smart Mirror Raspberry Pi Features
To really make the mirror yours, you’ll need to edit the configuration files.
- Editing config.js: This is the “brain” of your display. You’ll define which modules go where (topleft, bottomright, etc.) and enter your API keys.
- Styling with CSS: Want bigger fonts or a specific color? Edit
~/MagicMirror/css/custom.css. Because the mirror reduces contrast, we recommend using high-contrast white text on a pure black background. - Sensors: A popular upgrade is a PIR motion sensor. This allows the mirror to turn off when nobody is in the room, saving power and extending the life of your monitor.
For more tips on making your mirror look premium without the premium price tag, check out Creating a Budget-Friendly Smart Mirror.
Frequently Asked Questions about Smart Mirrors
Can I build a smart mirror with a Raspberry Pi 3?
Absolutely. In fact, the Raspberry Pi 3B+ and 3A+ are very popular for this. While the Pi 4 is faster, the Pi 3 is more than capable of running the standard MagicMirror² suite. The 3A+ is particularly loved for its slim profile, making it the go-to for “frameless” or ultra-thin builds.
How do I prevent my Raspberry Pi from overheating inside the frame?
Heat is the enemy of longevity. Ensure your frame has ventilation holes. If you find the Pi is running hot (you can check with vcgencmd measure_temp), consider adding a small, silent 5V fan or using a heatsink. A “fan hat” is also a great option if you have the space.
Is it possible to build a smart mirror without a Raspberry Pi?
Yes, though it’s a different process. You can use an old Android tablet or a slim laptop, but you lose the vast library of MagicMirror² modules that make the Pi version so special. For those interested in alternatives, we have a guide on How to Build a Smart Mirror Without Raspberry Pi.
Conclusion
Building a smart mirror is a rite of passage for any DIY enthusiast. It combines woodworking, electronics, and software into one satisfying project. At Foco Finanças, we believe that smart home technology should be accessible and fun. By following this guide, you’ve moved from a sci-fi dream to a functional piece of home decor.
Whether you’re using it to track your stocks, check your commute, or just get a daily compliment, your new smart mirror is a testament to what a little “maker” spirit can do. Ready to start? Check out our full resource on Building a Smart Mirror with Raspberry Pi and start your smart mirror journey today!