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)
Title of Media
I Love playing Music so I constructed this device inspiring its idea from this project this device can play musical notes by placing an obstacle in front of an ultrasonic sensor and every distance interval will play a different musical note and also will light a different LED
Tool Chain
Which software/machines/materials did you use in the assignment? Why?
Ultrasonic sensor
buzzer
7 resistors 220 ohms
USB cable
Bread board
male male jumbers
cardboard
Arduino UNO
7 LEDs with different colores
Wax glue gun
push button
cutter
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?
construction of the circuit on tinkercad
1- ultrasonic pinout
Vcc pin to 5v lane in the breadboard
the GND pin to GND lane in the breadboard
trigger pin to pin 11 in Arduino
Echo pin to pin 10 in Arduino
2- buzzer pinout
+ve pin to pin 9 in Arduino
-ve pin to GND lane in breadboard
3- LEDs pinout
+ve pins of 7 LEDs ito pin 7 , 6 , 5 , 4 , 3 , 2 , 12
and -ve pin of 7 LEDs to resistors then to GND lane in the breadboard
4- push button pinout
1 terminal to pin 9 in Arduino
another terminal to the GND lane in the breadboard
construction of the device
cut the cardboard to suitable measurements for a box and a rail in front of it
the upper face contains 7 holes for LED and one larger hole for the push button
choose one of the side faces and open two holes in it for the Ultrasonic sensor
open a hole in the back face to plug the adapter and the USB cable
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?
coding
simulate the buzzer only with Arduino on tinker cad and use blocks to get the values that should be used in coding to give the right musical notes
coding on arduino IDE
defining all pins
write down the code of ultrasonic reading and save it in variable called dist
construction of if statement and state the conditions of each needed action
1- define input and output pins
2- start a loop
a- check if the push button is high do this
if the distance between 5 and 10 play (DO) ad lithe the first LED and turn of other LEDs
if between 10 and 15 play (Ri) and turn on 2nd LED and turn off other LEDs
and if the distance is more than 45 or less than 5 nothing will happen
b- if the pushbutton is off nothing will work
testing the circuit and the code
assembling the body of the device using cardboard
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)
1- coding ultrasonic was not clear to me but after watching many videos I understood the meaning of each line
2- I did many syntax errors and revised it with the instructor
3 - tuning the buzzer to get the correct musical notes
I tried first with a potentiometer but it didn't work then i used tinker cad
Title of Media
Final Project
How can you use the skills and knowledge that you've acquired this week in your final project?
Air piano
all you have to do is to press the push button and place your hand or any obstacle within the declared distance interval on the carboard rail and mentioned to get the written musical note in this interval
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