Project Report
Project Report
MINI PROJECT
SUBMITTED BY:
EC01,BATCH-2,GROUP-5
AVINASH S-B230637EC
BADHON DATTA PROTTOY-B230101EC
AUSTIN BERT AMBOOKEN-B230858EC
1. Objective / Aim
The primary aim of this project is to develop an autonomous robotic vehicle
that detects and avoids obstacles in its path without any human
intervention. The robot uses an ultrasonic sensor to perceive obstacles and
a microcontroller (8051) to process data and make movement decisions.
This project introduces automation at a fundamental level and showcases
how microcontrollers and sensors can be used for real-world intelligent
navigation.
2. Introduction
In the age of automation, obstacle-avoiding robots represent a critical step
towards intelligent, self-guided systems. These robots find applications in
areas such as driverless vehicles, military patrol bots, warehouse robots,
and assistive mobility solutions. The obstacle avoider robot moves forward
unless it detects an obstacle in its path. Upon detection, the system
evaluates alternative paths and changes direction accordingly.
3. Theory
2
The 8051 is an 8-bit microcontroller that consists of built-in RAM, ROM,
timers, I/O ports, and serial communication. It is widely used in embedded
systems for its ease of programming and reliability.
Distance formula:
3
5. Working Principle
The Obstacle Avoider Robotic Vehicle functions based on real-time input
from an ultrasonic sensor and decision-making logic embedded in the 8051
microcontroller. The system works in a continuous loop to detect obstacles
and navigate accordingly. Below is a detailed explanation of how the
system operates:
4
Step 1: System Initialization
Once the power is turned on, the microcontroller initializes all the ports and
components, including the ultrasonic sensor and the motor driver. The
sensor is set up to begin sending out pulses to detect obstacles.
This data is constantly updated, allowing the robot to “see” its environment
in real time.
5
1. Stop both motors.
3. Decision:
This simple but effective algorithm allows the robot to navigate around
obstacles without human input.
Based on the decision made, the 8051 sends digital signals to the L293D
motor driver IC. This IC controls the direction and rotation of the DC motors
connected to the robot wheels. Depending on the input pins (IN1 to IN4),
the motor driver either moves the motors forward, backward, or turns the
robot.
6
● Making movement decisions
...runs in a continuous loop as long as the robot is powered on. This allows
the robot to move autonomously through a space, avoiding obstacles
dynamically.
6. C-Programming Code
#include <reg52.h>
// Function Prototypes
7
unsigned int measure_distance();
void move_forward();
void move_backward();
void turn_left();
void turn_right();
void stop();
void main() {
TH0 = 0;
TL0 = 0;
IN2 = 0;
IN4 = 0;
8
while(1) {
} else {
stop();
delay(500);
turn_right();
delay(500);
TRIG = 0;
delay(2);
9
TRIG = 1;
delay(10);
TRIG = 0;
return 400;
return distance;
void move_forward() {
10
EN1 = 1; EN2 = 1; // Ensure Motors are Enabled
void move_backward() {
EN1 = 1; EN2 = 1;
void turn_left() {
EN1 = 1; EN2 = 1;
void turn_right() {
EN1 = 1; EN2 = 1;
void stop() {
11
IN1 = 0; IN2 = 0; IN3 = 0; IN4 = 0;
// Delay function
unsigned int i, j;
7. Software Used
- Keil µVision IDE
- Flash Magic
- Embedded C Language
- Proteus (optional)
8. Applications
The Obstacle Avoider Robotic Vehicle is a practical implementation of
embedded systems and autonomous robotics. Its simple design and
effective functionality make it suitable for a wide range of real-world
applications:
This robot can serve as a basic model for self-driving systems used in
modern autonomous vehicles. Although it operates on simple logic, the
12
principle of obstacle detection and path correction is fundamental to
autonomous driving technology.
2. Smart Wheelchairs
In hostile environments where it’s unsafe for humans to venture, robots like
these can be deployed to navigate through unknown terrain, avoiding
obstacles automatically. They can be equipped with cameras and sensors
for surveillance and reconnaissance missions.
13
Robots that can autonomously navigate a house without bumping into
furniture or walls can serve as mobile assistants — delivering items,
vacuuming, or even monitoring the environment for security.
9. Advantages
- Fully autonomous operation
- Low cost and power consumption
- Easy to build and modify
- Excellent educational project
10. Limitations
- Cannot detect transparent objects
- Limited pathfinding capability
- Basic obstacle avoidance without advanced logic
14
15