Line Follower and Bluetooth Controlled Robot

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

11 IV April 2023

https://doi.org/10.22214/ijraset.2023.50187
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

Line Follower and Bluetooth Controlled Robot


Jajula Abhinay1, Ayyala Revanth Reddy2, Kankanala Koiushik Reddy3, Nimushakavi SN Murti Sarma Smieee4
1, 2, 3
Student, 4 Professor, Sreenidhi Institute of Science and Technology (SNIST), Affiliated to JNTUH, ECE Dept.,
Hyderabad

Abstract: Our proposal is a vehicle that can follow a straight path. It can follow a line until it reaches the end of the line and
then pause until the return instruction is issued. This can be used to convey items from a car to a destination (at the end of the
line) within a house or small work space. Another advantage of the project is that it can be controlled via Bluetooth. A car is a
differential wheeled vehicle, which is a mobile vehicle with two independently powered wheels on either side of the vehicle body.
To operate the automobile through bluetooth, a mobile application for the joystick was downloaded. We may choose whether the
car should act as a line follower or Bluetooth via the application.

I. INTRODUCTION
The mobile equipment known as the "Line follower robot" can find and follow lines that have been placed on the floor. The path is
usually predetermined and may either be seen, like a black line on a white surface with a highly contrasted hue, or it can be
invisible, like a magnetic field. Because of this, the Infrared Ray (IR) sensors on this type of robot should be able to detect the line.
Following that, dedicated transition buses provide the data to the CPU. As a result, the CPU will choose the appropriate orders
before sending them to the driver, who will then direct the line follower robot down the course. Miniature model cars, vans, buses,
lorries, or buggies that can be remotely controlled using a specialised transmitter or remote are known as radio-controlled
automobiles (or RC cars for short). A bluetooth-controlled car is similar to an RC car, except steering and direction control are
handled by a smart phone via bluetooth connectivity.

II. AIM OF THE PROJECT


The goal of this project is to create a line-following automobile that can also function as a bluetooth controller car.

III. HARDWARE COMPONENTS USED


1) ESP32 DOIT DEVKIT
2) L298N motor driver
3) XL6009 DC_DC buck boost converter
4) IR sensor MODULE
5) BO motor
6) Caster wheel

A. ESP32 DOIT DEVKIT

Fig.1 Esp32 Doit Devkit

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 769
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

The ESP32-WROOM-32 is a powerful, universal Wi-Fi + Bluetooth + Bluetooth LE MCU module that can handle a broad range of
functions, including voice encoding, music streaming, and MP3 decoding, as well as low-power sensor networks. The ESP32-
D0WDQ6 chip* is the heart of this module. Scalable and adaptable design features are included into the integrated chip.
The CPU clock frequency may be changed from 80 MHz to 240 MHz, and there are two independent CPU cores. The chip also
contains a low-power coprocessor that may be utilised in place of the CPU to conserve energy when carrying out activities that don't
need a lot of processing power, including peripheral monitoring.
A wide variety of peripherals are included into the ESP32, including capacitive touch sensors, Hall sensors, an SD card interface,
Ethernet, high-speed SPI, UART, I2S, and I2C. Note: * Please refer to the paper ESP32 Datasheet for further information on the
component numbers of the ESP32 family of chips.
A wide range of applications can be targeted thanks to the integration of Bluetooth®, Bluetooth LE, and Wi-Fi; Wi-Fi enables a
direct connection to the Internet via a Wi-Fi router and a large physical range, while Bluetooth enables the user to easily connect to
the phone or broadcast low energy beacons for its detection. The ESP32 chip is excellent for battery-powered and wearable
electronics applications since its sleep current is less than 5 A. In order to achieve the greatest physical range, the module offers a
data rate of up to 150 Mbps and 20 dBm output power at the antenna.
As a result, the module provides the finest performance for electronic integration, range, power consumption, and connection as
well as parameters that set the industry standard. The free RTOS with LwIP operating system was selected for the ESP32, and TLS
1.2 with hardware acceleration is also integrated.
In order to allow consumers to update their goods even after they are released with the least amount of expense and effort, secure
(encrypted) over the air (OTA) upgrade is also offered.

B. L298N Motor Driver

Fig.2 L298N Motor Driver

1) L298N 2A is the driver model.


2) Double H Bridge L298N Driver Chip
3) Maximum Motor Supply Voltage: 46V
4) Maximum Motor Supply Current: 2A
5) 5V Logic Voltage
6) Driver Voltage: 5 to 35 volts
7) Driver Current: 2 A
8) 0–36 mA of logical current
9) 25 W Maximum Power
10) A motor's current sense
11) Heatsink for improved efficiency
12) A LED power-on indicator

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 770
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

C. XL6009 DC_DC buck Boost Converter

Fig.3 XL6009 DC_DC Buck Boost Converter

The XL6009 Step Up Down module is one of the most often utilised modules when a set output voltage is required, regardless of
whether the input voltage is above or below that output value.
This Buck Boost Converter is automated. In turn, this allows the module's output voltage to be locked at a given value while
allowing input to be greater or lower than the output voltage. The output voltage is modified using the integrated variable resistor.
1) Buck Boost Converter Automatic
2) 4A output current
3) 400 kHz is the switching frequency.
4) 3.8 to 32 volts of input voltage
5) 1.25 to 35 volts of output voltage
6) Efficiency of Conversion: 94%
7) A non-isolating buck boost converter

D. IR Module

Fig.4 IR Module

