I needed this assignment idea to be related to the servo motor, so I can be more familiar with it since a big portion of my final project is based on it, upon a few searches, I found a very relatable application that may be applied to many applications in out daily life, and it is the car parking system using ultrasonic sensor.
Here is the link of inspiration:
https://create.arduino.cc/projecthub/guruashishchoudhary29/automatic-parking-system-81d9fa
Tinkercad
Used to simulate electrical circuits and components, so you can calibrate your circuit calculations and needs before even going to the hardware steps.
Tools and Materials
Arduino Uno Board
Ultrasonic Sensor
Servo Motor
Breadboard
Jumpers and Wires
Arduino IDE
Used to compile the code written in the programming sketches and upload it directly to our Arduino Board.
Input Components:
- Ultrasonic senor.
Output components:
- Servo motor.
So first, and since we will use the ultrasonic sensor as our main event driver, then it was in the first if condition to measure the distance from the ultrasonic sensor, if it reached 10 cm or less, the servo motor will operate for 90 degrees and will be delayed for second.
Else, the servo motor will maintain its place at 0 degrees.
The main function of the circuit is to act like a parking system, if the car is on a certain distance, which will be determined by the ultrasonic sensor, the garage door, that is represented by a servo motor, will open, else it will close or will stay closed.
So first after I finished the circuit diagram in Tinkercad, just prepared the components I used and fixed it in the breadboard, and after fixing all the components I started connecting them to the Arduino board.
Then I converted the code blocks made in Tinkercad to text code, then this code is copied and pasted in a new sketch in the Arduino IDE, after being saved, and connections are made, then the Arduino board is connected to the PC using USB, then uploading the code to the board, and now everything is working like charm.
Title of Media
Didn't face any obstacles this week, it was pretty much like soft intro week to a field I am already working in, but what i considered new to me, is the ability to program Arduino board in Tinkercad using programming blocks, that's revolutionary somehow for me as I am interested in the educational field, and this looks like real time scratch
Didn't have a challenge this week, it was cool so far, but if I would highlight a challenge that others should concentrate on, is to study in depth the input and output components they will use in it and know how to use it well