Week 08 - 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)

Robot Arm.

The inspiration this time came from the hackathon that we did on Saturday the 10th of September. That was a robot arm with servo motors. I got inspired by the movement of servo angles according to buttons and wanted to visualize them using an RGB led.

Tool Chain

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

1- I got inspired by the hackathon .

2- I prepared the components (an arduino uno, servo motor, RGB led light, resistors, adaptor 5V and Bluetooth Module).

3- I used Arduino IDE to write the code.

4- I connected the mobile app (Arduino Bluetooth Control) to the Bluetooth module.

Circuit Components

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?

The Process

  • I started to make the wiring diagram to connect the components.

  • Firstly, I wired the RGB LED and the servo motor to Arduino as they are the output components.

  • Then I Uploaded the code to Arduino itself.

  • Then I wired the Bluetooth module as shown in the wiring diagram.



Code

Wiring Diagram.

Code Explanation

  • I started the code by including the Servo library.

  • Then I defined all the variables I have.

  • Inside the Void Setup, I defined the pin modes of the components.

  • Then, it's time to the Void Loop. I begin with the while function that enables the code to only work when there is a serial input.

  • I want the servo to rotate and the led goes green when I press 1 on the mobile app. Therefore, It was translated into if condition with the and function.

  • In order to make sure how the Arduino connects with the buttons on the application. We check the settings of these buttons. how they are translated into characters. From settings, command buttons configuration. Then, use them in the code.

  • Then, the other option is for the servo to rotate in the opposite direction and the led goes blue when I press 2 on the mobile app.

  • otherwise, The led goes red.

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 simulated The Circuit on a real breadboard and Bluetooth module. and This is how it is ended.

The Real Wiring

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 challenge uploading the code into Arduino. Then, I remembered what Amany and Ibrahim told us that we should disconnect the Bluetooth module before we upload it.

  • I had a problem connecting the Bluetooth module on the mobile app. It was taking too much time to connect to the module. I solved it by disconnecting the module from the circuit and then connecting it again.


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