Line Following / Tracking Robot Car (Arduino and QTR-8 Sensor)

Поделиться
HTML-код
  • Опубликовано: 10 дек 2016
  • In this tutorial, you will make arduino line following / tracking robot. This tutorial involves building a line follower robot with an QTR-8 Infrared Sensor.
    Required Hardware:
    1x Arduino UNO R3:
    bit.ly/2xt9MVk
    amzn.to/2LZr6t4
    1x L293D Motor Drive Shield:
    bit.ly/2H7vmy9
    amzn.to/3qADuic
    QTR 8 Infrared Sensor:
    www.pololu.com/product/961
    2x Wheel and Gear Motor:
    bit.ly/2RXAWLS
    amzn.to/2M2pChV
    3 in 1 Jumper Wire:
    bit.ly/2J6de9E
    amzn.to/3doetmT
    2WD Robot Car Chassis Kit:
    bit.ly/2sqIHgy
    amzn.to/3s1ptur
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C
    37 Sensor & Module Packages - amzn.to/3m66WeQ
    Try this Robot Arm - amzn.to/3fq8DCl
    Best Resin 3D Printer - amzn.to/39tY8KB
    Arduino Compatible Kits - bit.ly/2J2AFF7
    - Download AFMotor.h library: learn.adafruit.com/adafruit-m...
    Uncompress the ZIP file onto your desktop
    Place the AFMotor folder into your arduinosketchfolder/libraries folder
    Rename the uncompressed folder AFMotor
    - Download QTR-8 library: github.com/pololu/qtr-sensors...
    Rename the folder “qtr-sensors-arduino-xxxx” to “QTRSensors”
    Drag the “QTRSensors” folder into the “libraries” directory inside your Arduino sketchbook directory
    Source Code: github.com/MertArduino/Arduin...
    Connections :
    - DC Motors connect to the Motor Shield
    - Left Motors connect to M1
    - Right Motors connect to M2
    - The QTR-8 Sensor Connections
    The Sensor VCC connect to the Arduino +5V
    The Sensor GND connect to the Arduino Ground
    The Sensor pin 2 connect to the Arduino Analog 0
    The Sensor pin 3 connect to the Arduino Analog 1
    The Sensor pin 4 connect to the Arduino Analog 2
    The Sensor pin 5 connect to the Arduino Analog 3
    The Sensor pin 6 connect to the Arduino Analog 4
    - Battery and on / off button connection
    The (+) from the battery is connect to a leg of the button
    Connect a cable to the other legs of the button. This cable is for Motor Shield (+)
  • НаукаНаука

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

  • @maker101io
    @maker101io  3 года назад +6

    Source Code: github.com/MertArduino/Arduino-Line-Following-Robot
    Recommended Items:
    Use Your Muscles in Project - amzn.to/3wdL45C​
    37 Sensor & Module Packages - amzn.to/3m66WeQ​
    Try this Robot Arm - amzn.to/3fq8DCl​
    Best Resin 3D Printer - amzn.to/39tY8KB​
    Arduino Compatible Kits - bit.ly/2J2AFF7

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

      i am getting this line as error
      QTRSensorsRC qtrrc((unsigned char[]) { A4,A3,A2,A1,A0} ,NUM_SENSORS, TIMEOUT, EMITTER_PIN);
      help me out

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

      i am getting this line as error
      QTRSensorsRC qtrrc((unsigned char[]) { A4,A3,A2,A1,A0} ,NUM_SENSORS, TIMEOUT, EMITTER_PIN);
      help me out

  • @erembirkan6388
    @erembirkan6388 6 лет назад +3

    Mert it is so nice to see Turks running the robotics!
    I love the stuff you are doing,

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

    bu konuda izlediğim en anlaşılan vide tebrik ederim

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

    Thats a very detailed video. Thanks for the code and all too

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

    U r great thanks for this wonderful video I was searching for this video finally I got it's such a wonderful video better than any other video of the same kind thank you

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

    Seriously bro, AWESOME!!!!

  • @annietirado5198
    @annietirado5198 7 лет назад

    Thank you so much! a blessing for me!

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

    made me make this project bro! great for giving the program thnx bro!

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

    Thank you very much for your work

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

    Why did you connect it to analog pins when giving 8rc digital output?

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

    Awesome work bro

  • @neilmitra4627
    @neilmitra4627 7 лет назад +3

    Quick question, how did you add the lights? I subbed btw....Amazing vids.:)😀

  • @codingtimes3199
    @codingtimes3199 7 лет назад +1

    tres bon projet et bien fait

  • @brayansantos6852
    @brayansantos6852 7 лет назад

    this video helped me get a good grade on my final. thanks man !

    • @weekendprogrammer7545
      @weekendprogrammer7545 7 лет назад

      Brayan Santos Did it work without out USB

    • @brayansantos6852
      @brayansantos6852 7 лет назад

      yeah it did, just make sure you use a higher voltage battery I used a 9v battery in my case

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

    Sir, have you used separate code for the PID control during the coding of arduino UNO

  • @ThePhildozer89
    @ThePhildozer89 7 лет назад +1

    Pretty cool! I have a question though, do you know of a way that you can use this code and then have the robot stop when it reaches a solid black line?? I am working on a project now that this would be helpful for and I'm not so good at coding and figuring this stuff out.

  • @Dhilinraj
    @Dhilinraj 7 лет назад +4

    I have qrt 8a (not 8rc) can i use this

  • @nihalkeetha
    @nihalkeetha 7 лет назад +16

    Even its great that you are saying how to install library in the same video seriously bro u have a very god thinking skills

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

    Thanku tomorrow is my practicle

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

    hi ! I appreciate very much your video, it is one of the most precise that I could find, I have the sensor but I do not know where I have to put the resistance provided with? thanks a lot for your help :)

  • @ahmetbesmi7137
    @ahmetbesmi7137 7 лет назад

    Hi! I really like your guide and I have a question. If I were to use 4 DC Motors would a single 9V battery be sufficient enough to power the robot?
    Thank you!

  • @m.redzwuan8994
    @m.redzwuan8994 7 лет назад

    great video.. i have a question, does it need 2 dc motor or can i only use 1 motor? and also can i use different chassis (eg RC chassis)

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

    From where i will get qtr -8 rc reflectance sensor please, suggest
    I have gone to all places in my hometown patna , but i don't found this sensor

  • @nihalkeetha
    @nihalkeetha 7 лет назад

    Dude your awsm man you just created ur own webpage.. though your subscribers be less but you have all the things which a pro you tuber has like knowledge, webpage, cool fans like me and all

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

    Türk olduğunu tahmin etmemiştim saol çok iyi video

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

    How are you using the QTR-8RC board which has digital output and have the robot working when you wire the sensors to the analog inputs????????

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

    If we attach 4 motors there will be different codes or not?

  • @Wanderlust1342
    @Wanderlust1342 7 лет назад +1

    which batteries are best for this project?

  • @NaraBage
    @NaraBage 6 лет назад +2

    can i use tcrt5000 sensor instead of qtr sensor and use the same code?

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

    The programming part is very difficult to understand.
    Can you suggest this line follower with the help of XOD.

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

    where did u get the qtr 8rc reflectance sensor

  • @ejazanjum1498
    @ejazanjum1498 7 лет назад

    MERT KILIC I AM YOUR FANNNN
    👏👏👏👏

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

    Harika video emeğine sağlık! Peki aracın daha hızlı gitmesini ve aynı zamanda daha hızlı tepki vermesini nasıl sağlarız?

  • @sumeshkumar9086
    @sumeshkumar9086 7 лет назад

    also sir about drone like robot controlled by android or voice detection sensor and ur explanation is superb sir and thanku sir

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

    Can this robot only follow a continuous black line without any gap????
    if there is a gap of white (5 cm) in the main black line of the track..then will this robot follow it?

  • @perspirator250
    @perspirator250 7 лет назад +1

    Will the code still work if I plug the reflective sensor directly to the arduino board?

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

    Plz tell me
    How to use
    IR sensor
    Instead of QBR sensor

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

    Merhaba eline koluna sağlık QTR Sensor Analog mu Digital mi Hocam

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

    is it okay to use IR sensor instead of reflectance sensor?

  • @siddhikadichwalkar751
    @siddhikadichwalkar751 7 лет назад

    what changes are required in code n circuit... if i m using array of sensors instead of QTR reflectance sensor...??

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

    can ya help me with the wiring using a normal infrared line following sensor with the same board

  • @shubhrachatterjee
    @shubhrachatterjee 7 лет назад

    Can you please suggest me the changes in the code if I use an IR sensor array similar to that of QTR 8RC sensor but not the exact one shown in the video.

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

    Wow amazing🤩

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

    sir i want to use gyroscope instead of castor wheel please tell me the changes i have to make

  • @abir95571
    @abir95571 7 лет назад

    could you give a link where i can understand , the reflectance sensor . Coz i am curios why do we need array of 5 sensors why not 1 or 2 sufficient ?

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

    hi,do you need to calibrate the sensor first?

  • @petermaker76
    @petermaker76 7 лет назад

    like sound sensor,gas sensor and ultrasonic sensor

  • @wamiqfahim9123
    @wamiqfahim9123 7 лет назад

    Phenomenal actually. Would appreciate if you could explain the coding behind the PD.

    • @wamiqfahim9123
      @wamiqfahim9123 7 лет назад

      Oh I know what you mean. Just trying to learn the concept of PID. it will most probably help.:D

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

    Can i hookup a microgear motor instead for faster speed

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

    can i use IR sensors instead ? of course i'm not gonna use the Pololu QTR Sensor Library (unless it is compatible with IR sensors)

  • @somachowdhury7539
    @somachowdhury7539 7 лет назад

    I wanted to know if you have used PID in the line follower?

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

    what is the distance between the sensor and the surface????????

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

    I have the Arduino software version 1.8.16 and a lot of lines in the code have error messages but i followed the instructions exactly as they were on the video. I have both libraries installed but there are still error messages. Could you possibly update the code?

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

    Quick question isn't powering the arduino with 9v bad because it is being powered by 5v?

  • @mushfiqqayyumsaif7358
    @mushfiqqayyumsaif7358 7 лет назад +1

    can I use QTR-8A instead of QTR-8RC???

  • @nehalanwar6904
    @nehalanwar6904 7 лет назад

    Can we use normal l293D motor shield , instead of adafruit motor shield ?? please guide.

  • @petermaker76
    @petermaker76 7 лет назад

    can we use three in one sensor in one aurdino

  • @shubhrachatterjee
    @shubhrachatterjee 7 лет назад

    What changes in the code should i make to make my bot follow white line over black background?

  • @ayushmange
    @ayushmange 7 лет назад

    can you make a project based on Mindwave controlling system

  • @ahmedali-su8en
    @ahmedali-su8en 5 лет назад

    Can I Increase the speed of the motor ? Will the LFR then still work fine?

  • @weekendprogrammer7545
    @weekendprogrammer7545 7 лет назад

    Hi its a very nice video first of all, Actually I am not having QTR 8RC sensor can i use the IR sensor array insted and we dont need any Library for it unlike QTR 8RC? or do we require any library file plz reply fast needed the info for an competition

  • @harshitsharma-so6ko
    @harshitsharma-so6ko 7 лет назад

    Can you tell me what should i do if i have only sensors
    PLZ reply as soon as possible

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

    Hie can u plz upload vdo for learning a Salesforce from scratch

  • @mihirpanchal7231
    @mihirpanchal7231 7 лет назад

    does it necessarily require QTR-8RC sensor, or any other 8 array sensor will do?

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

    Bro..what..type..follower.. Ur..using.. Ex: right edge or left edge or black line??

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

    what's making the car turn?

  • @akashbansal3815
    @akashbansal3815 7 лет назад

    Please make a line follower with l293d and simple our sensors.

  • @kirthickeshwarb64
    @kirthickeshwarb64 7 лет назад

    can we use 6 array sensor instead of this??

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

    sir , Do i need to install another library if I use L298N motor driver(the red colored one)?please could u answer as soon as possible with specified reasons.

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

    Love the music. What song is it?

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

    Can you provide modifications for l298n?😊

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

    How can I make the robot follow a white line on a black surface? Could you please show me how to tweak the code?

  • @pedritoevil
    @pedritoevil 7 лет назад

    Sketch uses 4056 bytes (12%) of program storage space. Maximum is 32256 bytes.
    Global variables use 63 bytes (3%) of dynamic memory, leaving 1985 bytes for local variables. Maximum is 2048 bytes.

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

    Please answer this!
    Why is your error declared as position- 2000? Then for any position of the line the error would be same.
    It should be something like - goal- position isn't it?

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

    How to make a detection robot and fire extinguisher (line flower)

  • @manavsaini1920
    @manavsaini1920 7 лет назад +6

    What you have put at last a yellow box like thing? At 8:15 in video.

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

    What would be the maximum angle to get this buggy up a slope

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

    How we can add intermediate stations or intermediate stops in between track

  • @codingtimes3199
    @codingtimes3199 7 лет назад

    Can you build a trash can which moves only when we throw(cast) a garbage next to her?

  • @yasmeennaz2705
    @yasmeennaz2705 7 лет назад

    Kindly provide me a link to buy the reflectance sensor

  • @pranabsarma18
    @pranabsarma18 7 лет назад

    is the line follower this much fast or you have forwarded the video?

  • @sumitsatyam9056
    @sumitsatyam9056 7 лет назад

    We have a 12v Dc motor ,5v motor shield and 9v battery supply,How can we configure our robot from that ? or we have to use dc step up module and change the motor shield to 12v?? Coz we have to move robot to a inclined surface!

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

    many thanks for this great sharing :-). To new readers: you must use the OLD QTR-sensor v3.0.1 from on Aug 9, 2018. V4 is rewrote according to Pololu BrandonM. The error is "QTRSensorsAnalog does not name a type" if using V4

  • @imanrosli8462
    @imanrosli8462 7 лет назад

    im using ky 033 sensor and L293d motor shield , may you show the coding?

  • @MyChannel-vw9cy
    @MyChannel-vw9cy 7 лет назад

    Veuillez poster plus de vidéo

  • @GurpreetSingh-zh5je
    @GurpreetSingh-zh5je 6 лет назад

    can it enable to find the gap and crosses...? please reply fast

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

    what if we take the same procedures on audrino mega?

  • @somendutta182
    @somendutta182 7 лет назад

    hi i just need a little help...can i use any other IR sensor array instead of the polulu sensor... because its very expensive here....thanks

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

    I m struggling to find Best ir sensor array....plz suggest

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

    are we can use another motor shield

  • @jjjchong
    @jjjchong 7 лет назад

    is it okay if i use line tracking sensor than qtr 8 rc?

  • @gokulakrishna6333
    @gokulakrishna6333 3 месяца назад

    Can we replace the motor shield with motor driver

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

    how to connect separate battery for the motors...

  • @rohitdev5204
    @rohitdev5204 7 лет назад

    in qtr sensor pin 6 name is also CLP

  • @fizzahikramulhaq4513
    @fizzahikramulhaq4513 7 месяцев назад

    Which one is the callineration button

  • @tiffanye.nichole1995
    @tiffanye.nichole1995 6 лет назад

    If I do not have a on off switch will it still work if i just plug it up to the battery after uploading the code successfully? or do i have to have a switch, i followed this tutorial and it is not working for me.

  • @abhishekdey1630
    @abhishekdey1630 7 лет назад

    If the lines overlap, will this program work??

  • @aymenberkaoui8871
    @aymenberkaoui8871 7 лет назад

    can someone explain me the role of the bovine wheel please

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

    will you please make maze solver bot

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

    Superb , unique method
    But ,Is it edited video❓ or it's original speed of line follower