0% found this document useful (0 votes)
26 views8 pages

Bluetooth-Controlled Line-Following Robot

The document describes the design of a robot that can avoid obstacles using ultrasonic sensors, follow a black line using infrared sensors, and be controlled via Bluetooth using a smartphone app. An Arduino microcontroller interfaces with and controls the ultrasonic sensor, infrared sensors, motor drivers and Bluetooth module. The robot is designed to navigate autonomously while avoiding obstacles and following a predetermined path.

Uploaded by

SAAD ALI
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views8 pages

Bluetooth-Controlled Line-Following Robot

The document describes the design of a robot that can avoid obstacles using ultrasonic sensors, follow a black line using infrared sensors, and be controlled via Bluetooth using a smartphone app. An Arduino microcontroller interfaces with and controls the ultrasonic sensor, infrared sensors, motor drivers and Bluetooth module. The robot is designed to navigate autonomously while avoiding obstacles and following a predetermined path.

Uploaded by

SAAD ALI
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Introduction:

Goal of project is to create a mobile app robot controlled via Bluetooth. An ultrasonic sensor
helps the robot avoid obstructions. Robot can easily avoid all the obstacles that come in its path.
The black line is also tracked by infrared sensors. No matter which way it moves, the robot stays
on the solid black line. This is done by using two infrared sensors interfaced with Arduino
microcontroller. Using a Bluetooth smartphone app, a user may operate the robot's brain, the
Arduino. The robot's microcontroller is controlled via programmed written for the Arduino IDE.
Bluetooth-enabled robots may be controlled using a smartphone app. The Motor drive L293D is
used to drive two DC motors, which are then connected in series. Arduino microcontrollers and
Bluetooth smartphone apps will be used to make a robot that avoids obstacles and follows a
predetermined path.

The responsibility of mine is to interface all the modules and sensors with Arduino
Microcontroller. Ultrasonic is used for obstacle avoidance which is being interfaced with
Arduino. Infrared sensor is used for Line following purpose and this is also interfaced with
Arduino to perform the operation. L293D motor driver is also interfaced with Arduino to drive
DC motors and to control speed of motors.

Design Functionality:
An ultrasonic sensor is interfaced to the robot using an Arduino microcontroller in order to assist
it avoid obstructions, as shown. The propagation time is measured using an ultrasonic sensor. As
the items reflect the high-frequency sound waves, they may be detected and avoided. Using an
infrared sensor and an Arduino, a black line on a white backdrop is followed (additional
function). Following a black line on a white backdrop, the robot is programmed to do so. The kit
comes with an LED infrared emitter and a receiver (Phototransistor). The Bluetooth smartphone
app is required in order to operate the robot over Bluetooth. Along with the ultrasonic sensor on
the robot, Arduino is equipped with a Bluetooth module and an infrared module. L293D motor
drivers are used to drive the motors.
The overall groups are broken down into following tasks and every member is responsible for
own task.
1. Ultrasonic sensor (For obstacle avoider)
2. Infrared sensor (For Line follower)
3. Motors driving (Motor drivers L293D for driving DC motors)
4. Arduino Microcontroller (Arduino microcontroller for controlling overall Robot)
5. Software - Arduino IDE (Arduino software for programming purpose)
Figure 1: Project Diagram

Responsibility:
The responsibility of mine is to interface all the modules and sensors with Arduino
Microcontroller. Ultrasonic is used for obstacle avoidance which is being interfaced with
Arduino. Infrared sensor is used for Line following purpose and this is also interfaced with
Arduino to perform the operation. L293D motor driver is also interfaced with Arduino to drive
DC motors and to control speed of motors.

How Arduino works?


