Week 6- Journal

Ideation

This week's assignment is to build and program a smart circuit using an Arduino UNO which reads a signal from an input component (Sensor, Switch, or variable resistor) to control an action component (Motor, Buzzer, LED...etc) using Code Blocks.

giphy.mp4

I try different things to know how it could work, I browsed through Instructables and Arduino Project Hub to get inspired and I found some similar projects to what I'm thinking about, Iwas thinking of architecture design wall with more than hundreds of Leds, so I came to this one.

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

  • 3 Resistor (220)

  • Ultrasonic sensor

  • RGB LED Light

  • Breadboard

  • Arduino UNO Board

  • Jumper Wires (per need)



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 first and the main part which is Ultrasonic sensor. which is from the new components in this week.

  • I search for how other people have wrote their code, and how they connect components together. Then I discover many other codes about the component I need in this site.

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

  • Third I connect the 3 resistor to the green, red and blue pins in the LED. And the cathode pin to the GND (ground of the Arduino.)

When the distance is < 5cm. The led is red

When the distance is > 5cm. The led is green

  • Fourth I connected the resistor that connect red pin to digital pin no. 4 and that in the green pin led to digital pin no. 5.

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

VCC to 5V of the ARDUINO.

GND to GND of the ARDUINO.

Sets the trigger pin to pin no. 3

Reads the echo pin the pin no. 5

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

Copy the Text code in ARDUINO software

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

Manual mode wiring diagram & code blocks

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.

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

Arduino board connection.

The circuit

Breadboard connection and the RGB LED's color with a current limiting resistance.

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)

  • First I faced a problem for how to connect the RGB 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)

  • Also I checked this website that helped me alot

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.

  • I can make a code to Arduino to make the feature I want in my project like controlling the time needed to stop the process, coding the distance for the sensor that the process start for the user.

WOW!

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

  • I liked the sensors and simulation part, also, I enjoyed the outcome of the EOweek session, especially the automatic mode.

  • I'll never forget to make sure that the polarity of the component is 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.

Hello there๐Ÿ‘‹

At first I wasn't sure how to start, but I learned something that we can try first and then find it out.

  • In the EOWeek session, we were asked to Build and Program a Smart Waving Hand using Arduino in two modes separately

In group we used ultrasonic, Potentiometer and the servo motor

๐Ÿ‘‹ ๐Ÿ‘‹

Assignment Design Files