How to make a Line Follower Robot Car Using Arduino L293d and IR sensors (HELP/SUPPORT Provided)

Sdílet
Vložit
  • čas přidán 26. 08. 2024
  • This video will show you everything you need to know about building a simple "Line Follower Robot Car Using Arduino".
    In fact we have used very simple and readily available components in the market to build this line following robot car.
    Let's see what are the parts we have used in building this DIY line follower robot car using arduino;
    Components/Parts Required:
    1. UNO R3 board, USB Cable
    2. L293d motor driver shield for uno r3
    3. Complete 2wd Car Chassis with motors and wheels
    4. Infrared Sensor x 2
    5. 4 cell AA Battery holder with ON-OFF switch
    6. Female - Female jumper wires
    7. Black Tape
    8. L-Clamp x2
    About Line Follower Robot:
    A line follower robot is a robot which follows a certain path controlled by a feed back mechanism from the line sensors. You can build a line following robot car using 2 sensor, 3 sensor or even upto 8 infrared sensors based on your need.
    Working Principle of Line Follower Car:
    In this project, we have designed an Arduino based Line Follower Robot. The working of the project is pretty simple. Detect the black line on the surface and move along that line. The detailed working is explained here.
    We need infrared sensors to detect the line. For line detection logic, we used two IR Sensors, which consists of IR LED and Photo diode. They are placed in a reflective way i.e. side - by - side so that whenever they come in to proximity of a reflective surface, the light emitted by IR LED will be detected by Photo diode.
    In case of black surface, which has a low reflectance, the light gets completely absorbed by the black surface and doesn’t reach the photodiode.
    Using the same principle, we will setup the IR Sensors on the Line Follower Robot such that the two IR Sensors are on the either side of the black line on the floor.
    When the robot moves forward, both the sensors wait for the line to be detected. For example, if the IR Sensor 1 detects the black line, it means that there is a right curve (or turn) ahead.
    Arduino UNO detects this change and sends signal to motor driver accordingly. In order to turn right, the motor on the right side of the robot is slowed down using PWM, while the motor on the left side is run at normal speed.
    Similarly, when the IR Sensor 2 detects the black line first, it means that there is a left curve ahead and the robot has to turn left. For the robot to turn left, the motor on the left side of the robot is slowed down (or can be stopped completely or can be rotated in opposite direction) and the motor on the right side is run at normal speed.
    Arduino UNO continuously monitors the data from both the sensors and turns the robot as per the line detected by them.
    Uses of line follower robot car:
    - Line follower Robots are commonly used for automation process in industries, military applications and consumer applications.
    - Industrial Applications: These robots can be used as automated equipment carriers in industries replacing traditional conveyor belts.
    - They are very useful as they can work without any supervision i.e. they work as automatic guided vehicles.
    - With additional features like obstacle avoidance and other security measures, line follower robots can be used in driver less cars.
    - Automobile applications: These robots can also be used as automatic cars running on roads with embedded magnets.
    - Domestic applications: These can also be used at homes for domestic purposes like floor cleaning etc.
    -------------------------------------------------------------------------
    Need HELP / SUPPORT??
    Feel free to use the comments section below to ask us any questions which you have related to the building the line follower robot car and we would be glad to assist you.
    What are you waiting for ??? Its a FREE service which we would like to offer for all our audience who are watching this video.
    Just like this video and subscribe to our channel and we we glad to assist you !
    ---------------------------------------------------------------------------
    You can purchase the entire Quad Store - Line following robot car kit from Amazon India and their website using the links given below;
    Amazon India Purchase Link:
    www.amazon.in/...
    Quad Store India Website Purchase Link:
    Use Coupon Code: FLASH100 to get Rs 100/- discount
    bit.ly/2UpJBqZ
    --------------------------------------------------------------------------------------------------
    Source code, library and Circuit Diagram link:
    quadstore.in/w...
    ---------------------------------------------------------------------------------------------------
    Tags:
    #ArduinoProjects #ArduinoLineFollower #LineFollowerRobot #ArduinoLineFollowing #ArduinoSmartCar #LinefollowingCar #linefollowerCar #linefollowingRobot #ArduinoSmallProjects #arduinoSchoolprojects #diyarduinoProjects #make #line #following #follower #robot #robo #car #Arduino #ArduinoUnoR3

Komentáře • 83

  • @jumbo999614
    @jumbo999614 Před 8 dny

    what is the distance between 2 sensors? I made my own sensor which is 3cm apart.
    How thick my black tape should be?

  • @mariaknwal7304
    @mariaknwal7304 Před 5 měsíci +1

    Can you please tell me if we can build this without the battery holder pin directly in arduino. I mean, I want to use the Motor Driver shield's external power Pins instead.

  • @sreenureddytechvid
    @sreenureddytechvid Před dnem

    Choose Tools -> Port -> COM4, If you are getting below error while uploading using port COM3
    avrdude: stk500_recv(): programmer is not responding
    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x99

  • @vikramjeetpaul
    @vikramjeetpaul Před 4 lety +4

    G8 project......keep it up!

  • @blueoceans4366
    @blueoceans4366 Před 3 lety +2

    The link in te description doesn't work anymore. Could you update it please?

  • @vikasgulati1488
    @vikasgulati1488 Před rokem +1

    🙏🙏👍👍👍👍 thanks for this lovely guidance

  • @kasemalrpe4106
    @kasemalrpe4106 Před měsícem

    L293D engine hood problem. Output voltage in m4. 7 volts, and the rest of the outputs are 2 volts

  • @3dgiftz
    @3dgiftz Před 3 lety +6

    I also made line following robot👏👏👏👏

  • @sirampavan6228
    @sirampavan6228 Před 4 lety +1

    Uh um got another problem it says after DC motor does not exist and error

  • @jayq2571
    @jayq2571 Před 2 lety +5

    Amazing! Thank you for this especially this part 9:48

  • @spurthybathula1479
    @spurthybathula1479 Před 2 lety +1

    The code link in description is not opening,if u don't mind can u resend it sir

  • @kavitadhiman8466
    @kavitadhiman8466 Před rokem +1

    Sir i m not able to upload the code there this robot doesn,t work tell me how to upload code

  • @pragadeshchannel330
    @pragadeshchannel330 Před 4 lety +4

    The kit is unavailable when can I get it

    • @QuadStoreRobotics
      @QuadStoreRobotics  Před 4 lety +2

      Dear Pragadesh, This kit is available in Quad Store website. Please refer to below link;
      quadstore.in/shop/arduino/diy-line-following-robot-car-kit-using-arduino-compatible-uno-r3-l293d-shield-ir-sensor-with-step-by-step-video-tutorial/

  • @user-fr3ll3nl3j
    @user-fr3ll3nl3j Před 10 měsíci

    why did it my robot stop when it detect the line and start making blinking sound

  • @user-pt4ft4fr7n
    @user-pt4ft4fr7n Před 2 měsíci

    Is castor wheel necessary

  • @surajitghosh5423
    @surajitghosh5423 Před rokem +2

    What type of battery should be used ? And how much voltage...?? Plz reply 🙏🙏

    • @viharshpaharyapro8008
      @viharshpaharyapro8008 Před 5 měsíci

      Bro are you dumb ofcourse you will have to use branded AA batteries like Duracell
      Each having 1.5v each

  • @DilipKumar-zp7ns
    @DilipKumar-zp7ns Před 3 lety

    @quadstore ,please help, when my right sensor detects black color, my left sensor detects as well( but my left sensor is not on a black line). The light goes off in both sensors , but only right sensor is on black line , and even my 4 wheel dont rotate backwards after detecting black surface , helppppp!

  • @mitchellbetts5818
    @mitchellbetts5818 Před 3 lety +1

    I have a question about the code. During the if statements, [ "if(analogRead(lefts)

    • @nilimakulkarni4541
      @nilimakulkarni4541 Před 4 měsíci

      adjust the numbers as per ambient conditions and reflectiveness of surface

  • @kavithasuresh4604
    @kavithasuresh4604 Před 6 měsíci

    What if sensor is not working pls reply i want it by tommorow

  • @gorkemsivrifanclub8568

    I can't start my engines, what do you think could be the reason?

  • @TheFunniestGamerVedu
    @TheFunniestGamerVedu Před 6 měsíci

    It is not following the line .Please help me!

  • @vikramjeetpaul
    @vikramjeetpaul Před 4 lety +2

    Sir can you plz attach a servo and an ultrasonic sensor in front of this car, so that when an obstacle is detected in front of the robot (while in the black line) then the ultrasonic sensor will rotate right and left (with the help of the servo ) and then avoid the obstacle and then move back to the track!
    IT WILL BE GREAT IF YOU CAN MAKE IT....PLZ!

    • @QuadStoreRobotics
      @QuadStoreRobotics  Před 4 lety +1

      OK we will try to make a video

    • @vikramjeetpaul
      @vikramjeetpaul Před 4 lety

      @@QuadStoreRobotics Yes, sir thank u. Anyway, I have solved the problem, I have reduced the motor speed to 110 from 180.

  • @yaseenqureshi8717
    @yaseenqureshi8717 Před 15 dny

    Name of the application?

  • @veggalamharini929
    @veggalamharini929 Před 2 lety +2

    Hey
    The code is not working.
    Can you guide me how to do it.

  • @agent101_omm9
    @agent101_omm9 Před 5 měsíci

    i am having problems with my motors(they r working when directly connected)

  • @priyankayadav-kn4tt
    @priyankayadav-kn4tt Před měsícem

    Where is the code

  • @shivenrajotia8907
    @shivenrajotia8907 Před 3 lety +1

    How to tune IR sensor

  • @abhayreddytigai
    @abhayreddytigai Před rokem

    Bro how much it costs to prepare it

  • @Revusic
    @Revusic Před 7 měsíci

    How to make it faster

  • @druhinmondal8747
    @druhinmondal8747 Před 3 měsíci

    How to insert the code??

  • @dilumacademy7674
    @dilumacademy7674 Před 2 lety +1

    ᴡᴏᴡ❤️

  • @WealthCraftsmen
    @WealthCraftsmen Před 2 lety +1

    I tried building it but the code it too old and I read through the zip file and it doesn't work

  • @jatinraj7204
    @jatinraj7204 Před 3 lety +1

    Sir can we get the circuit diagram ??

  • @donofficials3711
    @donofficials3711 Před 2 lety

    can this robot detect bumps and act accordingly??

  • @sunita-nirankar
    @sunita-nirankar Před 9 měsíci

    sir pla mera madat krdo parsho mera exhibition h

  • @sirampavan6228
    @sirampavan6228 Před 4 lety +2

    Can pls send me the code

  • @toobariaz8890
    @toobariaz8890 Před 2 lety

    this code is not working

  • @sirampavan6228
    @sirampavan6228 Před 4 lety

    Can I contact you ?

  • @elektronikahendry7707
    @elektronikahendry7707 Před 3 lety

    mantaf

  • @AnujKumar-xl3ge
    @AnujKumar-xl3ge Před 5 měsíci

    Hamko bhi college me dena hai

  • @tanishtated1926
    @tanishtated1926 Před 4 lety

    can you make for 4 motors

  • @kamalchandrabhawsar3
    @kamalchandrabhawsar3 Před rokem

    Are sir mujhe iski commonds chahiye

  • @arunsheelam4457
    @arunsheelam4457 Před 3 lety

    Please send the code sir

    • @QuadStoreRobotics
      @QuadStoreRobotics  Před 3 lety

      We have updated the link of the code. Pls check now and download from the description section.

  • @Siddhivinayak600
    @Siddhivinayak600 Před 3 lety

    Please send me Arduino Uno code

    • @QuadStoreRobotics
      @QuadStoreRobotics  Před 3 lety

      We have updated the link of the code. Pls check now and download from the description section.

  • @AnujKumar-xl3ge
    @AnujKumar-xl3ge Před 5 měsíci

    Las year hai 2 month tum hi hai

  • @sirampavan6228
    @sirampavan6228 Před 4 lety +2

    a problem in the code plz figure this :
    Arduino: 1.8.10 (Windows 10), Board: "Arduino/Genuino Uno"
    sketch_dec22b:5:1: error: 'AF_DCMotor' does not name a type; did you mean 'Adafruit_DCMotor'?
    AF_DCMotor motor(2, MOTOR12_64KHZ); // create motor #2, 64KHz pwm
    ^~~~~~~~~~
    Adafruit_DCMotor
    C:\Users\DELL\Documents\Arduino\sketch_dec22b\sketch_dec22b.ino: In function 'void setup()':
    sketch_dec22b:11:3: error: 'motor' was not declared in this scope
    motor.setSpeed(200); // set the speed to 200/255
    ^~~~~
    C:\Users\DELL\Documents\Arduino\sketch_dec22b\sketch_dec22b.ino: In function 'void loop()':
    sketch_dec22b:17:3: error: 'motor' was not declared in this scope
    motor.run(FORWARD); // turn it on going forward
    ^~~~~
    C:\Users\DELL\Documents\Arduino\sketch_dec22b\sketch_dec22b.ino: In function 'void setup()':
    sketch_dec22b:27:7: error: redefinition of 'void setup()'
    }void setup() {
    ^~~~~
    C:\Users\DELL\Documents\Arduino\sketch_dec22b\sketch_dec22b.ino:7:6: note: 'void setup()' previously defined here
    void setup() {
    ^~~~~
    C:\Users\DELL\Documents\Arduino\sketch_dec22b\sketch_dec22b.ino: In function 'void loop()':
    sketch_dec22b:32:6: error: redefinition of 'void loop()'
    void loop() {
    ^~~~
    C:\Users\DELL\Documents\Arduino\sketch_dec22b\sketch_dec22b.ino:14:6: note: 'void loop()' previously defined here
    void loop() {
    ^~~~
    Multiple libraries were found for "Adafruit_MotorShield.h"
    Used: C:\Users\DELL\Documents\Arduino\libraries\Adafruit_Motor_Shield_V2_Library-master
    Multiple libraries were found for "Wire.h"
    Used: C:\Program
    exit status 1
    'AF_DCMotor' does not name a type; did you mean 'Adafruit_DCMotor'?
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    • @QuadStoreRobotics
      @QuadStoreRobotics  Před 4 lety +1

      You have not installed the required libraries. Please install all the library so that you will not receive the error message.

    • @sirampavan6228
      @sirampavan6228 Před 4 lety

      @@QuadStoreRobotics ok

    • @Inhale_8632
      @Inhale_8632 Před 2 lety

      @@QuadStoreRobotics how

    • @kpieceemmry3387
      @kpieceemmry3387 Před 11 měsíci

      @@QuadStoreRoboticsaside the library you installed in your video which other library do we need to install again?

    • @kpieceemmry3387
      @kpieceemmry3387 Před 11 měsíci

      I need help urgently as I have boasted that I can do this project 😅to my students
      It’s unfortunate for me I have been on this project for four days and I can’t even make my robot wheel spin despite doing exactly what you did in the video@ Quadstore😅

  • @AnujKumar-xl3ge
    @AnujKumar-xl3ge Před 5 měsíci

    Aapka number mil jayega sir