Inspiration One night, while driving on a narrow, winding mountain road, I was repeatedly blinded by the high beams of oncoming vehicles. The sudden glare made visibility almost zero for a few seconds, and it didn’t happen just once, it happened more than ten times during the same drive. I realized that situations like this are not only dangerous, increasing the risk of lane departure and delayed braking, but they also strain the eyes and can lead to serious accidents. This inspired me to create a system that supports drivers at night, helping them react faster and drive safer.
What it does The system detects high-beam lights from oncoming vehicles and obstacles ahead, automatically switching headlights from high beam to low beam, reducing vehicle speed if necessary, and alerting the driver through a buzzer. It is designed as a predictive safety assistant, not a self-driving system, meaning it enhances the driver’s awareness and reaction time, especially on curves and blind spots where visibility is limited.
How we built it We built the prototype using an Arduino Uno as the main controller, a light sensor (LDR) to detect incoming glare, an ultrasonic sensor to measure distances and obstacles, LEDs to simulate headlights, a motor and driver to simulate vehicle speed, and a buzzer for warnings. The Arduino continuously reads sensor data and applies predefined logic to decide when to switch headlights, reduce speed, or trigger alerts. We simulated curved roads and oncoming vehicles to test how the system reacts in different scenarios.
Challenges we ran into One major challenge was predicting incoming high beams before they were directly visible, requiring careful calibration of the light sensor. We also had to synchronize sensor readings with the Arduino for real-time response and adjust thresholds to account for nighttime conditions. Another difficulty was keeping the system simple and low-cost while still achieving reliable performance, balancing prototype complexity with effectiveness.
Accomplishments that we're proud of We successfully built a prototype that can automatically switch headlights, reduce speed, and alert the driver under predicted glare conditions. Unlike traditional reactive systems, our project implements a predictive safety layer, improving early warning capabilities. Additionally, we demonstrated that a low-cost system using simple sensors and a microcontroller can provide advanced driver-assistance functionality, making it more accessible than expensive ADAS technologies.
What we learned Through this project, we learned how to combine hardware and software to create real-time safety solutions. We gained experience in Arduino programming, sensor integration, and prototyping. Most importantly, we understood the importance of predictive logic in enhancing driver safety, showing how early detection and response can significantly reduce risk in challenging driving scenarios.
What's next for Untitled In the future, we plan to replace the light sensor with a camera and AI-based image processing system to detect oncoming vehicles, headlight intensity, and obstacles more accurately. We also want to integrate 360° sensors for comprehensive predictive awareness and embed the system in real vehicles as a semi-autonomous safety assistant. The ultimate goal is to bring advanced night-driving safety technology to everyday cars, making roads safer for a wider population, not just luxury vehicle owners.
Built With
- ai
- alert
- arduino
- automated
- basic
- breadboard
- buzzer
- c++
- control
- distance
- driver
- embedded
- frameworks
- hardware
- headlight
- ide
- indicator
- integration
- jumper
- l298n
- ldr)
- led
- light
- logic
- motor
- platforms
- processing
- programming
- real-time
- safety
- sensor
- systems
- technologies
- tools
- ultrasonic
- uno
- wires
Log in or sign up for Devpost to join the conversation.