Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
14 views62 pages

Ahsan Sem 6 Black Book - Removed

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 62

A Project Report on

MINI TRAIN SYSTEM


A PROJECT SUBMITTED TO THE UNIVERSITY OF MUMBAI

Submitted in partial fulfillment of the


Requirements for the award of the Degree
of

BACHELOR OF SCIENCE IN INFORMATION TECHNOLOGY BY

Ahsanul Mondal Seat No-20


Under the esteemed guidance of
Mr ASHOK YADAV
Co-ordinator

REENA MEHTA COLLEGE


(Affiliated to University of Mumbai)
THANE-MAHARASHTRA-401107

2023-24
DEPARTMENTOFINFORMATIONTECHNOLOGY

1|Page
CERTIFICATE

This is to certify that the project entitled, “Mini Train System”, is bonafide work of Ahsanul Mondal:
bearing Seat No: 20 respectively submitted in partial
fulfilment of the requirements for the award of the degree of BACHELOR OF
SCIENCE in INFORMATION TECHNOLOGY from University of Mumbai

Internal Guide Coordinator Head of Department


(Prof. Ashok Yadav) (Prof. Tamanna Agrawal)

Principal External Examiner


(Dr Satinder Kaur Gujral)

Date: College Seal

2|Page
PROFORMA FOR THE APPROVAL PROJECT
PROPOSAL

(Note: All entries of the proforma of approval should be filled up with appropriate and complete information.
Incomplete proforma of approval in any respect will be summarily rejected.)

PNR No : …………………… Seat no: 20

1. Name of the Student: Ahsanul Mondal


2. Title of the Project: Mini Train System
3. Name of the Guide: Mr Ashok Yadav
4. Teaching experience of the Guide: 7 Years
5. Is this your first submission? Yes

Signature of the Student Signature of the Guide


Date: ………………… Date: ...........

3|Page
ROLES AND RESPONSIBILITY

I Ahsanul Mondal solely taking responsibility for My project named as "Mini train System” My
role in this project involves the development of the whole system from scratch.

A multitude of resources stands at the disposal of web developers, offering a rich tapestry of
guidance and tools to augment their skills and optimize the development process.
Authoritative online documentation from sources such as php.net, getbootstrap.com,
code.visualstudio.com/docs, and dev.mysql.com/doc serves as foundational references, providing
exhaustive insights into PHP, Bootstrap, Visual Studio Code, and MySQL, respectively.

Integrated Development Environments (IDEs) such as Visual Studio Code furnish powerful
features for coding, debugging, and managing PHP, HTML, CSS, and JavaScript.
Complementing these tools, local development servers like XAMPP or WAMP provide
indispensable environments for testing and debugging PHP applications. Within the design
realm, tools like Sketch, Figma, Adobe XD, and In Vision empower developers to create
detailed wireframes, prototypes, and visually appealing designs. Graphic resources and
icon libraries, such as Font Awesome, Flaticon, and Iconfinder, add a touch of creativity to
web interfaces.

4|Page
ABSTRACT

As we listen this Mini Train first think that come to our mind is “track” which the
train runs on right, basically yes this also requires track but not that heavy iron track that
normal local train has it requires a black or can say any solid color strip which is minimum 5
cm wide and barely thick. This device will follow the track and can do the tasks we want it to
do. This project will save millions of dollars for a big organization or companies and can save
unnecessary human interference for a task, and it can also save a ton of a time by doing tasks
in an organized way without taking breaks.
Once they are installed in a warehouse, they don’t even need maintenance or interference
from a human to work.
So, this is how it can be used by multiple companies who frequently moves heavy
boxes from one place to another and, they want it to be done quick so they can use their
precious time for doing some productive tasks that can help their company grow and expand.

6|Page
ACKNOWLEDGEMENT

I would like to express my sincere gratitude to all those who have contributed to the successful
development and implementation of the Mini Train System. This project has been
a collaborative effort, and without the support and dedication of various individuals and organizations it
would not have been possible.

First and foremost, I would like to thank my teachers and my project coordinator Mr.
Ashok Yadav.

Furthermore, I would like to acknowledge the contributions of our research partners and academic
advisors. Your valuable insights, feedback, and mentorship played a pivotal role in shaping the project's
direction And ensuring its success.

Last but not least, I want to express my gratitude to my colleagues, friends, and family for their
encouragement and support throughout this journey. Your words of encouragement and
understanding during the long hours of research and development were a constant source of
motivation.

In conclusion, this remote-operated motor pump system represents not only a technological
achievement but also a testament to the power of collaboration, innovation, and dedication.
Together, we have taken a significant step towards improving efficiency and convenience
in the world of motor pumps.

Thank you all for your invaluable contributions

7|Page
DECLARATION

I hereby declare that the project entitled, “Ahsanul Mondal ” done at RMC IT
LAB, has to been in any case duplicate to submit to any other university for the award of my degree. To
the best of my knowledge other than me, no one has submitted to any other university.