The ATMEL AVR microprocessor is at the basis of the Arduino board. The Arduino IDE allows
you to programmed microcontrollers with the computer program available on the Arduino IDE
itself. Using these instructions, you may program the board to communicate with the circuits.
Aside from Atmega168, Atmega328, and ARM microcontrollers, there are other 32-bit Atmel
microcontrollers and Intel microcontrollers that may be utilized on Arduino platforms.
Various peripherals can be connected to the Arduino microcontroller through its communication
and input/output ports. In order to handle the data coming from these peripherals, the
microcontroller will oversee transmitting them.
For our own programming needs, we may use Arduino's programming language-based
development environment (IDE), which includes tools to transfer firmware to microcontrollers
and a bootloader that is run on the board. The software and programming language have a simple
and easy-to-use design.
Arduino Interfacing:
For this project all the sensors, modules and drivers are interfaced with Arduino UNO
microcontroller. Arduino is then then programmed according to the desired function to be
performed and after uploading the code from computer to Arduino microcontroller and
interfacing of all the desired components with the Arduino pin, it performs the desire operation.
Ultrasonic is used for obstacle avoidance which is being interfaced with Arduino. Infrared sensor
is used for Line following purpose and this is also interfaced with Arduino to perform the
operation. L293D motor driver is also interfaced with Arduino to drive DC motors and to control
speed of motors.
Design Research:
ATmega328P microprocessor is used in the Arduino Uno board. Six analogue ports, a 16 MHz
quartz crystal, a USB connector, a power jack, an ICSP header, and the reset button round out
the board's features. A USB cable or an AC-to-DC adapter or a battery may be used to power the
microcontroller and have it up and running in a matter of minutes. In the worst-case situation,
you can just buy a new chip for a few bucks and start over. To commemorate the introduction of
Arduino Software (IDE) 1.0, the Italian word "uno" (meaning one) was selected. When it comes
to Arduino, the Uno board and the IDE version 1.0 were the starting points, which have since
grown into later generations. It is the first in a sequence of USB Arduino microcontroller and the
platform's standard model; for a complete list of current, historical, and obsolete boards check
the list on the Arduino website. The L298 is a 15-lead Multi-watt and PowerSO20 packaging
integrated monolithic circuit. Inductive loads like as relays, solenoids, DC and stepper motors,
may be powered by this voltage level, large current dual full-bridge driver. Disable the device
independently of input signals through two separate enable inputs (Nelson Rai, 2016).

The difficulty of obstacle avoidance is a major consideration in the design of robotic systems.
Using this technique, robots may traverse uncharted terrain without fear of being hit by any
objects. Construction of an Obstacle Avoidance Robot was the focus of this project. Using three
ultrasonic distance sensors, it is a robot car powered by an Arduino microcontroller. It was
decided that Systems and Arduino code would be utilized to write code for microcontrollers.
With three ultrasonic distance sensors, the ability to detect potential dangers in the immediate
area is greatly improved Due to the fact that it was a robot, it was capable to go across unfamiliar
territory without difficulty. With so much readily available and affordable technology, the robot's
model may be simply replicated (Faiza Tabassum, 2017).
Figure 2: Obstacle Avoiding Robot Algorithm (Faiza Tabassum, 2017)

In addition, the Robot's functionality has been expanded to include the ability to follow the black
line. This study explains how Arduino-based line-following robots may be used to scan,
examine, and enhance the transportation of essential supplies in healthcare facilities and other
businesses. As soon as the system spots the black route, it moves in that direction. In addition to
reducing the need for human resources, this technology reduces the time and effort required to
move materials. This technology aims to ensure that commodities are transported in a safe,
timely, and efficient manner. By adjusting control settings, this article hopes to improve the
performance of a robot by controlling its mobility. The primary function of this robot is to follow
a predetermined course. There are two sensors utilized to find this route. These robots are
typically employed in manufacturing facilities with a pick and place capability. By following a
predetermined route, this robot moves components from one location to another. Automated
healthcare and industrial processes have recently received a lot of attention from researchers.
Injections, medication, and other essentials are supplied by this robot. There are two parts to this
paper: the hardware and the software (Jagruti Chaudhari, 2019).

Figure 3: Block Diagram for Line follower (Jagruti Chaudhari, 2019)


