As I am learning how to drive, my problem was the parking.
So I thought about a system that will notify me about the distance, and you can use it to notify the others.
The software wasTinkerCAD Circut to design and simulate the electronic circuit.
Also, I used Arduino to write and upload the code.
The electronics component I used:
Ultrasonic
Push button
Buzzer
LCD
M-M wires
M-F wires
Crocodile wires
Arduino UNO
Cable
Breadboard
Cardboard for the enclosure.
I used TinkerCAD to design the wiring diagram of the circuit and make sure that the wiring is in the right way.
Input:
Ultrasonic sensor.
Push buttons.
Output:
LCD I2C 16x2 module.
Buzzer for notifying the others.
I used libraries for the ultrasonic and the LCD, then I defined the the pins that I will use.
I made the LCD read the distance from the ultrasonic.
Also, I used the if statement to make two conditions which are as the following:
If you pressed the push button, the buzzer will turn on.
If you did not press the push button, the buzzer will turn off.
The final outcome
I used an old box for the enclosure box using cardboard.
I created a precise cut for the ultrasonic sensor, the LCD, and the bush button.
I added the Arduino Uno and the breadboard inside the box.
The challenge for me was in using the relay module, I asked for help from my colleagues and the instructor, and they helped me.
Title of Media
A sample of the controlling box in my final project
This week, I used two inputs and two outputs which will make the code in the final project a little bit easier.
I will do something like this.
I like everything being organized. It took a lot of time from me to make the code organized so using "ctrl + t" saved my time.
It was not a project but Eng. Saeed visit us in the EOweek session and it was a nice surprise.