The project is done in partial fulfilment of the requirement for the award of
degree of BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY) to be
submitted as final semester project as part of our curriculum.

Ahsanul Mondal Roll No-20

8|Page
Table of Contents
Chapter 1 Introduction...........................................................................................................................11
1.1 Background..................................................................................................................................11
1.2 Objectives.....................................................................................................................................12
1.3 Purpose, Scope , Applicability (Feasibility Study)......................................................................12
1.3.1 PURPOSE.....................................................................................................................................12
1.3.2 SCOPE..........................................................................................................................................13
1.3.3 APPLICABILITY.........................................................................................................................14
Technical Feasibility Study............................................................................................................15
Chapter 2 Survey of Technologies.........................................................................................................17
Chapter 3 Requirements and Analysis...................................................................................................22
3.1 Problem Definition.......................................................................................................................22
3.2 Requirement Specification...........................................................................................................22
3.3 Planning and Scheduling..............................................................................................................23
3.4 Software and Hardware Requirement..........................................................................................25
Chapter 4 System Design.......................................................................................................................32
4.1 Basic Modules..............................................................................................................................32
4.2 Diagrams......................................................................................................................................32
4.2.1 Circuit Diagram /Block Diagram..........................................................................................32
4.2.2 Data Flow Diagram...............................................................................................................33
4.2.3 Use Case Diagram.................................................................................................................34
4.2.4 Sequence Diagram.................................................................................................................35
4.2.5 Activity Diagram...................................................................................................................36
4.2.6 Component Diagram.............................................................................................................37
4.2.7 Event Table...........................................................................................................................37
4.2.8 Test Cases Design.................................................................................................................38
Chapter 5 Implementation and Testing..................................................................................................39
5.1 Implementation Approaches........................................................................................................39
5.2 Coding Details and Code Efficiency............................................................................................40
5.3 Testing approaches.......................................................................................................................44
Chapter 6 Results and Discussion..........................................................................................................44
6.1 Test Reports.................................................................................................................................45
9|Page
Chapter 7 Conclusion.............................................................................................................................48
7.1 Conclusion....................................................................................................................................48
7.3 Future Scope of the Project..........................................................................................................48

References..............................................................................................................................................49
Website Used.........................................................................................................................................49
Plagiarism Report...................................................................................................................................50

10 | P a g e
11 | P a g e
List of Tables

Table no Table Name Pages No

1 Event Table 39

2 Test Cases Design Table 39

List of Figures

Fig No. Figure Name


Showing Congested Warehouse
Fig 1
News of Worker Injuries
Fig 2
Arduino UNO
Fig 3
Android Controlling Car
Fig 4
Arduino Ide
Fig 5
Gantt Chart
Fig 6
PERT Chart
Fig 7
Arduino UNO with ATmega328P microcontroller
Fig 8

WIFI ESP8266 module


Fig 9
Motor DriverL289n
Fig 10
DC Motor
Fig 11

12 | P a g e
IR Sensor
Fig 12
LDR Sensor
Fig 13
LEDs
Fig 14
Jumper Wire
Fig 15
Robot Wheels
Fig 16

13 | P a g e
Chapter 1 Introduction

1.1 Background
In today’s world where time is the most important resource no company would like to
waste it. So here comes our project mini train aka line following robot with extra capabilities.
Every human wants his work to be done fast and accurate so we started developing some ICs,
circuits camera to help us around to complete the work. If we put hundreds and thousands of
ICs, Transistor Camera and many other IOT things together we call it a ROBOT. A Robot is
a Machine which is made by human which can do a single task or multiple task once we give
the command to do so. A Robot is also any machine which is completely automatic, i.e., it
starts on its own, decides its own way of work and stops on its own. It is actually a replica of
human being, which has been designed to ease human burden. It can be controlled
pneumatically or using hydraulic ways or using the simple electronic control ways. Once
command is given to do a certain job or task is assigned, they will complete it “no matter
what”. Now, you must be thinking that’s actually nice we should make one, but wait the
problem starts here itself I repeat “Once Command is given to do a certain job or task is
assigned, they will complete it no matter what comes there way”.Even Humans do so we
complete the task by hook or by crook, it must be confusing right let me try to explain it with
an example
If we want to build road buildings for us and in that place, we already have some trees or say
animals stay. My question is now what will we do?
We are assigned with a task but there are problems are we going to cancel it.
No way we will cut those trees, move animals and we’ll start building our roads and all. So
What do we see here were the problems trees? animals?
No problems was we want to do something and somethings where in between so we cleared
them out we don’t have hold grudges on trees or animals its simply they came our way. This
same goes for robot if they want to do something and by any chance humans come in there
way, they clear us out as we clear trees and animals.
So, that’s the reason we should make robots carefully without error, there was one
author who will help us out- Isaac Asimov
Any robot is built on 3 basic laws:
• A robot should not harm the human being directly or indirectly.
• A robot should obey human orders unless and until it violates the first law.
• A robot should protect its own existence provided the 1st two laws are not violated.

14 | P a g e
15 | P a g e
1.2 Objectives
Now let’s lets so our Mini Train or Line Following Robot Can Help Humans and
what his objective is.
Robots can be fixed robots or mobile robots. Mobile Robots are robots with a mobile
base which makes the robot move freely in the environment. One of the advanced mobile
robots is the Line Follower Robot. It is basically a robot which follows a particular path or
trajectory and decides its own course of action which interacts with obstacle. The path can be
a black line on the white floor (visible) or a magnetic field (invisible). Its applications start
from basic domestic uses to industrial uses, etc. The present condition in industry is they are
carrying the parcels or materials one place to another place using the crane system.
Sometimes lifting of big weights at that time may cause the breakage of lifting materials and
will be cause damage to the parcels also. The line following robots is commonly used for
carry children through shopping malls, homes, entertainment places, industries. The use of
line following robotic vehicle is transport the materials from one place to another place in
the industries. This robot movement completely depends on the track. The robot can do
anything you set them to do. Like in factories all they have to do with making their products
is make the robot.
 Saves Human Labor.
 Saves Time by Speeding.
 Easy addons and upgrade.
 Works on battery.
 Humans Friendly

1.3 Purpose, Scope , Applicability (Feasibility Study)

1.3.1 PURPOSE

16 | P a g e
Line following robots have been a part of many industrial and commercial
applications for a long time. The idea of using this kind of an approach for motional
dynamics is due to the simple construction and programming. These robots can be configured
conveniently for any tracks inside a factory, commercial space and even hospitals. The usage
of line following robots on factory floors is an integral part of automating the material
handling and unfinished goods. The hardware of the robot consists of the robot body, motors,
sensors and control boards while the software includes the program code, controller design,
sensor parameters and method design.
Logistics and supply chain management has become a crucial part of the entire
manufacturing operational timeline. But we often tend to forget the logistics dealt within the
factory where products are manufactured, tested and packaged. Traditionally, jib cranes,
conveyor belts, overhead cranes and forklifts are used to transfer material or products
between different production and machining operations. Most of the methods are regulated
and inspected manually. Currently, with Industry 4.0 at its peak, autonomous technologies are
used in every aspect of product development, logistics and management. In modern
manufacturing, the ultimate aim is to reduce the cycle time and enable the possibility of
manufacturing more complex and customizable products.
Most defects in manufacturing are caused due to processing errors carried out by
individuals who fail to follow operating schedules and instructions, which generally happen
when companies fail to fix an established set of rules. Most manufacturing processes consist
of more than one operation in the assembly line which makes the transfer of unfinished jobs
difficult, complex and even unsafe due to high temperatures and heavy payloads. Owing to
the concerns and risks arising due to manual errors and delay between two or more
operations, the methodology of “lights-out manufacturing” has been entrenched.

1.3.2 SCOPE

We all know warehouses of big giant companies are huge, to give you an idea 7 to 8
Cricket Stadium will fit in one warehouse of amazon located at Bhiwandi. So, travelling
inside that big space is a hectic process right. People or Workers are not going to walk they
simple use electric small vehicle that human drives and carry loads from one place to another.
Humans already have a bad history with driving so accidents also take place in this
warehouse causing injuries to workers, damage packages, vehicle causing delay in the overall

17 | P a g e
process.

18 | P a g e
Fig 1: Showing Congested Warehouse
This all can be avoid by installing mini train system in the warehouse. Once they are
running all the warehouse, they can speed up to 30 to 50 mph communicating with each other
avoiding collision and saving time

1.3.3 APPLICABILITY

Human Life Matters so does worker. While working in the warehouses many workers
get injured. So, let’s make a better place for this workers by building our robot.

19 | P a g e
Line tracking is an autonomous robot which tracks either black line in white area or
white line in black area. Robot must be able to detect particular line and keep following it.
For special situations such as cross over’s where robot can have more than one path which
can be followed, predefined path must be followed by the robot. Line following is a task in
which robot has to follow the line. It must be capable of taking various degrees of turns to
follow the curved lines also. The Line following Robot moves to follow a line drawn on the
floor. This Robot tracks the black line which is drawn over the white surface .The line sensors
are used to sense the line. When the signal falls on the white surface, it gets reflected and if it
falls on the black surface, it is not reflected this principle is used to scan the Lines for the
Robot.
The Robot should be capable of taking various degrees of turns and must be
insensitive to environmental factors such as lighting and noise.

Technical Feasibility Study

Applications of Mini Train Robot:-

20 | P a g e
21 | P a g e
 Industrial Applications:
