Parking Sensor
This week, I created a Parking Sensor using an ultrasonic sensor and an RGB LED. The LED changes colors based on the distance detected by the sensor, showing green when the object is far, yellow when it’s approaching, and red when it’s very close. This simulates a real-life parking assistant that helps drivers gauge distance.
I’m interested in creating devices that solve real-world problems, and a parking sensor is a perfect example of a small, functional, and visual device that gives immediate feedback
Software : Autodesk tinkercad
Component:Push Button
Component: 5v Adapter
Component: LED
Component: Screw Terminal block to female DC power adapter
Component: BreadBoard
Model making tools:
Cutter
Double Face tap
Glue Gun
Cardboard
Component: Jumper Wires
Component: Crocodile Wires
Component: Arduinjo Uno
Component: 220 Ohm resistance
Component: Buzzer
For this assignment, I first planned the logic of the system: the RGB LED should change colors according to the distance detected by the ultrasonic sensor green for far, yellow for medium, and red for close. I sketched a simple diagram showing how the ultrasonic sensor connects to the Arduino and how the LED pins are connected through resistors
1- Started with TinkerCad
2- Preparing Blocks for Arduino
3-Exporting to ArduinoIDE
Via Downloading the Code button
4 - Testing & Troubleshooting: I tested the system on Arduino, verifying sensor readings and RGB LED responses, making adjustments where necessary.
4 - Testing & Troubleshooting: I tested the system on Arduino, verifying sensor readings and RGB LED responses, making adjustments where necessary.
4 - Testing & Troubleshooting: I tested the system on Arduino, verifying sensor readings and RGB LED responses, making adjustments where necessary.
4 - Testing & Troubleshooting: I tested the system on Arduino, verifying sensor readings and RGB LED responses, making adjustments where necessary.
4 - Testing & Troubleshooting: I tested the system on Arduino, verifying sensor readings and RGB LED responses, making adjustments where necessary.
I asked my peers for feedback on my project. One of them suggested that I use IF statements in the code blocks to make the RGB LED change colors more efficiently based on distance. I built upon this idea and implemented it in my Arduino code, which improved the responsiveness of the parking sensor.
Some challenges I faced included setting the correct distance thresholds and ensuring the sensor
I forgot the breadboard separator as the circuit wasn't work as it should be
The skills I acquired this week, such as using TinkerCAD for circuit modeling, programming Arduino with IF statements, and controlling RGB Led based on sensor input, can be applied directly to my final project
Files