First, I'm a person who like to lock my room's door all the time and I'm being nervous when someone open the door and didn't lock it again.
So, I thought how to make a smart device which will serve my thinking.
I saw this photo in Project Hub here, And I said that this is the design I will make.
Tinker cad to simulate the circuit before connecting the hardware
Breadboard to connect all components on it.
Arduino uno to take inputs and perform action.
arduino ide for uploading the code on the board.
IR Sensor to detect that door opened.
2*16 LCD Display "I2C" to display the state of the circuit
Resistor 330 ohm to limit the current.
LEDs to warn that door is opened
Buzzer to warn that door is opened
Jumbers to wire all components
First, I begin to implement the circuit in tinker cad and check its functionality.
So, I began to connect components like PIR sensor because there isn't IR sensor in tinker cad.
I connected its VCC , GND and Signal Pin to the Arduino, and make a simple code which check the functionality of the sensor as I need or not.
Secondly,
started to implement code using Blocks in tinker cad, And begin to start to simulate the circuit and check code functionality before connecting it in real.
IR Sensor as an input.
Make 2 LEDs and 1 Buzzer and LCD display as output.
IR Sensor: detect that something across it.
Buzzer: To make sound when someone open the door.
LEDs: one is green and it lighten when door is locked, the other one is red and it's lighten when door was opened.
LCD: when the door is closed, It shows "Welcome" and "Be quite", when the door is opened it showed "Close The Door".
Test 1 Simulation
Final Simulation
Then, I begin to add extra component one by one until I got the last version of simulation which functionality as I want.
That's It :)
Test 1 Circuit
First, I start to check each component one by one and every step I added an extra component until I got the final outcome of the circuit.
At First, I connected IR Sensor with buzzer and checked them.
Test 2 Circuit
Then, I connected the 2 LEDs and edit code to make the green LED lighten as no one open the door and the other led to lighten when some one open the door.
Test 3 Circuit
Third, I Connected LCD display into my circuit , And I Checked its functionality, It's worked as I wish.
Final Outcome
Finally, I put the circuit near to my room's door and I established the IR Sensor and set its position to make it works efficiently.
The problem I faced that I can't work with LCD display I2C in tinker cad this is the first time to me to deal with it in simulation and I tried to turn it on put It can't do this.
I Searched for how to deal with I2C Display in tinker cad and this tutorial make me solve the problem.
This Week, I learnt how to deal with sensors and how to connect more than component each other to got a smart device that can serve me in my life or solve a problem I faced.
I think that in my final project I will need to connect more that 1 Sensor to each other. So, I think that this week's assignment helped me alot to learn this skill.
Bye .. Bye
This Week, We had made a simple box which can make "Bye ...bye" to anyone can be near it less than 10 cm.