These robots can be used as automated equipment
carriers in industries replacing traditional conveyer belts.

 Automobile applications:
These robots can also be used as automatic cars
running on roads with embedded magnets.

 Domestic applications:
These can also be used at homes for domestic purposes like floor cleaning
etc.

 Guidance applications:
These can be used in public places like shopping
malls, museums etc. to provide path guidance.

22 | P a g e
Chapter 2 Survey of Technologies

 Why Arduino Uno?

There are many other microcontrollers and microcontroller platforms available for
physical computing. Parallax Basic Stamp, Net media’s BX-24, Phi gets, MIT’s Handy board,
and lots of others offer similar functionality. of these tools take the messy details of
microcontroller programming and wrap it up in an easy-to-use package. Arduino also
simplifies the method of working with microcontrollers, but it offers some advantage for
teachers, students, and interested amateurs over other systems:

• Inexpensive – Arduino Uno boards are relatively inexpensive compared to other


microcontroller platforms. the smallest amount expensive version of the Arduino Uno
module is assembled by hand, and even the pre-assembled Arduino Uno modules cost but
$50
• Cross-platform - The Arduino Uno software runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows.
• Simple, clear programming environment - The Arduino Uno programming environment is
easy-to-use for beginners, yet flexible enough for advanced users to require advantage of
moreover. For teachers, it’s conveniently supported the Processing programming
environment, so students learning to program in this environment are conversant in the
planning and feel of Arduino Uno.
23 | P a g e
24 | P a g e
• Open source and extensible software and hardware - The Arduino Uno software is
published as open-source tools, available for extension by experienced programmers. The
language is expanded through C++ libraries, and other people desperate to understand the
technical details can make the leap from Arduino to the AVR C artificial language on which
it’s based. Similarly, you'll be able to add AVR-C code directly into your Arduino programs
if you wish to.

 Why should we use Wi-Fi?


Even if it is a line following robot but sometimes human wants to take control of it for
some reason. So, we provide a facility where the line following robot will not follow any line
and will be controlled by the device just like remote control car just here it will need to be
connected to network. Wi-Fi has a long range and once it connected to a network it can be
controlled by sitting a corner of a warehouse to the other corner of the warehouse.

Fig 4: Android Controlling Car

The Wi-Fi Alliance defines Wi-Fi as any "wireless local area network" (WLAN)
product supported the Institute of Electrical and Electronics Engineers’ (IEEE) 802.11
standards”. However, the term "Wi-Fi" is employed generally English as a synonym for
"WLAN" since most recent WLANs are supported these standards. "Wi-Fi" may be a
trademark of the Wi-Fi Alliance. The "Wi-Fi CERTI- FIED" trademark can only be
employed by Wi-Fi products that successfully complete Wi-Fi Alliance interoperability
certification testing.
Many devices can use Wi-Fi, e.g., personal computers, video-game consoles,
smartphones, digital cameras, tablet computers and digital audio players. These can connect

25 | P a g e
with a network resource like the net via a wireless network access point. Such an access point
(or hotspot) contains a range of about 20 meters (66 feet) indoors and a greater range
outdoors. Hotspot coverage can comprise a vicinity as small as one room with walls that
block radio waves, or as large as many square kilometres achieved by using multiple
overlapping access points. Depiction of a tool sending information wirelessly to a different
device, both connected to the local network, to print a document.
Wi-Fi is less secure than wired connections, like Ethernet, because an intruder doesn't
need a physical connection. sites that use TLS are secure, but unencrypted internet access can
easily be detected by intruders. thanks to this, Wi-Fi has adopted various encryption
technologies. the first encryption WEP proved easy to interrupt. Higher quality protocols
(WPA, WPA2) were added later. An optional feature added in 2007, called Wi-Fi Protected
Setup (WPS), had a significant flaw that allowed an attacker to recover the router’s password.
The Wi-Fi Alliance has since updated its test plan and certification program to confirm all
newly certified devices resist attacks.
How can we overcome those problem with the help of Wi-Fi?
 Wi-Fi connection is used to keep track of robots.
 This gives the high security and views of all the working robots.
 It also provides much more reliability of operation working range.
 Due to Wi-Fi robot can be controlled from any part of the world.

Smartphone Controlled Robot


Robots are with us for fewer than 50 years, but the thought of inanimate creations
represents a sincere bid whose success is far older. But real robots didn't acquire existence
until 1950s and 60s. With the growing invention of transistors and integrated circuits,
industry added brains to the brawn of already existing machines. In 1959, researchers
illustrated the likelihood of robotic manufacturing after they unveiled a computer-controlled
miller.
Wi-Fi Controlled Robot, mean a robot car that's controlled over a Wi-Fi Network. The
Esp- 8266 Module is chargeable for connecting to the Wi-Fi Network and acting as a server.

 Input Hardware
 Optical Sensors:
