Skip to content

haladayyeh/SelfDrivingCar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš—๐Ÿ’ก Self-Driving Smart Car WRO Palestine Final Project

๐Ÿ“Œ Introduction

Welcome to our intelligent self-driving car, proudly built for the World Robot Olympiad โ€“ Palestine Final! This car isnโ€™t just a machine โ€” itโ€™s the result of innovation, teamwork, and hours of dedication. Engineered to see, think, and act, itโ€™s ready to take on the challenges of autonomous navigation in a competitive arena.

๐Ÿ› ๏ธ Hardware Overview

Our smart car is powered by a suite of sensors and components that allow it to perceive its environment and make real-time decisions:

Component Function ๐Ÿง  Raspberry Pi The brain of the system ๐ŸŽฅ Camera Line and object detection ๐Ÿ“ Ultrasonic Sensor Detects obstacles and measures distance ๐Ÿ“‰ Accelerometer Detects acceleration and tilt ๐Ÿ”„ Gyroscope Measures rotation and angular movement ๐ŸŒก๏ธ Temperature Sensor Reads ambient temperature ๐Ÿ”ง Motors & Wires Movement and electrical connections ๐ŸŽฏ Mission Overview

Our project follows a two-round mission system based on the competition guidelines:

๐Ÿ”น Round 1: Line Following & Color Response

The car navigates a predefined track.

It uses the camera to identify blue and yellow lines.

Upon detecting these lines, it performs specific turning actions to stay on course.

if color in ["blue", "yellow"]: execute_turn()

๐Ÿ”ธ Round 2: Obstacle Detection & Intelligent Behavior

The car must identify colored obstacles placed along its path.

It uses the ultrasonic sensor and camera to detect and analyze obstacles.

Based on the type and color, it decides whether to:

๐Ÿ›‘ Stop

โ†ช๏ธ Detour

๐Ÿšง Perform a custom action

if ultrasonic_distance < 20: stop() analyze_obstacle() perform_action()

๐Ÿงช Code Snippets & Testing

We combined various Python modules including OpenCV, GPIO, and custom logic to bring the car to life. Hereโ€™s a glimpse of our logic in action:

Heat check (example logic)

if temp_sensor.read() > 40: alert("High Temperature!")

Rotation adjustment using gyroscope

if gyroscope.get_angle() > threshold: correct_direction()

๐Ÿง  Key Features

โœ”๏ธ Real-time obstacle detection

โœ”๏ธ Color-based decision-making

โœ”๏ธ Sensor fusion for smarter navigation

โœ”๏ธ Fully autonomous performance

โœ”๏ธ Customizable and scalable architecture

๐Ÿ‘ฅ Team & Acknowledgments

This project was designed and implemented by a passionate group of young engineers competing in WRO Palestine Final. Thanks to our mentors, families, and the organizers who made this journey possible.

๐Ÿš€ Final Thoughts

This is more than just a project โ€” itโ€™s a step toward the future of autonomous systems. Weโ€™re proud to share our innovation with the world. ๐Ÿง ๐Ÿ’ป๐Ÿš—

About

Complete self-driving car simulation system with real-time decision making, computer vision for lane/object detection, and AI-powered autonomous navigation. Implements path planning algorithms and sensor integration.๐Ÿš—

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages