How to Make a Line Follower Robot using Arduino | IR Sensor | Easy to Make Line Follower Robot

Поделиться
HTML-код
  • Опубликовано: 6 июл 2024
  • In this video, I will teach you how to make a line follower robot using Arduino. The robot will be able to follow a black line on a white background. These kinds of robots have many uses. For example, they are used as warehouse robots. Tune in for making one yourself.
    Subscribe, it's free 💖: ruclips.net/user/TechNuttiez?s...
    📝 Instructable (Code and Components):
    www.instructables.com/id/Line...
    🤖 I buy all of my tech-related hardware components from:
    www.quartzcomponents.com
    ✅ I buy all of my 3D printed parts from:
    www.iamrapid.com
    🔍 Find Me:
    RUclips: / technuttiez
    Instructables: www.instructables.com/member/...
    Instagram: / technuttiez
    Facebook: / technuttiez
    LinkedIn(Tech Nuttiez): / technuttiez
    LinkedIn(Aarav Garg): / aaravgarg
    Hackster.io: www.hackster.io/aaravgarg
    🎥 Related Videos:
    DIY Flex Sensor: • How to Make FLEX Senso...
    How To Make Obstacle Avoiding Robot: • How to Make Obstacle A...
    How To Make a Pocket Weather Station using Arduino: • How to Make Pocket Wea...
    📚 Chapters:
    0:00 Demonstration
    0:26 The Build Begins
    7:06 Adding Electronic Components
    9:51 Wiring
    12:45 Coding
    13:09 Thanks For Watching
    🎵 Music:
    Song: Fade - Alan Walker [NCS Release]
    Music provided by NoCopyrightSounds
    Watch: • Video
    Thanks for Watching. Stay Tuned!
    Tech Nuttiez by Aarav Garg
    #LineFollowerRobot #Arduino #TechNuttiez
  • НаукаНаука

