How To Make A DIY Arduino Line Follower Car At Home

Поделиться
HTML-код
  • Опубликовано: 12 дек 2024

Комментарии • 1 тыс.

  • @ngopidirumah1510
    @ngopidirumah1510 2 года назад +75

    For those who seems doing the tutorial correctly but the robot keep moving straight, do this step: ADJUST YOUR IR SENSOR POTENTIOMETER TO LOW, keep it adjusted between reading surface and stop when crossing black line, @diy builder didn't explain it, but this is very important step

  • @narindersingh4706
    @narindersingh4706 Год назад +20

    My ir sensor lights stay green and the car is not moving… I need help it’s for a school project 😢

    • @anindyaghosh1762
      @anindyaghosh1762 Год назад +10

      Bro there is a screw just rotate it a bit it will work.. By rotating the screw you can adjust the range of the IR sensor 🤞🏼

    • @ZakirZakirubaid
      @ZakirZakirubaid Месяц назад

      ​@@anindyaghosh1762
      Then also not wodking

  • @Pulse.x
    @Pulse.x 3 года назад +11

    Step 2: Hardware Installation
    Hardware Installation
    Hardware Installation
    1. Assemble the 2WD Smart Car Chasis 2 Wheels
    2. Connect the IR sensor to Analog to Digital and Comparator Module
    IN1 > IR Sensor 1
    IN2 > IR Sensor 2
    IN3 > IR Sensor 3
    IN4 > IR Sensor 4
    3. Then, connect the output pin to Arduino UNO analog pin
    OUT1 > A2
    OUT2 > A3
    OUT3 > A4
    OUT4 > A5
    4. Connect Vin to 5V and GND to GND in Arduino UNO
    5. Then, connect the motor driver pin to Arduino UNO pin
    IN1 > D10
    IN2 > D9
    IN3 > D6
    IN4 > D5
    6. Connect the both motor to motor driver
    Motor A > Right motor
    Motor B > Left motor
    After completing the connection, connect the Arduino to power supply with USB cable.

  • @zainrei4917
    @zainrei4917 2 года назад +11

    Good video and also good coding. Thank you very much for your wonderful work. Still i have a question. Do i also need to supply the arduino with a 5v battery or only the motor driver? The dc motors run faster if i supply the arduino with a seperate supply but i do not know if this is safe or does it damage the arduino module.

  • @karangarg2085
    @karangarg2085 5 лет назад +75

    You should upload the code too here only. As without code your video is of no use.

  • @naweednawshard7792
    @naweednawshard7792 4 года назад +24

    finally one with uno and motor shield.
    Thanks a lot bro, you are a lifesaver

    • @akshara7679
      @akshara7679 10 месяцев назад

      Same

    • @akshara7679
      @akshara7679 10 месяцев назад

      I am also making as first and I want to use a motor shield

  • @PrometheusKnt
    @PrometheusKnt 3 года назад +5

    is there a difference between the arduino uno ATmega328P? or I should purchase the exact model posted in the description box?

  • @vaishnavsonawane5924
    @vaishnavsonawane5924 4 года назад +2

    I am doing the same project but having problem of power supply. Which and how many batteries are you using.

  • @kawaiii555
    @kawaiii555 3 года назад +9

    Hello! Thank you for making this fantastic video but I somehow cannot open the code. Can you please re-send it? That would be really helpful, thank you!

    • @gulabgabhane4113
      @gulabgabhane4113 2 года назад

      It will not be opend in mobile, it will open in laptop having Aurduino ide

  • @anassaleh9236
    @anassaleh9236 5 лет назад +7

    // NOTE Before writing this code Go to - tools - manage library - Search: Motor Driver - Install the adafruit motor shield library//
    //Including the libraries
    #include
    //defining pins and variables
    #define lefts A4
    #define rights A5
    //defining motors
    AF_DCMotor motor1(1, MOTOR12_1KHZ);
    AF_DCMotor motor2(2, MOTOR12_1KHZ);
    AF_DCMotor motor3(3, MOTOR34_1KHZ);
    AF_DCMotor motor4(4, MOTOR34_1KHZ);
    void setup(){
    // Setting the speed of the motor
    motor1.setSpeed(120);
    motor2.setSpeed(120);
    motor3.setSpeed(120);
    motor4.setSpeed(120);
    //declaring pin types
    pinMode(lefts,INPUT);
    pinMode(rights,INPUT);
    //begin serial communication
    Serial.begin(9600);
    }
    void loop(){
    //printing values of the sensors to the serial monitor
    Serial.println(analogRead(lefts));
    Serial.println(analogRead(rights));
    // Line detected by both
    if(analogRead(lefts)

    • @madhavanj5489
      @madhavanj5489 4 года назад

      did the line follower works perfectly for you

    • @anassaleh9236
      @anassaleh9236 4 года назад +1

      @@madhavanj5489 nope , i had to do major mofifications, firsly the motor speed is set too low on the code that the motors wouldnt move , once i increased the speed the robot moves too fast and ignores the line , therefore i bought new geared dc motors with 15rpm today im going to test if they will work

    • @madhavanj5489
      @madhavanj5489 4 года назад

      If it work, pls notify me, buying this components is ok na?

    • @anassaleh9236
      @anassaleh9236 4 года назад +1

      Nope i dont recommend it too much trouble

  • @aplicarciencias
    @aplicarciencias 4 года назад +13

    Great job! Congrats! Thanks for sharing.

  • @helloworld9057
    @helloworld9057 3 года назад +2

    I got a already built chasis and i can see small 4 wheels ahead of the motors connected there beneath the chasis. Would it make any difference ?? If i follow your steps what changes i need to make ?

  • @nabilsellami2707
    @nabilsellami2707 5 лет назад +39

    Thank you. keep uploading this kind of videos. Very useful and easy to make.
    Don't forget to upload the .ino file

    • @devansh6816
      @devansh6816 5 лет назад +1

      drive.google.com/file/d/1lddLLnkmZmYjjvB-nVPX45FV_P5i783T/view

    • @OneTap_FF03
      @OneTap_FF03 5 месяцев назад

      😅

  • @hirenkanojia5438
    @hirenkanojia5438 5 лет назад +14

    Bro I have a problem the line following robot is responding to every object instead of black only i tried to change the potentiometer reading by rotating the cube but nothing happens

    • @abhishekbagva5110
      @abhishekbagva5110 5 лет назад +1

      Try to change the intensity of ir sensor 😁 and brother never use ready made ir sensor coz there vulnerable to light... Better try to make your own one.. And it's really a easy task to make one...

  • @aaravraj9943
    @aaravraj9943 5 лет назад +9

    hey bro can you make a video on how to fix the l293d motor shield because mine is not responding

    • @sumantakumardutta986
      @sumantakumardutta986 3 года назад

      In the video, he has forgot to remove the jumper, while connecting external power supply to the shield. But how on earth did it work??
      I think your shield will work now.

  • @gianjarcia636
    @gianjarcia636 12 дней назад

    the build is working need some minor tweaking of the code but it works thank you.

  • @davxachatryan9371
    @davxachatryan9371 4 года назад +5

    Hi,
    Can You advice me where can I find robotic exercises?

  • @bolt_zz0
    @bolt_zz0 5 лет назад +2

    As again great video bro your all videos are 👌👌👌👌👌👌👌👌🔥🔥🔥🔥🔥🔥💯💯💯💯

  • @joshyough9293
    @joshyough9293 3 года назад +7

    Hello! Thank you for making this fascinating project! I want to make a project similar to this, but the motor drivers on Amazon do not have pin headers where you plugged in the IR sensors at timestamp 3:03. Did you solder pin headers into your board on the lower right side?

    • @ashwin4369
      @ashwin4369 3 года назад +2

      Yes we should just solder it to attach the pin headers to the motor driver board!!!

    • @joshyough9293
      @joshyough9293 3 года назад +2

      @@ashwin4369 Thank you for the reply! I actually figured out how to do so and made a robot similar to this one :)

    • @ashwin4369
      @ashwin4369 3 года назад +1

      @@joshyough9293 great to hear dude. All the best

    • @helloworld9057
      @helloworld9057 3 года назад

      @josh I'm trying to build one would you help me in ? plz drop your email then. I really want to learn but I'm a beginner and nothing is looking understandable to me. Im confused :(((

    • @iamharshittt
      @iamharshittt 3 года назад

      Yes bro but you must female to male jumper cables......
      (Male ones into the motor shield
      Female ones into the IR sensor)❤️

  • @mustafamerchant3676
    @mustafamerchant3676 4 года назад +1

    Sir if we put an obstacle between car and a line so car will stop or not? Please answer as fast as possible!

  • @kyrofromgahool2009
    @kyrofromgahool2009 2 года назад +6

    Dank u wel meneer for info. I'm studying HBO university. They asked on the first course to build a car that follows the line and avoids obticles i dont know what to build. At least here you showed from what to start. Thanks

  • @fatimahtasneemsamiha5737
    @fatimahtasneemsamiha5737 Год назад +4

    Hello sir, your video is very informative but I unfortunately cannot access the circuit diagram and code. It will be very kind of you to help me regarding this issue.

  • @shawetabhardwaj9044
    @shawetabhardwaj9044 5 лет назад +4

    Hello Sir,
    I tried doing same, however, it is going straight. I have checked code and circuit both, which seems fine. Please help me.

    • @DIYBuilder
      @DIYBuilder  5 лет назад +2

      Adjust the sensor potentiometer value

    • @meghamandekar4889
      @meghamandekar4889 5 лет назад

      Have you got the code then plz also provide me

    • @HariKrishna-mr5jm
      @HariKrishna-mr5jm 4 года назад

      @@DIYBuilder where to adjust the potentiometer value please reply

    • @nguyenthanhhoan4223
      @nguyenthanhhoan4223 4 года назад

      can you send me code. thank in advance

    • @HariKrishna-mr5jm
      @HariKrishna-mr5jm 4 года назад

      @@nguyenthanhhoan4223 it's already given in the description bro

  • @King-yo6fc
    @King-yo6fc 5 лет назад +2

    it is very good but i have some problem with the jump wire because i'll have to buy female to female jumpwire

  • @maheraboraia333gmaher9
    @maheraboraia333gmaher9 4 года назад +3

    You are very honest man
    and you did aperfect work

  • @keeratsingh929
    @keeratsingh929 5 лет назад +2

    Hello sir can I directly power the adrino board instead of the motor driver ?

  • @tuannguyen2990
    @tuannguyen2990 5 лет назад +5

    Would you please provide the code for this build that doesn't have to follow the black line ? I'm building one to go on a pre-build track that's 5ft wide and 10ft long rectangle . The track has 1 ft wide and about 2 ft rectangular round-abound in the middle

    • @habidqazaizada7733
      @habidqazaizada7733 5 лет назад

      خلاقیت حدی مرزی نمی شناسد عابد قاضی زاده

    • @NuzrathSir
      @NuzrathSir 2 года назад

      Its in the description, check the 2nd link from the top, from the Google Drive you can download it.!

    • @baithulaysha7786
      @baithulaysha7786 2 месяца назад

      ​@@NuzrathSirthen can you pls send it

  • @deepakbains6755
    @deepakbains6755 4 года назад +2

    Sir please create video of all in one i.e Bluetooth control ,line follow and obstacle avoidance..your work is clean clear and great

  • @vikhneshar104
    @vikhneshar104 4 года назад +15

    The Arduino code that you given below is not gong to work the values of the IR sensor is wrong & THEIR WAS A LOT MORE MISTAKES one of them was the read command
    but non of them will show up as errors
    which feels like this is intentional
    & the code given the description is different from the one he is using

    • @ashishmark0038
      @ashishmark0038 4 года назад

      Did u got the right codes ???

    • @nikhil-pr7yn5pf1c
      @nikhil-pr7yn5pf1c 4 года назад +1

      Plz copy paste the code here sir plz

    • @baraagendy68
      @baraagendy68 3 года назад +1

      I think now it is okay because he wrote updated

    • @lygiahuy8944
      @lygiahuy8944 3 года назад

      yes me too the sensor go crazy

    • @wafflegam1ng642
      @wafflegam1ng642 3 года назад

      @NikhilVarma I'll try to do so but it is extremely difficult. You have to pause and resume at short intervals.

  • @SanketThakral
    @SanketThakral 2 года назад

    hey! Thank you very much for this project and Can Upls tell that the battery u used is of how many MAH

  • @mahinahmedtasmi1273
    @mahinahmedtasmi1273 4 года назад +3

    Now this seems real easy to me.thanks man

    • @justsomepotato1554
      @justsomepotato1554 3 года назад

      well, did you get your answer

    • @justsomepotato1554
      @justsomepotato1554 3 года назад +1

      if you did can you please tell me because I do not know

    • @alexyouou7560
      @alexyouou7560 2 года назад

      @@justsomepotato1554 What do you want exactly to know?

    • @justsomepotato1554
      @justsomepotato1554 2 года назад +1

      @@alexyouou7560 i finished my project and I completely forgot what I wanted to know
      Thanks for responding though

    • @lakshyaautomotive
      @lakshyaautomotive 2 года назад

      @@justsomepotato1554what problems did you faced

  • @madhavanj5489
    @madhavanj5489 4 года назад +2

    Sir will this work for 1 inch black line

    • @wasifrock687
      @wasifrock687 3 года назад

      No it won't.i have already tried it.

  • @azanahmad9305
    @azanahmad9305 5 лет назад +7

    sir there are alot of errors in ur code plz upload the correct code..

  • @GEXO1000
    @GEXO1000 3 года назад +2

    Great video. It is a great project for my school exhibition!

  • @aeffendiibrahim2562
    @aeffendiibrahim2562 5 лет назад +3

    easy to understand, another cool DIY Arduino project form you Mr. Surajit! 👍👍👍

  • @sangavim4981
    @sangavim4981 3 года назад +2

    Hey bro! I did everything that you said. And even I checked the code..one doubt is why did you set logic 1? And also.. my robot doesn't follow the line.. it moves but doesn't follow the line.
    Can someone help me out ? Thanks in advance

    • @guillaume8437
      @guillaume8437 3 года назад +1

      First of all, wiring is essential! You may need to adapt either the code or the pinout. Beware also of the sensors output! If the voltage difference of level is too low, you may not recognize the line. Another point is that I don't understand why in the code we have ANALOGREAD :
      if(digitalRead(left)==0 && digitalRead(right)==0){
      else if(digitalRead(left)==0 && !ANALOGREAD(right)==0){
      else if(!digitalRead(left)==0 && digitalRead(right)==0){
      else if(!digitalRead(left)==0 && !digitalRead(right)==0){
      I have not tried it but it doesn't look normal.

    • @dipayandutta9929
      @dipayandutta9929 2 года назад

      The same problem occurred! Even I changed that one '!analogread(right)' into '!digitalread(right)', Then also It was going straight and didn't follow the line. Also, I modified the path from narrow to broad, and the same things happened, It was going straight.
      The speed is also very high.

    • @FaseehAhmad-t3n
      @FaseehAhmad-t3n 9 месяцев назад

      hello?

    • @FaseehAhmad-t3n
      @FaseehAhmad-t3n 9 месяцев назад

      you said that your robot worked, do you have the robot now with you?
      if yes can you please tell how much voltage of power you are using?

  • @ELECTRONICAPROGRAMACIONYROBOTS
    @ELECTRONICAPROGRAMACIONYROBOTS 3 года назад +8

    Que buen proyecto! Y sin decir una sola palabra 🦾

  • @adityamadbhavi5081
    @adityamadbhavi5081 4 года назад +1

    after a single line path if there are two paths to the left and right side then where will it goes???

  • @narayanai3775
    @narayanai3775 4 года назад +7

    Don't buy anything from Banggood. I was ordered there items more than 3 months back. still no update.

  • @maheshrg3603
    @maheshrg3603 2 года назад +1

    Hi bro
    I have a doubt that is on the download image the sensor connection is another and bro is connection in this video is another
    I connect those but it is not working
    what can I do
    please reply

  • @be_a_travellerr
    @be_a_travellerr 5 лет назад +7

    Can you help me in making a maze solver based on ir and arduino

  • @muhammads_editz
    @muhammads_editz 3 года назад

    @DIY Builder
    Are this robot follow all kind of trackes or only that one's which shown in video. Are your code for this is able to follow other trackes or only this one's???

  • @electronic7979
    @electronic7979 5 лет назад +6

    Very good project 👍

  • @htikarpleumasStore
    @htikarpleumasStore 4 месяца назад +2

    How much did all the things cost??

  • @monaa9116
    @monaa9116 5 лет назад +7

    can you please upload the code! I need it quickly!thanks

  • @Kunal-yg9fs
    @Kunal-yg9fs 5 лет назад +2

    What is the distance between the two sensors??
    Plzz reply fast...

  • @mercythomas5887
    @mercythomas5887 Год назад +3

    How much is cost?

  • @SuperSTAR65KA-Killer
    @SuperSTAR65KA-Killer 5 лет назад +2

    Where did you buy the Infrared Sensor?

  • @axominsane5242
    @axominsane5242 5 лет назад +9

    Hey Bro plz give the code its veey urgent

    • @Pulse.x
      @Pulse.x 3 года назад

      For this tutorial, we requires these items:
      1. Arduino UNO
      2. 2WD Smart Car Chasis 2 Wheels
      3. Arduino Mini DC Motor Driver Dual H-Bridge PW Control (L293D)
      4. IR Line Tracking Sensor (4 bits)
      5. Battery
      6. Double side tape
      7. Wires
      8. Jumper wire
      9. Black tape
      Add TipAsk QuestionCommentDownload
      Step 2: Hardware Installation
      Hardware Installation
      Hardware Installation
      1. Assemble the 2WD Smart Car Chasis 2 Wheels

    • @Pulse.x
      @Pulse.x 3 года назад

      Step 2: Hardware Installation
      Hardware Installation
      Hardware Installation
      1. Assemble the 2WD Smart Car Chasis 2 Wheels
      2. Connect the IR sensor to Analog to Digital and Comparator Module
      IN1 > IR Sensor 1
      IN2 > IR Sensor 2
      IN3 > IR Sensor 3
      IN4 > IR Sensor 4
      3. Then, connect the output pin to Arduino UNO analog pin
      OUT1 > A2
      OUT2 > A3
      OUT3 > A4
      OUT4 > A5
      4. Connect Vin to 5V and GND to GND in Arduino UNO
      5. Then, connect the motor driver pin to Arduino UNO pin
      IN1 > D10
      IN2 > D9
      IN3 > D6
      IN4 > D5
      6. Connect the both motor to motor driver
      Motor A > Right motor
      Motor B > Left motorStep 2: Hardware Installation
      Hardware Installation
      Hardware Installation
      1. Assemble the 2WD Smart Car Chasis 2 Wheels
      2. Connect the IR sensor to Analog to Digital and Comparator Module
      IN1 > IR Sensor 1
      IN2 > IR Sensor 2
      IN3 > IR Sensor 3
      IN4 > IR Sensor 4
      3. Then, connect the output pin to Arduino UNO analog pin
      OUT1 > A2
      OUT2 > A3
      OUT3 > A4
      OUT4 > A5
      4. Connect Vin to 5V and GND to GND in Arduino UNO
      5. Then, connect the motor driver pin to Arduino UNO pin
      IN1 > D10
      IN2 > D9
      IN3 > D6
      IN4 > D5
      6. Connect the both motor to motor driver
      Motor A > Right motor
      Motor B > Left motor

  • @AbdulRahman-er3dz
    @AbdulRahman-er3dz 4 года назад +2

    Bro you are doing a great job. But it would be even better if you start arduino programming classes you will be having lot of viewers

  • @exactly.3732
    @exactly.3732 4 года назад +4

    bro my model is not moving even after I bugged codes in it
    pls give me an idea I'm in hurry

    • @DIYBuilder
      @DIYBuilder  4 года назад +1

      contact me on instagram

  • @Icosiumprod
    @Icosiumprod 5 лет назад +1

    Plz answer me can we make line follower and obstacle avoiding on this driver ??????

    • @DIYBuilder
      @DIYBuilder  5 лет назад +1

      Yes you can but you have to modify the code according to this motor driver

    • @Icosiumprod
      @Icosiumprod 5 лет назад

      @@DIYBuilder I need the code , can u help me plz ?

  • @sashwnsmu477
    @sashwnsmu477 3 года назад +3

    Hello, your video is so clear and well edited and I have made this project. The problem I have is the robot is just moving forward and not following the line, can you suggest me some areas I may have done a mistake so I can correct it and make it work😃

    • @kazakrishnabharadwaj3410
      @kazakrishnabharadwaj3410 2 года назад

      Bro how will the robot move by keeping the battery will the car move automatically or we need to have any control or switch??

    • @sashwnsmu477
      @sashwnsmu477 2 года назад

      @@kazakrishnabharadwaj3410 it will just move man.....

    • @kazakrishnabharadwaj3410
      @kazakrishnabharadwaj3410 2 года назад

      @@sashwnsmu477 but by keeping battery also it's not moving

    • @kazakrishnabharadwaj3410
      @kazakrishnabharadwaj3410 2 года назад

      @@sashwnsmu477 may be I need to dump the code before and then the car will move I guess.

    • @advaithkrishnap4146
      @advaithkrishnap4146 2 года назад +1

      ADJUST YOUR IR SENSOR POTENTIOMETER TO LOW, keep it adjusted between reading surface and stop when crossing black line

  • @gelrojas3677
    @gelrojas3677 2 года назад +1

    Hi! May we know what is the screw size and where can we buy one? Thank you.

  • @abdellatifpro9665
    @abdellatifpro9665 5 лет назад +4

    When will you put the code link

  • @TECH_1044
    @TECH_1044 5 лет назад +2

    I made everything but the problem is that the 4 motors are not running when I open serial monitor it shows correctly but not moving

    • @DIYBuilder
      @DIYBuilder  5 лет назад

      contact me here instagram.com/surajit_majumdar/

    • @surajpadala9401
      @surajpadala9401 5 лет назад

      @@DIYBuilder SAME PROBLEM HERE SIR
      can you accept my request in instagram so that you can solve my problem please respond me sir
      urgent have a science exhibition next week.
      and i blew up a L293D ic of the motor driver
      please repond to my request sir.

  • @madhavanj5489
    @madhavanj5489 4 года назад +3

    Help, will this speed is sufficient for competitions

  • @SaptarshiSikder
    @SaptarshiSikder 5 лет назад +1

    which software you use for video editing??

  • @hpcreations1011
    @hpcreations1011 5 лет назад +3

    Which software do you use to edit the videos?

  • @ravishankarkumar1997
    @ravishankarkumar1997 Год назад +1

    Yah Project humko kharidna hai ऑनलाइन milega kya??

  • @huynguyenvan5509
    @huynguyenvan5509 5 лет назад +10

    can you give me the code, please

    • @rajrd1368
      @rajrd1368 4 года назад +1

      int vSpeed = 110; // MAX 255
      int turn_speed = 230; // MAX 255
      int turn_delay = 10;

      //L293 Connection
      const int motorA1 = 8;
      const int motorA2 = 10;
      const int motorAspeed = 9;
      const int motorB1 = 12;
      const int motorB2 = 13;
      const int motorBspeed = 11;
      //Sensor Connection
      const int left_sensor_pin =A0;
      const int right_sensor_pin =A1;


      int left_sensor_state;
      int right_sensor_state;
      void setup() {
      pinMode(motorA1, OUTPUT);
      pinMode(motorA2, OUTPUT);
      pinMode(motorB1, OUTPUT);
      pinMode(motorB2, OUTPUT);
      Serial.begin(9600);
      delay(3000);

      }
      void loop()
      {
      left_sensor_state = analogRead(left_sensor_pin);
      right_sensor_state = analogRead(right_sensor_pin);
      if(right_sensor_state > 500 && left_sensor_state < 500)
      {
      Serial.println("turning right");
      digitalWrite (motorA1,LOW);
      digitalWrite(motorA2,HIGH);
      digitalWrite (motorB1,LOW);
      digitalWrite(motorB2,HIGH);
      analogWrite (motorAspeed, vSpeed);
      analogWrite (motorBspeed, turn_speed);

      }
      if(right_sensor_state < 500 && left_sensor_state > 500)
      {
      Serial.println("turning left");

      digitalWrite (motorA1,HIGH);
      digitalWrite(motorA2,LOW);
      digitalWrite (motorB1,HIGH);
      digitalWrite(motorB2,LOW);
      analogWrite (motorAspeed, turn_speed);
      analogWrite (motorBspeed, vSpeed);
      delay(turn_delay);
      }
      if(right_sensor_state > 500 && left_sensor_state > 500)
      {
      Serial.println("going forward");
      digitalWrite (motorA2,LOW);
      digitalWrite(motorA1,HIGH);
      digitalWrite (motorB2,HIGH);
      digitalWrite(motorB1,LOW);
      analogWrite (motorAspeed, vSpeed);
      analogWrite (motorBspeed, vSpeed);
      delay(turn_delay);

      }
      if(right_sensor_state < 500 && left_sensor_state < 500)
      {
      Serial.println("stop");

      analogWrite (motorAspeed, 0);
      analogWrite (motorBspeed, 0);

      }
      }

    • @shanikajayasundara4641
      @shanikajayasundara4641 4 года назад

      This is the coad

    • @shanikajayasundara4641
      @shanikajayasundara4641 4 года назад

      Plz reply

  • @RudraKadam-hf5ic
    @RudraKadam-hf5ic 10 месяцев назад +1

    sir I have a doubt that if i will cut the line then it stop or not...........

  • @amitbarman7861
    @amitbarman7861 5 лет назад +6

    Wow😲Amazing bro

    • @RTG-k8n
      @RTG-k8n 3 месяца назад +1

      just like ur mother

  • @kazakrishnabharadwaj3410
    @kazakrishnabharadwaj3410 2 года назад

    Do I have to put a switch in that ?? Or it will run automatically by battery

  • @foysaldhali2852
    @foysaldhali2852 5 лет назад +4

    Can anyone please give me the code of this arduino programme?

    • @devansh6816
      @devansh6816 5 лет назад

      drive.google.com/file/d/1lddLLnkmZmYjjvB-nVPX45FV_P5i783T/view

  • @neerajbaruah1749
    @neerajbaruah1749 4 года назад

    Hey are all the codes nd library given and is there any extra folders needed to be downloaded??

  • @user-wn3nh4ec2g
    @user-wn3nh4ec2g 5 лет назад +3

    Great you make it an awesome way.

  • @kushdeep2000
    @kushdeep2000 Год назад

    Hi DIY Builder, i also tried building the same, however, L239 motor driver is not passing any commands to rotate motor (wheels are not rotating) using 9V batteries x 2. Wanted to know, if is power issue. Tried writing a new program just to rotate wheels, still nothing worked.

    • @anish2289
      @anish2289 Год назад

      I have the same problem what can I do bro

  • @bhawnatomar7261
    @bhawnatomar7261 5 лет назад +3

    sir i want to make this in my school exhibition pls send code and circuit diagram please it's urgent

  • @sunithaharish8253
    @sunithaharish8253 5 лет назад +1

    What you have put to the table that black strip

  • @ProCipher
    @ProCipher 4 года назад +7

    the uploaded code is apiece of crap D:

    • @testname367
      @testname367 4 года назад +3

      iT'S TRUE.
      YOU CAN USE THIS. I USED 2 MOTORS. OF COURSE, I AM A NOOB AND THIS IS JUST A SMAR COPY PASTE REPLACE EDIT. dOWNLOAD THE ADAFUIT GITHUB FIRST.
      #include
      //MOTOR DEFINATION
      AF_DCMotor motor1(1);
      AF_DCMotor motor4(4);
      //Sensor Connection
      const int left_sensor_pin =A0;
      const int right_sensor_pin =A1;
      int left_sensor_state;
      int right_sensor_state;
      void setup() {
      left_sensor_state = analogRead(left_sensor_pin);
      right_sensor_state = analogRead(right_sensor_pin);
      motor1.setSpeed(180);
      motor4.setSpeed(180);
      motor1.run(RELEASE);
      motor4.run(RELEASE);

      Serial.begin(9600);
      delay(3000);

      }
      void loop() {
      left_sensor_state = analogRead(left_sensor_pin);
      right_sensor_state = analogRead(right_sensor_pin);
      if(right_sensor_state > 500 && left_sensor_state < 500)
      {
      Serial.println("turning left");

      motor1.run(RELEASE);
      motor4.run(FORWARD);
      }
      if(right_sensor_state < 500 && left_sensor_state > 500)
      {
      Serial.println("turning right");
      motor1.run(BACKWARD);
      motor4.run(RELEASE);


      }
      if(right_sensor_state > 500 && left_sensor_state > 500)
      {
      Serial.println("going forward");
      motor1.run(RELEASE);
      motor4.run(RELEASE);



      }

      if(right_sensor_state < 500 && left_sensor_state < 500)
      {
      Serial.println("stop");

      motor1.run(FORWARD);
      motor4.run(FORWARD);
      }



      }

    • @wafflegam1ng642
      @wafflegam1ng642 3 года назад

      @@testname367 W8888888888888888888888 this REALLY works??????????????????????????

    • @wafflegam1ng642
      @wafflegam1ng642 3 года назад

      @@testname367 Where are motors 2 and 3? u r basically using just 2 motors for a 4 wheeled vehicle. U r not specifying what colour IR Sensors are supposed to be following. There are a million other mistakes. This code is wrong on so many levels!!! No offence but I don't really think it will work.

  • @biswanathbanik
    @biswanathbanik 5 лет назад

    which kind of chassis and wheel have you used in this project ? i mean to say what kind of meterial is used to made this chassis and wheel ?

    • @SHAKTIWeldingWORKS
      @SHAKTIWeldingWORKS 5 лет назад

      Material doesn't matter...just upload the right code and make right connections

  • @eliasmedelsosa9175
    @eliasmedelsosa9175 5 лет назад +3

    Thank You So Much

  • @sarkarglobal4547
    @sarkarglobal4547 4 года назад +1

    will it work with other motor driver

  • @haxxx0rz
    @haxxx0rz 5 лет назад +4

    2:25, that's not gonna work xD

  • @neelasmani2791
    @neelasmani2791 Год назад

    Can somebody tell me what's the black type paper as shown in beginning at 0:38

  • @johnallenbundalian594
    @johnallenbundalian594 5 лет назад +3

    waiting for the links of the codes. thank you in advance.

    • @DIYBuilder
      @DIYBuilder  5 лет назад +1

      Send me your mail id

    • @Tharusha-du9cz
      @Tharusha-du9cz 5 лет назад

      Tharushanavidu5@gmail.com

    • @wafaatounzi7768
      @wafaatounzi7768 5 лет назад

      @@DIYBuilder wafaa.volunteer@gmail.com me too please

    • @johnallenbundalian594
      @johnallenbundalian594 5 лет назад +1

      @@DIYBuilder bundalianallen6@gmail.com. This is my email thank you again

    • @seriryousra2098
      @seriryousra2098 5 лет назад +1

      Seriryousra@gmail.com
      Send me the code please i need it for my project in my high scool and i haven't time please help meee 😢😢😢

  • @anushag.shetty6690
    @anushag.shetty6690 3 года назад +1

    Could we use dry cell instead of Li ion batteries

    • @electromodule7987
      @electromodule7987 2 года назад

      Li ion batteries also Dry cell
      you can also use AA and AAA cell

  • @adirah1108
    @adirah1108 5 лет назад +3

    Can you upload the code... I need the code

    • @devansh6816
      @devansh6816 5 лет назад

      drive.google.com/file/d/1lddLLnkmZmYjjvB-nVPX45FV_P5i783T/view

    • @devansh6816
      @devansh6816 5 лет назад

      drive.google.com/file/d/1lddLLnkmZmYjjvB-nVPX45FV_P5i783T/view

    • @narun4918
      @narun4918 4 года назад

      @@devansh6816 the file is not opening

  • @ajayyadav-ck2gs
    @ajayyadav-ck2gs 3 года назад

    Sir what's that line made of its a normal tap or a different material

  • @arjunchauhan3210
    @arjunchauhan3210 5 лет назад +3

    brother i want code for that

  • @chimdianioke3430
    @chimdianioke3430 5 лет назад +2

    what did you use to draw the line

  • @dillibabu304
    @dillibabu304 5 лет назад +12

    I need code

  • @shubhangikhadilkar5088
    @shubhangikhadilkar5088 2 года назад

    Can you please please please tell me which wires you have used ...
    Please tell me the link from Amazon.

  • @waliopubg313
    @waliopubg313 5 лет назад +11

    Where is the arduino code

    • @croydon21H
      @croydon21H 5 лет назад

      looks like a selfish guy, so not giving code. why cant he upload to github

  • @anassaleh9236
    @anassaleh9236 5 лет назад

    for ppl asking for the code , he showed it in the video , i just typed it as it is

    • @tansanemusic
      @tansanemusic 5 лет назад

      Adam Anas Contact he showed the codes too fast can you please send me the full code

    • @anassaleh9236
      @anassaleh9236 5 лет назад

      @@tansanemusic I commented the code below , email me at anasadamcontact@gmail.com if u can't see it here

  • @abdulrahmanayman4264
    @abdulrahmanayman4264 5 лет назад +3

    i am doing this project but please help me with the code and link

  • @ahnaf_siddique007
    @ahnaf_siddique007 Год назад +1

    Thank you for uploading this. I made the same Arduino project. It's very useful.

  • @ruchijain1466
    @ruchijain1466 5 лет назад +3

    Pls sir tell the code

    • @Creation-mv2mv
      @Creation-mv2mv 4 года назад

      Watch my video for right code ruclips.net/video/zG119YG-xfs/видео.html

  • @vidyasagaranandsagar8401
    @vidyasagaranandsagar8401 5 лет назад +2

    How to download that aurdino line follower document in all laptops or computers plz tell plz

    • @anassaleh9236
      @anassaleh9236 5 лет назад

      just write it out

    • @shan_singh
      @shan_singh 5 лет назад

      click on link in description to download code file.
      to open, open arduino application on your computer. go to file->open->downloads->downloaded code file.
      it will show a pop up to create folder, click ok.

  • @abhaykumardas1666
    @abhaykumardas1666 5 лет назад +4

    Sir I have send you a mail for the code of line following robot. But till date you have not replied me.pls sir it is important for me to get the code.

    • @tenpenny234
      @tenpenny234 5 лет назад

      have you got the code???
      if you got then please send it to me

    • @jc_hz4196
      @jc_hz4196 5 лет назад

      code is in the description

    • @jothiprakasam9863
      @jothiprakasam9863 5 лет назад +1

      in pc ,download the file in description and open the file in arduino ide app .it works and i got the code

  • @sparkle7840
    @sparkle7840 4 года назад +1

    sir it's possible to use 5 or 6 volt battery?

    • @Oderskocludanozelders
      @Oderskocludanozelders 3 года назад

      İ dont think son but u can try i just do with 9v battery but its need push

  • @bibeksapkota641
    @bibeksapkota641 5 лет назад +3

    sir can you send me code please.

  • @thebikeracer
    @thebikeracer 4 года назад +2

    very cool Way to keep it super light!

  • @sunitaDevi-gs8yn
    @sunitaDevi-gs8yn 5 лет назад +3

    Plz send me the code brother

  • @raghavarora7041
    @raghavarora7041 4 года назад

    Can the Adafruit library be used for all motor driver shields?

  • @miguelvilla745
    @miguelvilla745 5 лет назад +4

    friend help me with the arduino code

    • @Creation-mv2mv
      @Creation-mv2mv 4 года назад

      Watch my video for right code ruclips.net/video/zG119YG-xfs/видео.html

  • @SilentKiller-tf1yn
    @SilentKiller-tf1yn 3 года назад

    bro what is that line made up of
    bhai wo line kis cheez se bani hai
    pl reply fast

  • @nagarajambligola9081
    @nagarajambligola9081 5 лет назад +1

    what is the total price to make this project. please tell i am making this project quickly so tell the total price