Final Design of project:
The final design elements of the Robot include ultrasonic sensors for obstacle avoidance,
infrared sensors for line following, and Bluetooth for movement control. The L293D motor
driver is used to generate the DC motors. An idea for a robot that follows a line using an infrared
sensor has been created after much research. A Microcontroller-based robot car. Take a deeper
look at how the system functions. Two infrared sensors are included inside the Robot. This
sensor checks to verify if the lines have the same hue on both sides of the screen. When a source
of light reflects at the item it's focused towards, it's a reflection. In the White surface, there is a
reflection. Light does not reflect off black tracks in this instance. Checking and see if any light
returns to the sensor, The sensor would be the only information source beyond this point. If there
is no reflect or the input is very low, IR sensors will not operate. A microcontroller may be able
to operate a vehicle based on the results of the Elevated / Low Output studies. The
microcontroller is a vital part of the robot's functioning since it regulates the robot's movement,
turning, and stopping.

Arduino UNO pin configuration:

Figure 4: Arduino UNO pin configuration


Paper Design:
Components of assigned section:

Arduino:
It's simple to get started with this platform because it's built on open-source hardware and
software. If you have an Arduino board, any of these devices may be utilized as inputs and
transformed into outputs such as a motor being actuated, or an LED turning on. It's possible to
tell your board what to do by sending it a sequence of commands. You may do this by using the
Arduino IDE (based on Processing) and the Arduino programming language (based on Wiring).

Figure 5: Arduino Uno

Design of section:

Figure 6: Design of Interfacing of Arduino with sensors, module and driver


Circuit Diagram Arduino interfacing:

Figure 7: Circuit diagram for obstacle avoider

Working:
Ultrasonic sensor, Infrared sensors, Bluetooth module and L293D motor driver is interfaced with
Arduino UNO microcontroller.
1. The trigger pin of the ultrasonic sensor is used to receive an external signal. Its
transmitter emits an ultrasonic signal. When it impacts an item, the Ultrasonic sensor's
receiver picks up the signal. Once this is done, it is transformed into the distance
travelled. An Ultrasonic sensor is used in conjunction with an Arduino Microcontroller to
provide obstacle avoidance. The range between the Robot and the reflected item is
continually measured using an ultrasonic sensor. Arduino then processes the data it
receives. Robot detects an object if its distance falls inside the predetermined range. If the
robot detects an item, it pauses and scans in both directions. For example, if a robot has a
greater distance to go in any direction, it will proceed to the right.

2. Detection of a black line is done using infrared sensors, which are relayed to the Arduino.
They're there to assist in determining a vehicle's route. Front-facing sensors are included
on the robot. Infrared sensors transmit a signal that is picked up by a receiver after it is
reflected off the surface area. Using the Arduino UNO's connection pin, you may send
and receive electrical signals. Motor driver cards receive and process signals, thus they
can continuously modify and operate in response to the signal flow. The robot must
compress in order to cross the black line. Robots go forward if they are amid a line.
Center sensor always sits on top of a black line if other sensors are lower than the central
sensor.

3. Bluetooth module HC-05 is used to control the Robot by using Mobile app which is built
in MIT App inventor. Mobile application has function to control the left or right direction
of the Robot.

4. L293D Motor driver is used to drive the DC motor. It provides output to the DC motor
and is used to control the speed of DC motors.

Conclusion:
The testing of Ultrasonic and Infrared sensors interfacing with Arduino is accomplished. Circuit
design of the is Infrared sensor for making Line follower Robot and Ultrasonic sensor for
obstacle avoidance using Arduino Microcontroller is designed and simulation is done. The
making of Bluetooth controlled mobile app will be done in future. MIT App inventor will be
used for making a Bluetooth mobile app. Also, the Robot chassis will be designed for the overall
project. Moreover, the programing on the Arduino IDE platform for overall project will be done.
Testation of every element of project is done through coding and interfacing with Arduino.

References:

Nelson Rai, D. R. T. R. W. M. G., 2016. Bluetooth Remote Controlled Car using Arduino. p. 1.
Faiza Tabassum, S. L. M. M. T., 2017. Obstacle Avoiding Robot. p. 1.
Jagruti Chaudhari, A. D., 2019. Line Following Robot Using Arduino for Hospitals. pp. 1-2.

Common questions

Powered by AI

