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.
What is Ultrasonic Sensor?
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:-
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); } }
0 Comments