Discover the world with our lifehacks

How do I make my ev3 robot follow a line?

How do I make my ev3 robot follow a line?


  1. Start the program.
  2. Start motors B and C (drive forward with a curve toward the line).
  3. Wait for the Color Sensor to detect the color black.
  4. Start motors B and C (drive forward with a curve away from the line).
  5. Wait for the Color Sensor to detect the color white.
  6. Repeat steps 2 to 5 forever.

Why Arduino is used in Line Follower Robot?

Working of Line Follower Robot using Arduino Building a Line follower robot using Arduino is interesting. The line follower robot senses a black line by using a sensor and then sends the signal to Arduino. Then Arduino drives the motor according to sensors’ output.

What is Arduino Line Follower Robot?

Arduino based Line Follower Robot. Line Follower Robot (LFR) is a simple autonomously guided robot that follows a line drawn on the ground to either detect a dark line on a white surface or a white line on a dark. The LFR is quite an interesting project to work on!

How do you get a robot to follow your line?

If the robot does not follow the line properly try these troubleshooting tips:

  1. Double check the connections.
  2. Make sure you use a fully charged battery.
  3. Try swapping motor leads.
  4. Try adjusting the sensitivity of IR sensors. (You can tune the sensitivity using the trimmer pot on the module.)

Is a line follower analog or digital?

The Line Tracker is an analog sensor, meaning that it can output many more values within its range of potential values (in this case, from 0-5V) than a digital sensor, which would output only a handful of discrete values in the range (e.g., 1, 2, 3, 4, and 5V), as is the case for a digital sensor.

What is the line follower sensor?

The Line Follower sensor is an add-on for your RedBot that gives your robot the ability to detect lines or nearby objects. The sensor works by detecting reflected light coming from its own infrared LED.

Which sensor is used in line follower robot?

4} IR SENSOR For line sensing operation, IR sensors are the one which are widely used for the development of a line follower robot. There are some basic things to follow where white surface of the black line reflects light and the black line receives it after the transmission.

Which motor is used in line follower?

The DC motors of the robot are connected to the controller using a motor driver IC. As the output of the controller is maximum 5V with very small current, it cannot drive the motors. So, to amplify this voltage motor driver IC is used. L298N can drive motors up to 36v and can provide a drive current of 3A.

What is the use of line follower robot?

The sensor based black line follower robots are one of the most basic robots used to follow black line on white background or vice versa. These robots may be used to in various industrial and domestic applications such as to carry goods, floor cleaning, delivery services and transportation.

How do line follower robots work?

A line follower consists of an infrared light sensor and an infrared LED. It works by illuminating a surface with infrared light; the sensor then picks up the reflected infrared radiation and, based on its intensity, determines the reflectivity of the surface in question.

How do you make a simple line follower robot with Arduino?


  1. Step 1: Connect the circuit as shown in the schematic.
  2. Step 2: Use the Arduino IDE to write your own code.
  3. Step 3: Upload your code to the Arduino and connect it to the batteries or you can even use a power bank to run the Arduino.
  4. Step 4: Test it on a black path.

How do you make a line following a robot without a microcontroller?

This Robot follows the black line which is drawn over the white surface . The line sensors are used to sense the line….Power Supply.

Sr .No 7805 Pin No 7805 Pin name
1 Pin 1 +12 volt (Given by battery)
2 Pin 2 Gnd
3 Pin3 + 5 (output to give whole circuit )