The Arduino microcontroller integrates with various sensors and modules such as ultrasonic sensors for obstacle avoidance, infrared sensors for line following, and the L293D motor driver to control DC motors. Using the ATMEL AVR microprocessor, Arduino is programmed through the Arduino IDE to execute specific tasks by interfacing with these peripherals via its input/output ports. The microcontroller processes data received from the sensors, facilitating obstacle detection by ultrasonic sensors and path tracking using infrared sensors, while also controlling motor speed and direction via the Bluetooth module HC-05 .

The L293D motor driver interfaces with the Arduino microcontroller to manage the output to the DC motors, controlling their speed and direction of rotation. It acts as an intermediary that interprets the command signals from the microcontroller and directs them to the motors. This driver allows for the control of high current/voltage loads beyond the microcontroller’s direct output capacity, providing robust motor control necessary for robot movement .

The ultrasonic sensors are primarily used for obstacle avoidance by emitting ultrasonic signals that reflect off objects, enabling the robot to measure the distance and detect obstacles. The infrared sensors are used for line following by detecting a black line against a white background. Both types of sensors are interfaced with the Arduino microcontroller, which processes the signals to determine the appropriate action, such as stopping for obstacles or following a line path .

When interfacing multiple sensors, considerations include ensuring the availability of sufficient GPIO pins to connect all sensors, managing power supply requirements for each sensor to prevent overloading, and ensuring correct data processing speed for real-time responses. Signal integrity must be maintained by using appropriate wiring and avoiding interference, and the programming logic should correctly integrate diverse data streams for coherent operations. Successful interfacing allows accurate data collection and responsive actions for the robot's functionalities .

Obstacle avoidance is a significant challenge in robotic systems, crucial for enabling robots to navigate uncharted or cluttered environments safely. The described project addresses this issue using ultrasonic sensors interfaced with the Arduino microcontroller to detect obstructions and process real-time data to avoid collisions. This solution improves the robot's ability to move autonomously in complex surroundings, demonstrating practical implementations in automation, potentially benefiting areas like automated delivery and assistance robots .

Bluetooth technology is incorporated using the HC-05 module, which allows the robot to be controlled wirelessly via a mobile app developed with the MIT App Inventor. This setup enables remote control of the robot's direction and movement, enhancing flexibility and convenience. The key advantage is that it eliminates the need for physical connections, allowing real-time control over longer distances without direct contact, which is particularly beneficial in dynamic or hazardous environments .

Infrared sensors are primarily used for line-following by detecting varying light reflection intensities on different colored surfaces, essential for tracking a predefined path on a contrasting background. Ultrasonic sensors, on the other hand, are used for obstacle avoidance, leveraging sound wave reflections to gauge the proximity of objects. While infrared sensors are precise in structured environments like line paths, ultrasonic sensors are better for dynamic environments, offering versatility in obstacle-rich areas. Both together provide comprehensive control and navigation capabilities for the robot .

Arduino microcontrollers are selected for their ease of use, open-source nature, and extensive community support, making them ideal for prototype development in robotics projects. They offer sufficient processing power and GPIO capabilities for interfacing with various sensors and actuators. However, alternatives like Raspberry Pi or BeagleBone could provide more computational power and connectivity options for complex tasks or sophisticated interfaces. Despite this, Arduino's simplicity and sufficient performance for sensor integration and control make it a sound choice for the project's scope .

The line-following feature, implemented using infrared sensors to track a black line, optimizes logistical tasks by automating the transportation of supplies, reducing reliance on human resources, and enhancing efficiency. This methodology ensures timely and accurate delivery of essential items such as medications within healthcare environments, minimizing human error and freeing staff for other critical duties. The system's automated nature significantly enhances productivity and the safety of logistical operations .

Implementing Bluetooth-controlled robots in industrial applications could revolutionize process automation, allowing remote operation and monitoring of machinery systems. Such systems could enhance flexibility and safety, reducing the need for human presence in hazardous environments. Additionally, it can lead to the development of more sophisticated and responsive automation systems capable of optimizing task workflows and increasing operational efficiency. These robots can also facilitate real-time data acquisition and decision-making, resulting in improved operational agility and resource management .

You might also like