Week 7- Journal

Ideation

  • This week's assignment is to design and program a smart device that perform a certain function or solve a problem: program Arduino UNO to read signals from multiple input components (Sensor, Switch, or variable resistor) to control multiple action components (Motor, Buzzer, LED...etc) using Arduino C (Text Code).


  • The Idea is to open the door when the user came, and the light is on

and the system footprint is out to allow the user access.

I try different things to know how it could work, I browsed google and YouTube to get inspired and I found this video.

Tool Chain

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

Software:

  • Arduino IDE: To write the codes responsible for programming Arduino compatible boards.

  • TINKERCAD (website): to predict and test the output of your circuits before implementing them in real life

*TinkerCad is a simple website that provides the feature of simulating electronic circuits., as well as provide explanations to some of the wiring problems that result in damaging the components in your circuit during simulation (i.e. if the current passing through a component is larger than what it can handle, etc.)



  • Electronics components

  • Resistor (220)

  • Ultrasonic sensor

  • LED Light

  • Breadboard

  • Arduino UNO Board

  • Jumper Wires (per need)

  • IR sensor.

  • Servo motor.

  • USB cable.

  • Cardboard.

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 chose to try the Input and the main part which is Ultrasonic sensor, and the IR Sensor which is the main sensor int the assignment.

  • I search for how other people have wrote their code, and how they connect components together.

  • Second I used TINKERCAD to simulate the circuit before I started to Build the circuit on a breadboard.

  • Third I connect the resistor to the green positive LED. And the cathode pin to the GND (ground of the Arduino.)

When the distance is < 10cm. The servo moves 90 degrees,

and when the IR sensor read the LED is green

Before Simu

  • Fourth I connected the Ir sensor to the positive and negative of breadboard and the output pin to pin no. 7 of the ARDUINO.

  • Then I connected the ULTRASONIC with its pins to the Arduino as :

VCC to Positive od breadboard.

GND to Negative of breadboard.

Sets the trigger pin to pin no. 5

Reads the echo pin the pin no. 4

  • Then I connected servo motor to pin no. 3.

code blocks

  • After the connection we make the code blocks as shown in the picture.

  • Finally I tryed to wite the Text code to the ARDUINO software to upload it to the Arduino.

  • I wrote it with some help from the week tutorial.

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 collect the component I need then I connected them as I do in the simulation in TINKERCAD.

  • After uploading the code, I start to try the circuit.

20220912_142318.mp4
  • Then I Upload the code in the arduino and the simulation come to an action.

20220916_123006.mp4
  • The IR sensoe sense the user and the light is on, then the ultra sonic sense that the user is on the door so the serco motor act and get the footprint out to allow the owner to get inside.

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 faced a problem for how to connect first the LDR Sensor to the Arduino, the color of the green and blue changed So I checked first the tutorial for the assignment week (Powering an RGB LED (Fixed Resistors)

  • Then my college Hanaa helped me, and we connected the adaptor 5V. it worked there, I then tried it home but I stuck I replace the LDR sensor with IR sensor it works so I asked Mohaned our instructor he told me some points to help.

Final Project

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

  • I know how to use Arduino and sensors so it could help me to jump to the next step, and think deeply 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?

  • I'll never forget to try and make sure that the component is connected right, in order not to burn the component, also the different between pins (digital pins) that control the speed of the moving component or the power of the led.

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.

  • In the EOWeek session, build a simple representation of a smart home system was so exciting as an idea, Unfortunately I was absence in the offline session, but I watch the videos that was so helpful and exciting to try a small project in your home.

Assignment Design Files