Week 7 - Journal

Ideation

Tell us about your assignment's idea for this week. Why do you care about this idea? What inspired you? (Please include images or links to sources of inspiration)

As I said in the last week that I'm a quiet person who doesn't like noise.
And I made a project last week to alert persons opening my room's door to close it back, But it didn't so professional.

So, I take my project and Begin to edit on it to make it more efficient and make it do its functions accurately.

Tool Chain

Which software/machines/materials did you use in the assignment? Why?

Arduino uno to take inputs and perform action.

Resistor 330 ohm to limit the current.

Design/Preparation Process

Explain the design and/or preparation process of your assignment. How did you use the tool or software to design and/or prepare your assignment before fabrication/implementation?

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.

Coding Time

1- I started to implement code using Arduino IDE.

At First, I make variables to control buzzer, LEDs, IR Sensor, Ultrasonic(Trig, Echo), distance to store distance, duration to store time, sys to store that system is on or off.

2- In void setup function, I activated serial monitor and give it a speed 9600, and begin to setup all pins as outputs/ inputs in my circuit.

I also activated lcd I2C and it's backlight.

Explanation of the code:

  • I used ultrasonic to calculate distance.

  • If no one near the door the system is on, Green Led lightening "Ahmed's Room", "Silence" sentences will be shown on LCD.

  • If someone entered the room, the buzzer will make alarm sound and red LED will lighten, And a sentence of "Close The Door " will be written on LCD screen, All of that will not finished until the door be closed again.

  • If distance is less than 20 cm that means that someone in the room want to exit the room, And Lcd screen will displayed "Welcome, God Saves You", So I disabled the system until he exited the room, And the system will turn back to work.

Development/Implementation Process

Explain the development/implementation process of your assignment. How did you use the machine/tool to manufacture or implement the design of your assignment?



I started to connect all components with each others and check its functionality before making cardboard.

So, I connect Lcd , buzzer, LEDs, Ultrasonic sensor, IR Sensor into Arduino Uno board and using bread board and jumper wires.

WhatsApp Video 2022-09-05 at 6.24.32 AM.mp4

Test Circuit

Making Cardboard

I used this to make a cardboard of my project, I started to make holes on it to put my components on it, And I make a small carboard, And I put it in door to help IR Sensor to detect the door opened or not using cardboard also.

Finally, I use a sheets of paper to cover it to get a simple model by the end.

WhatsApp Video 2022-09-05 at 10.51.57 PM.mp4

Mode 1

Mode 1 :

When Someone wants to exit the room. So, I disabled system to it until he /she exited the room and door locked again. the system begin to works again too.

Mode 2 :

When someone entered the room, the buzzer will make alarm sound and red LED will lighten, And a sentence of "Close The Door " will be written on LCD screen, All of that will not finished until the door be closed again.

WhatsApp Video 2022-09-05 at 10.50.45 PM.mp4

Mode 2

Overcoming Challenges

What kinds of challenges or problems did you face while doing the assignment, tutorials, or exercises? How did you solve them? Did you ask for help from an instructor or peer? Please provide a link to the tutorial or article that you used to solve your problem (if any)


  • The problem I faced that when I connected ultrasonic to calculate distance, At first it was inaccurate and it gives large distances between its normal distances.
    The Solution that I do, I saw this
    tutorial to tell me that I must put a small delay (200) to give ultrasonic a little time to calculate distance correctly.

Final Project

How can you use the skills and knowledge that you've acquired this week in your final project?

This Week, I learnt how to deal with sensors and how to connect more than one component or sensor to each other to got a smart device that can serve me in my life or solve a problem I faced.

This Week, I Learnt alot about LDR Module which I will use it in my final project.

WOW!

What is the coolest thing that you've learned this week? What is something that you will never forget from this week?

WhatsApp Video 2022-09-06 at 1.40.58 AM.mp4

This Week, We Learned how to control motors by H-bridge module and how to control a 12 v Lamb using relay module and we make a simple smart home in which we can control a fan and a lamb in manual or automatic mode.

Great Activity, I enjoyed it with my team Ahmed Reda, Yosr.

Assignment Design Files