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)



My idea for this assignment depends on building a smart electrical circuit to make Lighting warning system to prevent access to a place, I searched YouTube to find similar ideas in these links

https://youtu.be/xZ8kKT-DLxk

https://youtu.be/UVrRmDBRKH8

Tool Chain

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

Tinkercad program


Arduino to copy the text code and upload it to Arduino UNO.



-Breadboard to connect components -on-of switch -Jumper wires To connect electricity to components

-5 LED To light up when the sensor is activated - Ultrasonic Sensor to feel the movement

- Arduino uno To make the code and activate the components

- Resistor (220 ohm) To introduce the appropriate current to the LED

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?

I wrote the code at the beginning, I defined the inputs and outputs

Then I wrote the code for the void loop, which is that each LED is lit at a certain distance

Then i specify a space for each LED and define its wire number

I set different values ​​so that a larger number of LEDs are lit when approaching the sensor, starting from green to red

Finally, when I finished the code, I uploaded it to the Arduino to activate the circuit

here the wiring diagram on tinkercad

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?

First, I connected the LEDs and the resistors to the breadboard

Then I put the ultrasonic sensor

Here I connected the Arduino to the breadboard

Then I connected the wires to the sensor according to their specific places

I connected the LEDs to the Arduino via wires

Finally, I connected the on and off switch and uploaded the code to the Arduino

After making sure that all the components are working and performing their function, I put them in a cardboard box

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)

I had a problem while writing the code and my friend Rawan helped me and then I was able to run the code

Where the Ultra Sonic Sensor did not read any movement, because of an error in defining the code, and after the correction, the job was done successfully


Final Project

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

During this week, we learned about the Arduino and the various input and output pins in it, and how we can write a code by ourself, and this is very important to finish the 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?

It was very interesting this week is that we were able to write a code on our own and run the circuit successfully after downloading the code and this is one of the hard things to forget

Assignment Design Files