The robot uses photodiode sensors to sense the line, an array
26 | P a g e
27 | P a g e
of four IR- LEDs Photodiode sensors, facing the ground used in this setup. An analog signal
is obtained in output, depends on the amount of light reflected, which is provided to the
comparator to produce 0s and 1s which are then fed to the Arduino.

 Output Hardware
 DC Motor:
Motor is a device that converts any form of energy into
mechanical energy or imparts motion. In constructing a robot, motor usually plays an
important role by giving movement to the robot. There are generally three basic types of
motor, DC motor, even servomotor and stepper motor, which are always being used in
building a robot.
DC motors are most easy for controlling. One DC motor has two signals for its
operation. Reversing the polarity of the power supply across it can change the direction
required. Speed can be varied by varying the voltage across motor.

Pros:
 It can be used as a movable system, It can be controlled remotely.
 It does not require Manpower.
 Human injuries can be avoided.
 Human can takeover driving if required.

Cons:
 They have to track a line so if they turn too sharply or drift and lose the track they do not
recover.
 Can only track an angle based on minimum angle of mechanical structure so will lose track if
the angle of the line is too tight.
 Sensor Track a black line 1 or 2 inches in width on a white surface 4. Sensor are simple
robots with an additional sensor placed on them.
 Needs a path to run either white or black since the IR rays should reflect form the particular
path.
 Instability on different or hard angle.

 Software Required
For Coding and Uploading the Sketch, the Arduino Software is Used
28 | P a g e
29 | P a g e
30 | P a g e
Chapter 3 Requirements and Analysis

3.1 Problem Definition


In the industry carriers are required to carry products from one manufacturing plant to
another which are usually in different buildings or separate blocks. Conventionally, carts or
trucks were used with human drivers. Unreliability and inefficiency in this part of the
assembly line formed the weakest link. The project is to automate this sector, using carts to
follow a line instead of laying railway tracks which are both costly and an inconvenience.
Line tracking is an autonomous robot which tracks either black line in white area or
white line in black area. Robot must be able to detect line and keep following it. For special
situations such as cross over’s where robot can have more than one path which can be
followed, predefined path must be followed by the robot. Line following is a task in which
robot must follow the line. It must be capable of taking various degrees of turns to follow the
curved lines also. The Line following Robot moves to follow a line drawn on the floor. This
Robot tracks the black line which is drawn over the white surface. The line sensors are used
to sense the line. When the signal falls on the white surface, it gets reflected and if it falls on
the black surface, it is not reflected this principle is used to scan the Lines for the Robot.
The Robot should be capable of taking various degrees of turns and must be
insensitive to environmental factors such as lighting and noise.

3.2 Requirement Specification


This project is a working model of the highly efficient Robot which can be used for
various purposes. It uses a Wi-Fi technology for controlling robot car through an Android
Application if required and a ATmega328P microcontroller embedded in Arduino board for

31 | P a g e
further processing. This Robot can also be used at places like Hospitals, shopping malls,
Apartments for transporting things from one place to another. The basic methodology for this
project is designed so that this robot can be available to everyone who needs it and can be
used anywhere by anyone. The main principle of this project is to make the vehicle follow the
line. By using Wi-Fi, one should be able to control the Robot if he/she don’t have to follow
the regular track and wants to do a different task. The Robot is mostly dependent of its
microcontroller i.e., ATmega328P embedded on ARDUINO Uno board.
Basically, it contains some of the hardware components.
1. ARDUINO Uno Board with ATmega328P microcontroller
2. Wi-Fi -esp8266 module
3. Motor Driver
4. DC gear Motor
5. IR Sensor / LDR
6. LED
7. Robot Wheels

3.3 Planning and Scheduling


To successfully complete our project, it was necessary for us to learn various
technologies.
A Gantt chart may be a sort of chart hat illustrates a project schedule. This chart lists
the tasks to be performed on the vertical axis, and time intervals on the horizontal axis. The
width of the horizontal bars within the graph shows the duration of every activity. Gantt
charts illustrate the beginning and finish dates of the terminal elements and summary
elements of a project. Terminal elements and summary elements constitute the work
breakdown structure of
32 | P a g e
33 | P a g e
the project. Modern Gantt charts also show the dependency (i.e., precedence network)
relationships between activities. Gantt charts will be accustomed show current schedule status
using percent-complete shadings and a vertical "TODAY" line. Gantt charts are sometimes
equated with bar charts.
Gantt charts are usually created initially using an early start time approach, where each task is
scheduled to start out immediately when its prerequisites are complete. This method
maximizes the float time available for all tasks.
Gantt charts are often used for scheduling generic resources, so yet as their use in
project management, they'll even be utilized in scheduling production processes and
employee roistering. within the latter context, they will even be referred to as time bar
schedules.
 GANTT CHART: -

Fig 6: Gantt Chart

 PERT CHART: -
