COLLISION-AVOIDANCE PROJECT
- Princess Bamigboye
- Aug 2, 2023
- 2 min read
Updated: Aug 4, 2024
The collision-avoidance project is a prototype for collision-avoidance in automated (self-driving) vehicles (cars). It possesses two ultrasonic sensors, and can consist of more if desired.

Figure 1: Visualization for the Collision-Avoidance Project
The project was simulated on tinkercad for the purpose of having a diagram of the connections for reference sake.

Figure 2: Tinkercad Simulation for the Collision-Avoidance Project
COMPONENTS USED:
Two ultrasonic HC-SR04 sensors (one placed on the left, and the other placed on the right).
An LCD module.
One 330-ohm (Ω) resistor.
An active (piezoelectric) buzzer.
HOW IT WORKS:
An ultrasonic sensor is an electronic device that measures the distance to an object by emitting ultrasonic waves and converting the reflected sound into electrical signals. It possesses one trigger pin (the transmitter) and one echo pin (the receiver). The trigger pin emits the ultrasonic wave and waits for it to hit the nearest object. Once, the wave hits the object, it bounces back to the sensor and is received by the echo pin.

Figure 3: Working Principle of an Ultrasonic Sensor.

Figure 4: An Ultrasonic Sensor
The purpose of the buzzer and LCD is for warning (alert) and data display. The buzzer produces a beeping sound when an object comes too close to the sensor(s) (the warning distance can be adjusted), and the LCD module is programmed to display the distance of the nearest object from each sensor, and also from which sensor collision is about to take place.
You can get the code via the link.
THE OUTCOME:

Figure 5: The Final Work
REFERENCES:
‘What are Sensors And How Do They Work?’. https://www.techtarget.com/whatis/definition/sensor
‘What is a sensor?’. https://www.fierceelectronics.com/sensors/what-a-sensor
‘What is an Ultrasonic Sensor?’. https://www.fierceelectronics.com/sensors/what-ultrasonic-sensor
'Arduino Tutorial Playlist by Paul McWhorter'. https://www.youtube.com/watch?v=fJWR7dBuc18&list=PLGs0VKk2DiYw-L-RibttcvK-WBZm8WLEP




Comments