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)

ultra sonic security system. To catch the thieves if they are near my door by giving me the sound through buzzer sound.

I wanted to use a ultrasonic sensor in my project, so I searched Google to find an idea suitable for use, I find a similar idea in the arduino project hub


Tool Chain

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

software

to stimulate circuit


to upload code to arduino board


electric components


buzzer

bread board


jumpers


LED


220 ohm resistors


arduino board


ultrasonic sensor

slide switch

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?

stimulation of circuit in tinkercad

Connect a red wire from the 5V pin on the Arduino to the positive channel of the breadboard. Connect a black wire from the GND pin on the Arduino to the negative channel of the breadboard:

  • Buzzer = pin 7

On Ultrasonic Sensor:

  • Echo = pin 3

  • Trig = pin 2

LED:

  • Yellow LED = pin 5

The wires connected to the LEDs should be connected in line to the positive side of the LED, while the negative side of the LED should be connected to the negative channel of the breadboard using a 220 ohm resistor.

slide switch :

  • ground pin with ground bread board

  • terminal with pin 8

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?

The circuit has been built as described above.

I have two inputs that are

  1. slide switch to control open circuit

  2. ultrasonic sensors

And two outputs that are

  1. bell sound

  2. LED

WhatsApp Video 2022-09-16 at 1.59.44 PM.mp4

code

define each with number on arduino pins

invoid setup:

define each pin as input or output

in void loop:

use if condition to make its function an recognize distance.

if distance less than 20 CM open yellow LED and sound buzzer

else

close LED and buzzer sound

WhatsApp Video 2022-09-30 at 8.27.55 PM.mp4

enclosure

WhatsApp Video 2022-09-30 at 7.50.25 PM.mp4
WhatsApp Video 2022-09-30 at 7.50.25 PM.mp4

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 buzzer didn't respond to distances all the time it made a sound.

The problem was in the code logic , almost buzzer didn’t enter in if condition

Maram and Ahmed help me to solve this problem.

Final Project

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

Title of Media


WOW!

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


Title of Media

Weekly Digest [OPTIONAL]

Tell us about any other cool things that you've made this week: in the Hands-on activity, tutorial examples, exercises, or any other cool mini-project that you tried out aside from the assignment.


Title of Media

Assignment Design Files