A PERT chart could be a project management tool that has a graphical representation
of a project's timeline. The Program Evaluation Review Technique (PERT) breaks down the
individual tasks of a project for analysis.
A PERT chart presents a graphic illustration of a project as a network diagram
consisting of numbered nodes linked by labeled vectors. The direction of the arrows on the
lines indicates the sequence of tasks.
Once the PERT chart is drawn, project managers can use it to develop a realistic time
frame for the project:
 This can be done by finding the longest path, based on the estimations entered. This path

34 | P a g e
should include the tasks that take the longest to complete.

35 | P a g e
 By adding together, the time it takes to complete each task, an estimation will be provided
for how long the entire project will take.
 Once this is done, the PERT chart can then be used to adjust the times if circumstances
change or to ensure the project is finished by its designated deadline.

Fig 7: PERT Chart

3.4 Software and Hardware Requirement

Software Requirement:
We are using Arduino IDE Software to write and upload code in Arduino and we will
be using blink app to control our Car using Wi-Fi.
Both of this Software are free and compatible on almost all the latest devices.

Hardware Requirement:
1. ARDUINO Uno Board with ATmega328P microcontroller
2. Wi-Fi -esp8266 module
3. Motor DriverL298n
4. DC gear Motor
5. IR Sensor / LDR

36 | P a g e
6. LED
7. Robot Wheels
8. Jumper wire

1. ARDUINO Uno Board with ATmega328P microcontroller:


The Arduino Uno is an open-source microcontroller board supported the Microchip
ATmega328P microcontroller and developed by Arduino.cc. The board is provided with sets
of digital and analog input/output (I/O) pins that will be interfaced to numerous expansion
boards (shields) and other circuits. The board has 14 digital I/O pins (six capable of PWM
output), 6 analog I/O pins, and is programmable with the Arduino IDE (Integrated
Development Environment), via a kind B USB cable. It are often powered by the USB cable

or by an external 9-volt battery, though it accepts voltages between 7 and 20 volts. it's like the
Arduino Nano and Leonardo. The hardware reference design is distributed under an
imaginative Commons Attribution Share-Alike 2.5 license and is out there on the Arduino
website. Layout and production files for a few versions of the hardware are available.

The word "uno" means "one" in Italian and was chosen to mark the initial release of Arduino
Software the Uno board is that the first during a series of USB-based Arduino boards, it and
version 1.0 of the Arduino IDE were the reference. versions of Arduino, which have now
evolved to newer releases. The ATmega328 on the board comes preprogramed with a
bootloader that enables uploading new code to that without the employment of an external
hardware programmer.

2. Wi-Fi -esp8266 module:

37 | P a g e
The Arduino Uno Wi-Fi is an Arduino Uno with an integrated Wi-Fi module The
ESP8266WiFi Module could be a self-contained SoC with integrated TCP/IP protocol stack
which will give access to your Wi-Fi network. One useful feature of Uno Wi-Fi is support for
OTA (over-the-air) programming, either for transfer of Arduino sketches or Wi-Fi firmware.

Fig 9: WIFI ESP8266 module


The Arduino Uno Wi-Fi is programmed using the Arduino Software (IDE), our
Integrated Development Environment common to all or any our boards and running both
online and offline. For more information on the way to start with the Arduino Software visit
the Getting Started page.

3. Motor DriverL298n
One of the best and cheap thanks to control DC motors is to interface L298N Motor
Driver with Arduino. It can control both speed and spinning direction of two DC motors.

Fig 10: Motor DriverL289


The L298N may be a dual-channel H-Bridge motor driver capable of driving a pair of
DC motors. which means it can individually draw near to 2 motors making it ideal for

38 | P a g e
building

39 | P a g e
two-wheel robot platforms.

4. DC gear Motor

A Direct Current (DC) motor may be a rotating device that converts electrical energy,
of power, into energy. An Inductor (coil) inside the DC motor produces a field that makes
motion as DC voltage is applied to its terminal.
DC motors were the primary style of motor widely used, as they might be powered from
existing direct-current lighting power distribution systems.

Fig 11: DC Motor


A DC Now after seeing the image you may recall, when we were small and at some point
after getting bored by the toy we use to open it and almost 70% of the toys which I had has
this DC Motor inside and then connecting it to battery and seeing it spinning was some next
level of satisfaction. It’s the same Motor that we are going to use in this project to.

5. IR Sensor / LDR
Infrared Sensors are sensors that emits light which is not visible to the human eye to sense
the objects in the surrounding. They are part of our day-to-day life e.g. TV remote.

40 | P a g e
Fig 12: IR Sensor
As You can see in the above Fig IR Sensor has two main LEDs IR Receiver and IR
Emitter.
IR Emitter sends the light in the surrounding, when light is reflected back from a
surface IR Receiver receives it and do the following task.
A Light Dependent Resistor (LDR) is also called a photoresistor or a cadmium sulfide
(CdS) cell. It is also called a photoconductor. It is basically a photocell that works on the
principle of photoconductivity. The passive component is basically a resistor whose
resistance value decreases when the intensity of light decreases
(We’ll use LDR/IR depends on the availability both does the same task and gives the
same output)

