Simplicity ..
I always choose complicated ideas, so I wanted to create simple & funny idea.
Then I remembered that every time I learn new skill or new information, there's only one song that pops on my mind.
أنا قبل ما أفهم
أنا بعد ما فهمت شوية و بقيت أوصَّل بنفسي
Every time I get to know or learn something new in the diploma, I hear the rhythm of a song, so I wanted to create the first beats by the buzzer -as an output-, and I'll use my hand with the sensor -as an input- to get the beat.
Using the ultrasonic icon, entering the pins for the echo and trigger pins, also used a comparison icon to add the distance -30 cm- , after that, I used the if else condition, to set the pin of the buzzer to HIGH and LOW.
I took this code from TinkerCad by using the blocks+text icon.
The Wiring
My hand being the main character of the assignment 🖐️
The buzzer is connected to pin 2 in Arduino from the +ve side, and the -ve side to GND.
Ultrasonic Sensor is connected to pin 5 from TRIG, and to pin 4 from ECHO
When you learn something,
اهدى يا قلبي اهدى و استنى👽
No one:
Literally No one:
Me after making a beat with the buzzer:
At first, I thought of using the potentiometer; as I wanted to make the sound by increasing the volume and decreasing it, but it was hard to control and took time to get one beat; that's why I thought of the sensor, as it gives the beat immediately.
But I shared this, as it gives me the idea of the volume button of the radio or the speaker, so it's very cool.
I'll leave the wiring and the codeblocks here if anyone needs it later 🤜
Me before hearing about the Logical Thinking
Writing down every step in English/ Arabic, then turning it to blocks on TinkerCad.
I know, it seems pretty simple, but being able to think about the action I have to take; to get the result I need was not that easy for me.
Unfortunately, I ate too much..
تخنت اتنين كيلو يومها و فضلت أسبوع بعدها بحاول أبطل أكُل زيادة 😅
I didn't lose, normally, I lose badly 😂
This was my fourth time to eat 😂
و مبسوطة إن يومها اتعرفت على عبده 🥰
I love these two soooo muchh!!!😍😍😍