Комментарии • 257

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

    The code for this project can be found in the below stated link:-
    www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

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

      the code cannot be downloaded.
      ​How can I get it?
      ​Please, I need it for a student project
      ​Thanx

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

      You can get the code on the above stated link only. That is the link to my instructable on the line follower robot. Just scroll down to the coding section and you can get the Arduino program file there which can be downloaded...

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

      Your linoBot_v1.0_1 program one problem

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

      [#include ] is not verify

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

      Well, for that you will need to download the library from GitHub. After downloading the zip file, include it in the sketch. You can find detailed solutions to this aspect on the internet. Kindly make use of that...

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

    What jumper are you using

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

    I have made all connections and coding but the left sensor is unable to rotate the motors, it reacts when black colour comes but it's unable to send signal to the motor and act accordingly, can u pls tell me where is the problem.
    The right sensor is working well it sends signals to motor but both rotate in same direction.

  • @Rockstar_Rajesh07
    @Rockstar_Rajesh07 11 месяцев назад

    Tq brother really great work. Very useful for me ❤

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

    Very helpful bro

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

    My motor driver shield doesn't include the pins which you used at 10:13. Maybe it is older version. Pls help on the same.pls reply

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

      You need to solder the pins on the motor driver board...

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

    Good job keep it up
    God bless you bachcha

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

    What wires did you use at 6:43. I connected the wires from the battery pack to the switch, but I'm confused what wires I should use to connect the motors, can I use the wires that are meant to connect into the breadboard, or do I have to buy separate wires?

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

      You can use any kind of wire. The objective is to conduct electricity. The type of wire depends on the availability. Thank You

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

    I made it sir and ur video helped me a lot ... thanks

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

      Thanks for watching. Keep up with us to get to know more projects. If your robot is working kindly send it to gargaarav79@gmail.com

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

      Please help me

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

      How did you do it? Can you teach me?

  • @earlcedricescayde5200
    @earlcedricescayde5200 Год назад +2

    Hi is it ok to use 9v battery? because using 4 AA batteries is not enough to power the 2 dc motor
    Need an answer ASAP
    Also thanks for this easy demonstration!

    • @TechNuttiez
      @TechNuttiez  Год назад +2

      Yes, until you are able to power your motors and Arduino board, it shall be fine.
      Also, when you are done building your project, do upload it in the "I Made It" section here: www.instructables.com/Line-Follower-Robot-Using-Arduino-2/

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

    Hello Sir ,Can i use the first 15 sec of your video in my arduino tutorial? I just want to show an example of arduino in my video

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

      Yeah, Sure u can. Just give a link to my channel in the description!

  • @noobiegaming-cr
    @noobiegaming-cr 3 года назад +1

    Greattt!!

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

    Hello Good day, I have a question hopefully you will notice me and please reply.
    I followed all the steps on how to make a line follower Car and I've done assembling it and I already upload the code in the Arduino. The sensors and Arduino and Motor Shield are already functions but the DC MOTOR is not Working. I think it all about the code and What would I need to do to make DC Motor functional? The DC motor is Good condition but I think Theres wrong in my Code that I've download. Or I just need to change some variables on the code? Please help me on how to make it work ... Thank You

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

      Hello,
      First try to connect both the DC motors one by one to the battery and check whether it is working or not. If it is working then check whether the pin to which you have connected your motors on the Arduino are the same as the variables defined in ur code. Your variable values might be different than mine becoz you may connect to a different pin so define according to your connections.
      Even if they don't work then you just write a new code file to just run the motors. You can find that sample code on the internet.
      By using this you will surely get results.
      Aarav Garg

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

    Bro Im using motor driver not a motor shield will it work? Still the same code?

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

    Sir how do I connect the battery holder to the switch and then to the shield with same wires?

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

      The negative from the battery holder goes directly to the shield. For the positive just add the switch in between the positive wire connection!

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

    Sir if I use 9v battery,then
    Will it work or not?

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

      You can surely use a 9v battery as an Arduino can accept 9v easily. Thanks for watching...

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

    Sir? What will be my ARDUINO UNO : PROGRAMMER?

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

    Great job! I just take your final code to do my finally project, and it was amazing :) thank you so much.

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

      Could I ask you a question about the connections? I am having a hard time figuring out what wires to use to connect the motors, and I wanted to make sure I hooked up my battery pack to the switch correctly. Thank you in advance!

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

      Great job!

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

      Head over to my article regarding the bot on instructables.com and u will find it there! It is in the description!

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

    Thanks for the code I finally made my project and it worked!!! Thanks a lot!!

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

      Great! Please subscribe and give a thumbs up to the video...

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

      can it move through the line gap??

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

      I didn't understand what you mean to say...

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

    How to connect ir sensors to Arduino as motor driver is stacked on Arduino

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

      The motor driver has certain I/O pins connected to the Arduino board, where the IR sensors can be plugged in!

  • @Abhishek-td6ze
    @Abhishek-td6ze 3 года назад +1

    Hello bro actually I have made four wheels ka robot which is unable to take 90 degrees turn
    With the help of front wheel Like used in this video will it take 90 degree turn?

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

      Yeah sure. Even a 4wd robot can take 90 degree turn with proper programming. The angle has nothing to do with the no of wheels

    • @Abhishek-td6ze
      @Abhishek-td6ze 3 года назад +1

      @@TechNuttiez so the programming used in this video will surely help me thank you brother

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

      Great! Do share with the right audience for better reach! And don't forget to smash that subscribe button!

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

    I tried the sensor with a small range led's. your code reacts the opposite. whenever I put it on the floor, it stops. and whenever it detects the line, it moves. so, what I did is swap the situations. whenever the situation detects and does not detect the line.

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

      Instead of changing situations take my code and change the motor movements. That should probably work...

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

    Wow! Your channel have become even more popular👍🏻

  • @rvzlproject
    @rvzlproject 2 года назад +2

    IM from Indonesia good job

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

    Good job Bhai

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

    On which the line follower robot is moving sir

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

      it is a black insulation tape....

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

    I have made this project but some problem is coming and it's not working what shall I do

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

    Am facing an issue regarding DC motor.. Plz help me out..
    While checking dc motors, on powering it doesn't move.. But if I rotate once by hand it starts moving. I donno watz going wrong.. Suggest me some solution... Plz

    • @HunTer-uo5gs
      @HunTer-uo5gs 4 года назад

      Put a grip to wheels

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

      It is a power issue. Try using a better and a newer battery or a better power source. Or try using motors with better gearboxes!

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

    Hi , Amazing video
    How is the arduino working without being connected to the laptop, i mean how do we dump code on arduino?

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

      Thanks for watching. The Arduino doesn't have to remain connected to the laptop all the time. We must upload code to the Arduino board through the IDE itself and then can disconnect the board from the laptop. We will have to just use a power supply to keep the board alive :)

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

    I made all the connections, uploaded your code, even the lights are blinking now but it still doesn’t move. I’ve connected 4 batteries of 1.5V. What do you think the problem is?

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

      Your robot may not work in the exact same code configuration. You might have to make changes...

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

    Sir can I use L293D motor driver mini board (deek robot V1)?? If yes can you send me the circuit diagram using l293D mini board??plz reply I need it for my experiment.

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

      If you want to use L293D mini board you can. You have to connect motor pins to IN1, IN2, IN3, and IN4. Then you will have to connect the board's output pins to the Arduino board. You will have to change the code accordingly...

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

      Thanks a lot

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

    Sir as i keep it on the floor the wheels stop rotating what can i do pls help

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

      You need a higher power supply. Also, try increasing the rpm of the motors in the code...

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

      @@TechNuttiez ty

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

    How can I get this code?..coz the file that u gave for the code is not opening

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

      Head over to my article regarding the bot on instructables.com and u will find it there! It is in the description!

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

    Where can i get ir sensors in hyderabad

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

      Gujarathi Galli
      Koti, Hyderabad, Telangana 500095
      goo.gl/maps/YE8zoGC1LH92

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

    I have succeeded. My sensor light is on, but the sensor cannot detect the line. Are there errors in the program? Please help me please.. fast respon

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

      It can be in the program or your sensors too. Try changing the program to match your robot. Also try tweaking the rotary potentiometers on the IR sensors till it works!

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

    can't open your code

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

    I have the same line fllower

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

    My motorshield is not having those ports to connect irs

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

      Just connect it to any analog pin. The ports may not be readily available but you may have to solder male pin headers...

  • @awanspeaksofficial6720
    @awanspeaksofficial6720 6 лет назад

    from were i can download code for this

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

      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

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

    Ok

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

    can you help me about "Problem Uplouding to board" at apk. arduino... please fast respon :)

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

      yeah... it's quite simple... just go to the tools in your Arduino IDE and for the Arduino board select the right board that you are using... That should mostly resolve the problem.. Even worse sometimes loose or faulty connections or cables also lead to such errors...

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

    Thank you. Very easy to understand

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

    المسافه بين السينسورز كبيره

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

    I think it's not taking initial torque.. Plz help me out...

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

      Give the wheels a manual push at the start! It is mostly a battery or a power issue! Try using a better power source or better motors!

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

    Actually my robot is moving when sensing black line and stopping at other colors ...how to fix it

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

      I didn't get your doubt. Please state the problem more clearly.

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

      By the way, congrats as you are my hundredth comment...

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

      Actullay my robots both ir sensor senses black it keeps moving and when it senses white color it stops...that is it works in reverse process

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

      @@TechNuttiez my robo works in reverse process

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

      @@Techy004 may there are 2 types of ir sensors in the market one which gives 0 when it detects black color and other gives 1 on detecting black color'

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

    Can increase the speed of the robot?

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

      Yeah, you can do that by changing the MAX_SPEED variable in the code!

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

      @@TechNuttiez 👍thank you

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

    plss give me the diagram .....ardiuno connection with motor sild and ir sensor....plss

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

      Everything in the description.. Pls have a look...

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

    how to do this with 4wd

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

      Just connect the left two motors and consider it as the left motor and the right two motors as the right motor after connecting it...
      Rest all same...

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

    Please help me. It reacts the opposite. Instead of the black as the line, its the white that it follows.

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

      Just reverse the conditions or the IF values.... That would probably solve it..

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

    I have a library error "" how to fix it? thanks

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

      You have to first go to GitHub and download the AF motor library. After doing that you can include the library in your program. You can find very good detailed documents on how to do this on the web...

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

    My robot is not responding. I used Digital IR sensor TCRT5000

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

      It may not be the fault on the IR sensor until you are connecting it directly to Arduino without using resistors...

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

      Which resistor should i use?

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

    I Got A Problem. Problem Is My Line Following Robot Is Not Working For Light. It's Working For Distance Please Help Me.

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

      Tweak the IR sensor potentiometers!

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

    what deos encoder do ?

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

      May I know exactly which encoder?

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

      @@TechNuttiez black encoder, we put on the back of the yellow motor

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

      @@yahyayozo8660 Ignore that... That does nothing! It's just like that and has no use!

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

      @@TechNuttiezthank you so much , that really was confusing me

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

      @@yahyayozo8660 Anytime buddy :) Do subscribe and also ask your friends to! Tag me on social by using @technuttiez :D

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

    Thank You Sir !! It was Very Helpful. I Appreciate your Work 🥰🖤🖤

  • @awanspeaksofficial6720
    @awanspeaksofficial6720 6 лет назад

    CAN YOU GIVE ME THIS CODE AND CAN YOU TELL ME HOW TO UPLOAD IT

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

      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/ is the link where you can find the code. For uploading, connect your arduino board, select your port in the arduino IDE and just click the upload button...

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

    Could you please attach the circuit diagram for the above project? I think that would be really helpful...great going, by the way...good job!

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

      Thanks.. The link to the circuit diagram and the code along with all the instructions is clearly attached in the description...

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

      @@TechNuttiez i only see the code in your description...please try to add the circuit diagram

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

      The circuit diagram is also present in the link that I have mentioned in the description of the video. That is the link to my instructable where you can find all details like the components, code and also the circuit diagram...
      Thank you!!

  • @Parth_188
    @Parth_188 6 лет назад

    Nice dud

    • @TechNuttiez
      @TechNuttiez  6 лет назад +1

      Thanks... Please subscribe...

    • @Parth_188
      @Parth_188 6 лет назад +1

      Tech Nuttiez I subbed upload more videos to gain more subs

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

    i ve uploaded the code but when i unpug the arduino it does noot do anything what do i need o do ive tried everything

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

      You have to try to find out where the error is. First try and check whether the motors are working by directly connecting the motors to the power source. Then try to check whether the sensors are working by trying to print their values on the serial monitor. Then finally check in the code of the line follower robot whether the pins specified in the code are the same as you have connected to the Arduino. If all this fine then try to check the error in the code by reading it fully.

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

      @@TechNuttiez i have already fixed it the battery holder that came with the kit didn't work

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

      Awesome bro.

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

    sir when i have uploded the the program it has become obstacle avoiding instead of line following what to do.
    when any thing comes near the sensor motor stops rotating and when it is removed motor starts running again.
    can u plzz tell me the solution

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

      Try to reverse the conditions of ur program. Basically wherever there is HIGH convert it to LOW and wherever there is LOW convert it to HIGH.
      This shd probably solve your problem.

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

      @@TechNuttiez but the problem is that the sensor is sensing ever thing tinted of sencing white or black

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

      @@TechNuttiez do I have to change value

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

      Ya try changing less than 400 to 0 and greater than 400 to 1

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

      @@TechNuttiez still not working brooo

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

    Schematic diagram pls

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

      Check out my Instructable link in the description!

  • @sowmyasampangi2008
    @sowmyasampangi2008 6 лет назад

    Sir can i get circuit diagrm

    • @TechNuttiez
      @TechNuttiez  6 лет назад

      www.instructables.com/id/Obstacle-Avoiding-Robot-Using-Microcontroller-Ardu/

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

    I have done everything it's moving ............but it's wheel are rotating in opposite direction and more ove fit is not following the black line

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

      Reverse the line sensing algorithm!

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

    when I upload the code theres no such files or directory #include

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

      Just go to github and download the AFmotor library and include it in your program. You can find many articles and videos related to this... Kindly make use of that...

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

      @@TechNuttiez where is the github

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

      any link?

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

      github.com/adafruit/Adafruit-Motor-Shield-library
      Just go to the above mentiond link and you will get the library page. Download the library as a zip file. Then in your arduino IDE, you will have an option of include at the top. Click on it and then click add zip file. Just add the downloaded zip file and you are all set to go...
      Thanks for watching. Make sure to subscribe...

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

    Please send code

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

    How many volts it requires to run

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

      Please help me i have my exhibition

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

      It can be fine with 6v - 12v. Best would be using 9v.

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

      @@TechNuttiez only 1 battery would be enough

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

      How to make line

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

      Will it work in any line

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

    Dope

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

    I can't download AH LIBRARY PLEASE HELP

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

      You have to go to GitHub and then download the library. That's the only way...

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

    Bro can you help me with the coding?

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

    Hai

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

    Broo.... programs link.....?????

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

      Hi,
      You can find program here,
      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

  • @saumyasrivastava5489
    @saumyasrivastava5489 6 лет назад

    cant get access to code..please tell me how to get the code

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

      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

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

      SAUMYA SRIVASTAVA /*
      This is a line following robot car using Adafruit motor shield and 4 line detecting sensors. Motor speed ranges between 0 to 255 rpm.
      Sensors are set in the following format in the front of the car: rightBackgroundDetector | rightMiddleLineDetector | leftMiddleLineDetector | leftBackgroundDetector
      This code will assume you are starting on a white background with black line; then moving into black background with white line; and when it reach to the end with all white strip it will stop.
      You can set the following variables:
      MAX_SPEED 107 //Maximum speed of motor
      MIN_SPEED 0 //Minimum speed of motor
      TURN_SPEED 97 //Turning speed of motor
      THRESHOLD 500 //Threshold to detect the line sensor, greater than 500 means it detected black line.
      bg_right A5 //Port for right background detector
      ir_right A3 //port for middle right line detector
      ir_left A2 //port for middle left line detector
      bg_left A0 //port for left background detector
      got questions? twitter @ranchmobile
      */
      #include
      #define MAX_SPEED 107
      #define MIN_SPEED 0
      #define TURN_SPEED 97
      #define THRESHOLD 500
      #define bg_right A5
      #define ir_right A3
      #define ir_left A2
      #define bg_left A0
      AF_DCMotor motor1(1, MOTOR12_1KHZ);
      AF_DCMotor motor2(4, MOTOR12_1KHZ);
      boolean leftFlag = false;
      boolean rightFlag = false;
      boolean bgLeftFlag = false;
      boolean bgRightFlag = false;
      int leftSpeed = 0;
      int rightSpeed = 0;
      boolean isInBlackBackground = false;
      boolean isRobotStarted = false;
      boolean isStop = false;
      void setup() {

      Serial.begin(9600);

      pinMode(ir_left, INPUT);
      pinMode(ir_right, INPUT);
      pinMode(bg_left, INPUT);
      pinMode(bg_right, INPUT);

      leftSpeed = TURN_SPEED;
      rightSpeed = TURN_SPEED;

      }
      void loop() {

      checkStatus();

      if(!isStop)
      {
      //Serial.println("Running ... ");

      if(isInBlackBackground)
      {
      followLineOnBlackBG();
      }
      else
      {
      followLineOnWhiteBG();
      }
      }
      else
      {
      halt();
      }

      delay(50);
      }
      void checkStatus()
      {
      bgLeftFlag = isBackgroundLeftDetectorOnBlack();
      bgRightFlag = isBackgroundRightDetectorOnBlack();
      leftFlag = isMiddleLeftDetectorOnBlack();
      rightFlag = isMiddleRightDetectorOnBlack();

      isInBlackBackground = isBlackBackground();

      if(!isRobotStarted)
      {
      isRobotStarted = isStartDetected();
      }

      if(!isStop)
      {
      isStop = isStopDetected();
      }
      }
      boolean isStartDetected()
      {
      return true;
      /*
      if(bgLeftFlag && bgRightFlag && leftFlag && rightFlag)
      {
      return true;
      }
      else
      {
      return false;
      }
      */
      }
      boolean isStopDetected()
      {
      if(!isInBlackBackground)
      {
      return false;
      }

      if((!bgLeftFlag) && (!bgRightFlag) && (!leftFlag) && (!rightFlag))
      {
      return true;
      }
      else
      {
      return false;
      }

      }
      boolean isBlackBackground(){
      if(!isInBlackBackground)
      {
      if(bgLeftFlag && bgRightFlag && ( (!leftFlag) || (!rightFlag)))
      {
      isInBlackBackground = true;
      }
      }

      return isInBlackBackground;
      }
      void speedSet(int left, int right)
      {
      motor1.setSpeed(left);
      motor2.setSpeed(right);
      }
      //Follow on White background
      void followLineOnWhiteBG()
      {
      if(isSteepLeftTurnOnWhiteBG())
      {
      turnLeftSteep();
      }
      else if(isSteepRightTurnOnWhiteBG())
      {
      turnRightSteep();
      }
      else if (isLeftTurnOnWhiteBG())
      {
      turnLeft();
      }
      else if (isRightTurnOnWhiteBG())
      {
      turnRight();
      }
      else if (isSlightLeftTurnOnWhiteBG())
      {
      turnLeftSlight();
      }
      else if (isSlightRightTurnOnWhiteBG())
      {
      turnRightSlight();
      }
      else if (isStrightOnWhiteBG())
      {
      goSlow();//goStright();
      }
      else
      {
      goSlow();
      }
      }
      //Follow on Black background
      void followLineOnBlackBG()
      {
      if(isSteepLeftTurnOnBlackBG())
      {
      turnLeftSteep();
      }
      else if(isSteepRightTurnOnBlackBG())
      {
      turnRightSteep();
      }
      else if (isLeftTurnOnBlackBG())
      {
      turnLeft();
      }
      else if (isRightTurnOnBlackBG())
      {
      turnRight();
      }
      else if (isSlightLeftTurnOnBlackBG())
      {
      turnLeftSlight();
      }
      else if (isSlightRightTurnOnBlackBG())
      {
      turnRightSlight();
      }
      else if (isStrightOnBlackBG())
      {
      goSlow();
      }
      else
      {
      goSlow();
      }
      }
      boolean isSteepLeftTurnOnWhiteBG()
      {
      boolean steepTurn = false;

      if((!bgRightFlag) && (!rightFlag) && (leftFlag && bgLeftFlag))
      {
      steepTurn = true;
      }
      else if((!bgRightFlag) && (!rightFlag) && (!leftFlag) && bgLeftFlag)
      {
      steepTurn = true;
      }
      return steepTurn;
      }
      boolean isLeftTurnOnWhiteBG()
      {
      return ((!bgRightFlag) && (rightFlag && leftFlag && bgLeftFlag));
      }
      boolean isSteepRightTurnOnWhiteBG()
      {
      boolean steepTurn = false;
      if((!bgLeftFlag) && (!leftFlag) && (rightFlag && bgRightFlag))
      {
      steepTurn = true;
      }
      else if((!bgLeftFlag) && (!leftFlag) && (!rightFlag) && bgRightFlag)
      {
      steepTurn = true;
      }
      return steepTurn;
      }
      boolean isRightTurnOnWhiteBG()
      {
      return ((!bgLeftFlag) && (rightFlag && leftFlag && bgRightFlag ));
      }
      boolean isSlightLeftTurnOnWhiteBG()
      {
      return ((!bgLeftFlag) && (!leftFlag) && rightFlag && (!bgRightFlag));
      }
      boolean isSlightRightTurnOnWhiteBG()
      {
      return ((!bgLeftFlag) && leftFlag && (!rightFlag) && (!bgRightFlag));
      }
      boolean isStrightOnWhiteBG()
      {
      return (leftFlag && rightFlag);
      }
      boolean isSteepLeftTurnOnBlackBG()
      {
      boolean steepTurn = false;
      if((bgRightFlag) && (rightFlag) && (!leftFlag && !bgLeftFlag))
      {
      steepTurn = true;
      }
      else if((bgRightFlag) && (rightFlag) && (leftFlag) && !bgLeftFlag)
      {
      steepTurn = true;
      }
      return steepTurn;
      }
      boolean isLeftTurnOnBlackBG()
      {
      return ((bgRightFlag) && (!rightFlag && !leftFlag && !bgLeftFlag));
      }

      boolean isSteepRightTurnOnBlackBG()
      {
      boolean steepTurn = false;
      if((bgLeftFlag) && (leftFlag) && (!rightFlag && !bgRightFlag))
      {
      steepTurn = true;
      }
      else if((bgLeftFlag) && (leftFlag) && (rightFlag) && !bgRightFlag)
      {
      steepTurn = true;
      }
      return steepTurn;
      }
      boolean isRightTurnOnBlackBG()
      {
      return ((bgLeftFlag) && (!rightFlag && !leftFlag && !bgRightFlag ));
      }
      boolean isSlightLeftTurnOnBlackBG()
      {
      return ((bgLeftFlag) && (leftFlag) && !rightFlag && (bgRightFlag));
      }
      boolean isSlightRightTurnOnBlackBG()
      {
      return ((bgLeftFlag) && !leftFlag && (rightFlag) && (bgRightFlag));
      }
      boolean isStrightOnBlackBG()
      {
      return (!leftFlag && !rightFlag);
      }
      boolean isMiddleLeftDetectorOnBlack(){
      int sensorValue = analogRead(ir_left);
      if (sensorValue > THRESHOLD){
      return true; //return true for black
      } else{
      return false;
      }
      }
      boolean isMiddleRightDetectorOnBlack(){

      int sensorValue = analogRead(ir_right);

      if (sensorValue > THRESHOLD){
      return true; //return true for black
      } else{
      return false;
      }
      }
      boolean isBackgroundLeftDetectorOnBlack(){
      int sensorValue = analogRead(bg_left);

      if (sensorValue > THRESHOLD){
      return true; //return true for black
      } else{
      return false;
      }
      }
      boolean isBackgroundRightDetectorOnBlack(){
      int sensorValue = analogRead(bg_right);
      if (sensorValue > THRESHOLD){
      return true; //return true for black
      } else{
      return false;
      }
      }
      void goStright(){
      Serial.println("go straight ");
      speedSet(MAX_SPEED,MAX_SPEED);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      delay(250);
      }
      void goSlow(){
      Serial.println("go slow ");
      speedSet(TURN_SPEED,TURN_SPEED);
      motor1.run(FORWARD);
      motor2.run(FORWARD);
      }
      void turnLeft(){

      Serial.println("turn left ");
      speedSet(MIN_SPEED,TURN_SPEED);
      motor2.run(FORWARD);
      delay(250);
      }
      void turnRight(){

      Serial.println("turn right ");
      speedSet(TURN_SPEED,MIN_SPEED);
      motor1.run(FORWARD);
      delay(250);
      }
      void turnLeftSlight(){

      Serial.println("turn left slight");
      speedSet(MIN_SPEED,TURN_SPEED);
      motor2.run(FORWARD);
      }
      void turnRightSlight(){

      Serial.println("turn right slight");
      speedSet(TURN_SPEED,MIN_SPEED);
      motor1.run(FORWARD);
      }
      void turnLeftSteep(){

      Serial.println("turn left steep");
      speedSet(MIN_SPEED,MAX_SPEED);
      motor2.run(FORWARD);
      delay(500);
      }
      void turnRightSteep(){

      Serial.println("turn right steep");
      speedSet(MAX_SPEED,MIN_SPEED);
      motor1.run(FORWARD);
      delay(500);
      }
      void reverse(){

      Serial.println("reverse ");
      motor1.run(BACKWARD);
      motor2.run(BACKWARD);
      }
      void halt(){

      Serial.println("STOP");
      motor1.run(RELEASE);
      motor2.run(RELEASE);
      }

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

    Sir

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

    Sir pls share ir sensors model no..

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

      I don't remember the exact or sensor model that I used, but I am sure that you can use any of the or sensors available in the market without having to make any changes in the program of the robot...😁😁😁

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

    Bro..line follower code pls..it's obstacle avoider code

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

      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

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

    Sir it's showing not for Arduino uno

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

      It can be used in any type of arduino board...

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

    Sir plz provide code for line following car

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

      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

  • @harshithguduru5209
    @harshithguduru5209 6 лет назад +1

    code? where?

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

      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

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

    Pls help

  • @RajeshKumar-ok7qe
    @RajeshKumar-ok7qe 6 лет назад

    Sir plss I need some more information about line following robot plss
    contact with me ,,
    from where I can purchase this parts. Plzz reply

    • @RajeshKumar-ok7qe
      @RajeshKumar-ok7qe 6 лет назад

      Sir

    • @RajeshKumar-ok7qe
      @RajeshKumar-ok7qe 6 лет назад

      Plss reply

    • @TechNuttiez
      @TechNuttiez  6 лет назад

      You can get the parts on Amazon...

    • @RajeshKumar-ok7qe
      @RajeshKumar-ok7qe 6 лет назад +1

      Sir not at all some parts not available on amazon like chasis ,,IR SENSOR ,,BATTERY HOLDER sir plss help I have to make this project can I get your watshup number or mobile number ?? I need information reply plsss

    • @RajeshKumar-ok7qe
      @RajeshKumar-ok7qe 6 лет назад +1

      And sir at Amazon can I get set of parts of line follower robot.if yes then plss send link . All parts at a set

  • @adityafaturrohman901
    @adityafaturrohman901 6 лет назад +1

    Where is the code?

    • @TechNuttiez
      @TechNuttiez  6 лет назад +1

      Check my instructable. You will get the code there. www.instructables.com/id/Autonomous-Line-Follower-Robot-Using-Arduino/
      Thank you for watching

    • @adityafaturrohman901
      @adityafaturrohman901 6 лет назад +1

      Thanks bro

    • @TechNuttiez
      @TechNuttiez  6 лет назад +1

      Make sure to subscribe...

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

    Sir i am trying but error is coming what should i do ????

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

    Your used coding program is paithon

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

      No, I have used c++ programming language... Basically it is c++ but it is coded in the Arduino IDE...

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

      Okkk. I used programs in first time... Okk

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

      you please send me your phone number so we solve the problem

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

      You can contact here:-
      gargaarav79@gmail.com

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

    Ye code file Arduino me open he nhi ho rha

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

      If there is a problem right click on the downloaded file and use - open with "Notepad" and then copy the code and paste in your Arduino file!

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

    Code?

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

      Hi,
      You can find program here,
      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

  • @swethaselvaraj2307
    @swethaselvaraj2307 6 лет назад

    Shall i get your code

    • @TechNuttiez
      @TechNuttiez  6 лет назад

      Yeah sure... I will add the link to my instructable in the description where all the instructions are listed down step by step...

    • @swethaselvaraj2307
      @swethaselvaraj2307 6 лет назад

      Tech Nuttiez waiting for it sir to start my this work

    • @swethaselvaraj2307
      @swethaselvaraj2307 6 лет назад

      And also please say about the arudino board voltage

    • @TechNuttiez
      @TechNuttiez  6 лет назад

      You can give a 9v supply using a 9v battery or use a 12v jack. You can also give 5v power supply. All these should work just fine...

    • @swethaselvaraj2307
      @swethaselvaraj2307 6 лет назад

      sir i gone through your instructables but there is no code on that link sir

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

    Bhai plz coding dedo when nhi haiplz

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

      The code can be found here-
      www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/

  • @jaspreetrooprai
    @jaspreetrooprai 6 лет назад

    I am wondring, why r you not providing a simple code to students... Any special reason..?!!!

    • @TechNuttiez
      @TechNuttiez  6 лет назад

      Sorry for the delay but I will get back to everyone quickly...

    • @TechNuttiez
      @TechNuttiez  6 лет назад

      www.instructables.com/id/Obstacle-Avoiding-Robot-Using-Microcontroller-Ardu/

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

    Sir I have messenged you in Instagram plz reply

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

    How much for this project

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

      Please write to contact@technuttiez.com