Fig 13: LDR Sensor

41 | P a g e
6. LEDs
A light-emitting diode (LED) is a semiconductor light source that emits light
when current flows through it. Electrons in the semiconductor recombine with electron holes,
releasing energy in the form of photons. The color of the light (corresponding to the energy of
the photons) is determined by the energy required for electrons to cross the band gap of the
semiconductor. White light is obtained by using multiple semiconductors or a layer of light-
emitting phosphor on the semiconductor device.

Fig 14: LEDs


These are used in our project for decoration and also, they can used with LDR if
required to sense some objects. LEDs have many advantages over incandescent light sources,
including lower power consumption, longer lifetime, improved physical robustness, smaller
size, and faster switching. In exchange for these generally favorable attributes, disadvantages
of LEDs include electrical limitations to low voltage and generally to DC (not AC) power,
inability to provide steady illumination from a pulsing DC or an AC electrical supply source,
and lesser maximum operating temperature and storage temperature. In contrast to LEDs,
incandescent lamps can be made to intrinsically run at virtually any supply voltage, can
utilize either AC or DC current interchangeably, and will provide steady illumination when
powered by AC or pulsing DC even at a frequency as low as 50 Hz. LEDs usually need
electronic support components to function, while an incandescent bulb can and usually does
operate directly from an unregulated DC or AC power source.

7. Jumper wire

42 | P a g e
These are normal wire with a connector pin already attached at the end makes it easy
to use also they are short length. They can be used as a extension port if we don’t have space
near Arduino to connect things. As connector pin of both male and female already attached to
it they are 100% reusable so we don’t waste time soldering or desoldering we can connect try
things out and run our project.

Fig 15: Jumper Wire

8. Robot Wheels
To make an robot, we requires many many components and one from all of them is wheels
this will move our car or robot from one place to another with ease. As humans have legs to
move same way wheels are legs for robot. This wheels will make contact with ground and
will also them him stand and balance on its own.
Fig 16: Robot Wheels

43 | P a g e
Chapter 4 System Design

4.1 Basic Modules


o The robot is capable to follow any curve and cycle.
o The body weight and wheels radius have effects on speed too.
o The weight of the robot can be lighter.
o The designed robot has sensors on the bottom to detect the line.
o Microcontroller ATmega328p and Motor DriverL298n are used to control the direction and
speed of the motor.
o Not only the robot can move automatically but, also, we can control it manually with the help
of Wi-Fi.

4.2 Diagrams
4.2.1 Circuit Diagram /Block Diagram

Dia 1: Circuit Diagram

44 | P a g e
4.2.2 Data Flow Diagram

Dia 2: Data Flow Diagram

45 | P a g e
4.2.3 Use Case Diagram

Dia 3: Use Case Diagram

46 | P a g e
4.2.4 Sequence Diagram

Dia 4: Sequence Diagram

47 | P a g e
4.2.5 Activity Diagram

Dia 5: Activity Diagram

48 | P a g e
4.2.6 Component Diagram

Dia 6: Component Diagram

4.2.7 Event Table


No. Event Trigger Activity Source Response

49 | P a g e
1
Starts Sensing Starts
Turns On Motors, Sensors Automatic
for Track Following
Track
2 Wi-Fi Wi-Fi Enable the Move as User
connectivity connectivity custom control User Wants

Table 1: Event Table

4.2.8 Test Cases Design


Test Case Input Expected Output

Wi-Fi connection with Esp8266 Connected to Wi-Fi module.


Wi-Fi connectivity module.

Controlling Robot Movement &


Dedicated app used in
Robot controls Direction
Smartphone

Proper functioning of the


Motor driver Connection with the batteries motors.

Table 2: Test Cases Design Table

50 | P a g e
Chapter 5 Implementation and Testing

5.1 Implementation Approaches

51 | P a g e
5.2 Coding Details and Code Efficiency:

Train Controls and Track

int IR1=4; //Right IR sensor


int IR2=2; //Left IR Sensor
const int trig = 7; // Ultrasonic Code
const int echo = 6;
const int in1 = 9;
const int in2 = 8;
const int in3 = 11 ;
const int in4 = 10;
int enB = 5;
int enA = 3;

void setup()
{
pinMode(trig, OUTPUT);
pinMode(echo, INPUT);
pinMode (in1, OUTPUT);
pinMode (in2, OUTPUT);
pinMode (in3, OUTPUT);
pinMode (in4, OUTPUT);
pinMode(enA, OUTPUT);
pinMode(enB, OUTPUT);
pinMode(IR1,INPUT);
pinMode(IR2,INPUT);
}
long dura, dis;

