how to make LINE FOLLOWER ROBOT using arduino uno| step by step explained hindi

Опубликовано: 11 Март 2026
на канале: FunWithElectronicss
1,034
27

how to make LINE FOLLOWER ROBOT using arduino uno| step by step explained hindi #funwithelectronicss

In this video I have made a robot by name '' LINE FOLLOWER ROBOT ''. this robot will move on the path we make.

My other video links:

What is IR sensor :-
   • What is IR sensor | IR sensor Kya hai | fu...  

Interfacing motor driver l293d with arduino:-
   • How to interface motor driver with arduino...  

Interfacing 2 IR sensors with arduino:-
   • Interfacing 2 IR sensors with arduino |bli...  

arduino code:-

//ARDUINO LINE FOLLOWING CAR

#include [AFMotor.h] // here use angular brackets.

//defining pins
#define chintu A0
#define mintu A1

//defining motors
AF_DCMotor motor1(1);
AF_DCMotor motor2(2);
AF_DCMotor motor3(3);
AF_DCMotor motor4(4);



void setup() {
//Setting the motor speed
motor1.setSpeed(180);
motor2.setSpeed(180);
motor3.setSpeed(180);
motor4.setSpeed(180);
//Declaring PIN input types
pinMode(chintu,INPUT);
pinMode(mintu,INPUT);

}

void loop(){

if(analogRead(chintu)?=350 && analogRead(mintu)?=350){ // put angular brackets instead of (?)..
//Forward
motor1.run(FORWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(FORWARD);
}
//line detected by left sensor
else if(analogRead(chintu)?=350 && !analogRead(mintu)?=350){ // put angular brackets instead of (?)..
//turn left
motor1.run(BACKWARD);
motor2.run(FORWARD);
motor3.run(FORWARD);
motor4.run(BACKWARD);

}
//line detected by right sensor
else if(!analogRead(chintu)?=350 && analogRead(mintu)?=350){ // put angular brackets instead of (?)..
//turn right
motor1.run(FORWARD);
motor2.run(BACKWARD);
motor3.run(BACKWARD);
motor4.run(FORWARD);
}
//line detected by none
else if(!analogRead(chintu)?=350 && !analogRead(mintu)?=350){ // put angular brackets instead of (?)..
//stop
motor1.run(RELEASE);
motor2.run(RELEASE);
motor3.run(RELEASE);
motor4.run(RELEASE);
}
}

Support me, by subscribing my channel.
Share this video to family and friends and like the video.
Thanks for watching....

#funwithelectronicss #robotics #linefollowerrobot #linefollower #arduinoproject #arduino #electronic #education #jumperwires #projects #programming #project #fwe #irsensor