Smart Mirror or Magic Mirror

Smart Mirror

A smart mirror is a two-way mirror with an electronic display behind the glass. The display can show the viewer different kinds of information in the form of widgets, such as weather, time, date, and news updates.

A smart mirror, also known as a magic mirror, displays the time, weather, calendar, news, and social media updates. The magic is created by placing a transparent mirror over a screen such as a tablet, monitor, or TV. The technology is driven by a Raspberry Pi or Windows PC, combined with voice recognition and touch technology.

 
Magic Mirror using Arduino

In this Magic Mirror or Smart Mirror, This is somewhat different from smart mirrors which displays time, weather etc.
In this I put the led strip behind the mirror, which is controlled by Ultrasonic Sensor. When any one comes in front of sensor the light will turns ON automatically.
When some one gets away from the mirror, the light turns OFF automatically.
 
 
 

 

What is Ultrasonic Sensor?

An ultrasonic sensor is an electronic device that measures the distance of a target object by emitting ultrasonic sound waves, and converts the reflected sound into an electrical signal. Ultrasonic waves travel faster than the speed of audible sound (i.e. the sound that humans can hear).




 

Link to my channel is below, If you want to give feedback or any suggestions.

https://studio.youtube.com/channel/UCaXI2PcsTlH5g0et67kdD6g

 


 

 

If you have any doubt regarding this project, you can contact me from below details.

If you have any suggestions or project idea, kindly reach out to my channel or Telegram me at above no.

You're most welcome.


Parts List:-

1. Arduino Nano : https://amzn.to/3rhclDT
 
2. Ultrasonic sensor : https://amzn.to/3HlnlFP
 
3. Relay Module : https://amzn.to/3s3DRUt
 
4. Strip Lights : https://amzn.to/3gdWRtX
 
5. Strip adapter : from local shop


Steps to make this project:

 

1. Buy components like Mirror, strip lights, strip adapter, ultrasonic sensor, Arduino, relay module.

2. First take mirror and stick strip lights on back of it.

3. Then stick strip lights on vanity also. ( If you want to stick leds on other side, you can).

4. Take Arduino nano, single channel relay and strip adapter in a box,.

5. Connect ultrasonic sensor with wires.

6. Now, do connections of ultrasonic sensor and relay, and upload the code.

7. Place the box inside vanity and do connections of strip lights also from circuit diagram.

8. Place ultrasonic sensor to a place where you stand infront of the mirror.

9. Now give power to Nano/Uno and strip adapter.

Check it....Enjoy..

Your Smart Mirror is ready.


Circuit Diagram:-

 

 


 

 

Copy the Arduino code and just paste it on Arduino IDE

 

// https://www.youtube.com/channel/UCaXI2PcsTlH5g0et67kdD6g // // Smart Touchless Mirror// // By MOHD SOHAIL // int relay = 9; int Trig = 6; int Echo = 5; void setup() { Serial.begin(9600); pinMode(relay, OUTPUT); pinMode(Trig, OUTPUT); pinMode(Echo, INPUT); } void loop() { long tim; long dist; digitalWrite(Trig, HIGH); delayMicroseconds(10); digitalWrite(Trig, LOW); tim = pulseIn(Echo , HIGH); dist =((0.0343)*tim)/2; delay(10); if (dist < 30) { digitalWrite(relay, HIGH); } else if (dist >= 30) { digitalWrite(relay, LOW); } } 
 

 

If you have any query regarding this project, Contact me from below :

Telegram +919557024177
Instagram id : eif.08
Facebook page  : EIF08

 

 

Post a Comment

0 Comments