void loop()
{
digitalWrite(trig, LOW);

52 | P a g e
delayMicroseconds(2);
digitalWrite(trig, HIGH);
delayMicroseconds(10);
digitalWrite(trig, LOW);
analogWrite(enA, 200);
analogWrite(enB, 200);
dura = pulseIn(echo, HIGH);
dis = dura/58.2;
if(digitalRead(IR1)==HIGH && digitalRead(IR2)==HIGH && dis<30) //IR not on black
line or obstacle ahead
{
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
digitalWrite(in4, LOW);
digitalWrite(in3, LOW);
delay(3000);
}
else if(digitalRead(IR1)==LOW && digitalRead(IR2)==HIGH && dis>30)
{
digitalWrite(in1, HIGH);
digitalWrite(in2, LOW);
digitalWrite(in3, LOW);
digitalWrite(in4, HIGH);
delay(100);
}
else if(digitalRead(IR1)==HIGH && digitalRead(IR2)==LOW && dis>30)
{
digitalWrite(in1, LOW);
digitalWrite(in2, HIGH);
digitalWrite(in3, HIGH);
digitalWrite(in4, LOW);
delay(100);
}
else
{

53 | P a g e
digitalWrite(in1, LOW);
digitalWrite(in2, LOW);
digitalWrite(in4, LOW);
digitalWrite(in3, LOW);
}
delay(10);
}

Wifi code:
#define REMOTEXY_MODE ESP8266_HARDSERIAL_POINT

#include <RemoteXY.h>

// RemoteXY connection settings


#define REMOTEXY_SERIAL
Serial
#define REMOTEXY_SERIAL_SPEED 57600
#define REMOTEXY_WIFI_SSID "Mini Train"
#define REMOTEXY_WIFI_PASSWORD "987654321"
#define REMOTEXY_SERVER_PORT 6377

// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 19 bytes
{ 255,2,0,0,0,12,0,16,123,0,5,47,27,12,41,41,1,16,55 };

// this structure defines all the variables and events of your control interface
struct {

// input variables
int8_t joystick_1_x; // from -100 to 100
int8_t joystick_1_y; // from -100 to 100

54 | P a g e
// other variable

55 | P a g e
uint8_t connect_flag; // =1 if wire connected, else =0
}

56 | P a g e
5.3 Testing approaches

Test Case Input Expected Output

Wi-Fi connection Connected to Wi-Fi module.


Wi-Fi connectivity with Esp8266
module.

Controlling Robot
Dedicated app used in
Robot controls Movement &
Smartphone
Direction

Proper functioning of the


Motor driver Connection with the batteries motors.

Chapter 6 Results and Discussion

57 | P a g e
6.1 Test Reports
Mini Train system is an IoT based project, where Motor Driver is used to control both speed
and direction of the Mini train,
Integrated with ESP8266 WiFi is used for the operation of Mini Train . The system can be
controlled by using a mobile phone.
IR sensors placed at the bottom of the Mini Train so it can detect the correct path
(black track) and move accordingly.
Ultrasonic sensor will help the mini train to detect any obstacle in the path so the train can
prevent accident.

Photos of Working Model:

58 | P a g e
59 | P a g e
60 | P a g e
Chapter 7 Conclusion

7.1 Conclusion

The Mini Train System works Great on Track Which has solid color and creates a
contrast to background. This also works perfectly with manual control. Manual Control
gives full control of the train like speed, direction etc. The Whole demo train can carry
bogies i.e. load of up to 500g-800g without loosing traction to the ground.
We can also control the train by ourself using android mobile device with the help of
wifi connectivity.

7.3 Future Scope of the Project


Nowadays Robot is needed in almost every field. It could be a great solution to various
problems or situation where human can fill short. These robots can be configured
conveniently for any tracks inside a factory, commercial space and even hospitals. The usage
of line following robots on factory floors is an integral part of automating the material
handling and unfinished goods.

61 | P a g e
References

A Arefín, Utsho & Hoque, Azizul & Afrin, Sazia & Hossain, Mir. (2015).
Design & Implementation of Line Tracking Robot.
10.13140/RG.2.1.2632.4000.
Kumar Jha, Sujeet & Karn, Manish & Khan, Ahmed. (2016). PROJECT REPORT LINE
FOLLOWING ROBOT. 10.13140/RG.2.2.21215.7952

Website Used
https://www.wired.com/story/wired-guide-to-robots/
https://www.elprocus.com/line-follower-robot-basics-controlling/
https://iopscience.iop.org/article/10.1088/1757-
899X/1012/1/012008/pdf
https://www.cnbc.com/2021/08/29/amazons-biggest-hardest-to-solveesg-issue-
may-be-its-own-workers.html
https://en.wikipedia.org/wiki/Light-emitting_diode/

62 | P a g e
Plagiarism Report

63 | P a g e

You might also like