Week # - 7
Smart door lock
Smart door lock
Ideation
Ideation
During a panedemic covid 19, we were very careful to not open any door with a hand contact
During a panedemic covid 19, we were very careful to not open any door with a hand contact
so I decided to make a smart door system to open my door remotely using an RFID tag and PIR motion sensor as the same ODC gateway
so I decided to make a smart door system to open my door remotely using an RFID tag and PIR motion sensor as the same ODC gateway
Some sketches
Some sketches
First sketch by hand
First sketch by hand
My first imagination
The home door opens his locks by a smart device works by arduino
Toolchain
Toolchain
Arduino uno
Arduino uno
9V battery
9V battery
ultrasonic module
ultrasonic module
Electric wires
Electric wires
Micro servo
Micro servo
breadboard
breadboard
card board
card board
relay module
relay module
push putton
push putton
Preparation Process
Preparation Process
Tenkercad
Tenkercad
I used Tinkercad to simulate my circuit before wiring it physically
I used Tinkercad to simulate my circuit before wiring it physically
Tenkercad
Tenkercad
Tenkercad
Tenkercad
Code
Code
1* call servo library
1* call servo library
2*give value for CM =0
2*give value for CM =0
3*put value of reading ultrasonic distance in a float
3*put value of reading ultrasonic distance in a float
4*define our inputs and outputs
4*define our inputs and outputs
5*I use the if function to command Arduino to read the ultrasonic distance and state of the switch and then take the action based on the reading and stander values
5*I use the if function to command Arduino to read the ultrasonic distance and state of the switch and then take the action based on the reading and stander values
inputs
inputs
1*ultrasonic module as person detector
1*ultrasonic module as person detector
2* RFID module (but I didn't own one)
2* RFID module (but I didn't own one)
so I put in my design a switch to act as the contact point (output) of my RFID
so I put in my design a switch to act as the contact point (output) of my RFID
outputs
outputs
1*servo motor
1*servo motor
to take the action to move my door lock from looked state to un looked state
to take the action to move my door lock from looked state to un looked state
2* LED
2* LED
to show my current state and ad more comfort as UX
to show my current state and ad more comfort as UX
Development Process
Development Process
In the future, I will use a 3D printer to fabricate a cover for an ultrasonic module
In the future, I will use a 3D printer to fabricate a cover for an ultrasonic module
Final Project
Final Project
What is the coolest thing that you've learned this week
What is the coolest thing that you've learned this week
What is the coolest thing that you've learned this week
What is the coolest thing that you've learned this week
Assignment Design Files
Assignment Design Files
Community of Learning
Community of Learning
In the first place youtube platform, slack community troubleshooting
Overcoming Challenges
Overcoming Challenges
ultra soic distance limit cant be lower than 10 cm
ultra soic distance limit cant be lower than 10 cm
so I adjust my code to work at 20 cm and I will work well as a prototype in the real-life distance will be about 60 CM to detect any berso
so I adjust my code to work at 20 cm and I will work well as a prototype in the real-life distance will be about 60 CM to detect any berso