A pair of infrared transmitter tubes and a receiver tube are part of the IR Sensor module, which has excellent ambient light
adaptation capabilities. When the infrared emitting tubes encounter an obstacle detection direction (a reflecting surface), the infrared
is reflected back to the receiver tube receiving, and after a...
Range for Measuring Distance (CM): 2 30
48 x 14 x 8 mm are the dimensions.

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 771
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

E. BO Motor

Fig.5 BO Motor

Lightweight DC geared motor called a "Bo motor" (battery operated) that produces good torque and rpm at lower voltages. You
may get bo motors with different rated speeds here.

IV. HARDWARE COMPONENTS AND APPS USED


A. Arduino IDE
The Arduino Integrated Development Environment, generally known as the Arduino Software (IDE), is also available. It includes a
text editor for writing code, a message box, a text terminal, a toolbar with buttons for frequently used activities, and a variety of
menus. It connects to the Arduino hardware to upload programmes and communicate with them. I also provide support for
additional devices, such esp32.

B. Dabble APP

Fig.6 Dabble App

By turning your smartphone into a virtual I/O device with Dabble App, you can interact with hardware through Bluetooth, control it,
and access other features like proximity and accelerometer sensors. For different DIY projects or Internet of Things (IoT)
applications, you may use Dabble as a Bluetooth Controller App for Arduino Uno-Mega-Nano, ESP32, and evive. In the Arduino
IDE, you may write the programme.
console module,

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 772
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

This module offers three distinct ways to set up the gamepad controllers:
1) Digital Mode: This mode has 10 buttons, including Up, Down, Right, Left, Triangle, Circle, Cross, Square, Select, and Start. It
is the standard mode.
2) Joystick Mode: In this mode, the Joystick, which delivers data in polar coordinates, takes the place of the Up, Down, Right, and
Left buttons. The angle ranges in 15° increments from 0° to 360° while the radius varies from 0° to 7°.
3) Accelerometer Mode: This mode resembles joystick mode in several ways. To move the button, you must tilt your smartphone
rather than slide it across the screen.

V. BLOCK DIAGRAM

Fig.7 Block Diagram

VI. CIRCUIT

Fig.8 Circuit

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 773
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

VII. WORKING
When " Δ " is pushed, the car follows lines.
Vehicle operates as a Bluetooth-controlled automobile when "□" is pushed.
Line follower: In our project, three IR sensors are symmetrically situated on the front of the car and provide high output when they
are on a black line and low output when they are on a white line. There are five different ways an IR sensor might be placed on a
black line when a line follower is present:
1) Go straight, Whit Black White / 010
2) tight right White Black Black /001
3) White White Black / 110 tight left
4) Turn right at White White Black / 001.
5) Turn left after Black White White at 100.
In the first scenario, the car is straight.
Secondly: tight right
Case three: tight left
Fourth case: make a right
Fifth case: turn left
Vehicle is at rest in all other scenarios.
An alert is sent saying "destination arrived! No:#" when the destination is reached (when all IR sensors are black, which is
considered the destination).
Use the cross key on your gamepad to go back and come back.
In the gamepad of the mobile application, press "X." The vehicle will turn around and signal that the turn at the destination
<Destination NO:#>has been performed. To return, use the circle key on the gamepad. Following the line, the car starts to return
after hitting the "O" key.
A microcontroller will receive the joystick's angle when the automobile is Bluetooth-controlled. When the joystick is moved, the
received angle is taken as input and the matching output is set. This input goes to the L298N motor driver's enable1, enable2, a1, a2,
and b1 transistors.

VIII. RESULT

Fig.9.1 Result

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 774
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

Fig.9.2 Result

Fig.9.3 Result

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 775
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

Fig.9.4 Result

Fig.9.5 Result

IX. RESULT EXPLANATION


When line follower mode is selected, the vehicle can follow a straight line. When it arrives at its destination, a message will appear
asking you to hit the "X" key to go back. After hitting "X," it turns as it pleases and then comes to a stop. A new notice now urges
you to press "O" to go back. The line to return back is followed after hitting the "O" key. When the "Square key" is depressed, the
project functions as a bluetooth-controlled automobile.

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 776
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue IV Apr 2023- Available at www.ijraset.com

X. ADVANTAGES
1) Most of the time, these robot movements are automated.
2) The robot's system is similar to "instal once, forget it."
3) It is reasonably priced.
4) These robots are easy to construct.
5) They are also appropriate for lengthy distances.

XI. DISADVANTAGES
1) Since the IR photons should reflect from the specific direction, there must always be a path that is either white or
black.
2) Lessens interactions with people.
3) The cost of designing an application is high.
4) Sluggish motion and instability on lines of varying thickness or at acute angles.

XII. CONCLUSION
The use of machines is rising these days, therefore our line follower robot has a few benefits including the ability to be controlled
and utilised automatically, which leads us to believe that it can fulfil certain daily demands and has further potential.
One of the most fundamental robots is a sensor-based black line follower, which follows a black line on a white backdrop. This
robot may be used for a variety of home and commercial purposes, including carrying objects, cleaning floors, providing delivery
services, and transportation.

REFERENCES
[1] http://www.engineersgarage.com/tachometer-microcontroller-circuit-project.
[2] https://www.arduino.cc/en/Guide/Introduction.
[3] Komonya, S. Tachi, K. Tanie, "A Method for Autonomous Locomotion of .Mobile
[4] Robots,''in Journal of Robotics Society of Japan, vol. 2, pp.222-231, 1984.
[5] https://deepbluembedded.com/esp32-pwm-tutorial-examples-analogwrite-arduino/

GROUP MEMBERS
J.ABHINAY, 19311A04X7
A.REVANTH REDDY, 19311A04X8
K.KOUSHIK REDDY, 19311A04X9

©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 777

You might also like