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

  Рет қаралды 387,055

Maker 101

Maker 101

Күн бұрын

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...
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...
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/pol...
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/Mer...
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 (+)

Пікірлер: 382
@maker101io
@maker101io 3 жыл бұрын
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 жыл бұрын
Mert it is so nice to see Turks running the robotics! I love the stuff you are doing,
@TNG88
@TNG88 5 жыл бұрын
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
@bechirjradi5275
@bechirjradi5275 2 жыл бұрын
thank u for this great comment
@itsjpr999
@itsjpr999 2 жыл бұрын
ur a god bro!
@harshithsgowda68
@harshithsgowda68 Жыл бұрын
Thanks a lot bro
@nihalkeetha
@nihalkeetha 7 жыл бұрын
Even its great that you are saying how to install library in the same video seriously bro u have a very god thinking skills
@ajtheinventor3998
@ajtheinventor3998 6 жыл бұрын
Sup!
@osmanbelder1483
@osmanbelder1483 Жыл бұрын
bu konuda izlediğim en anlaşılan vide tebrik ederim
@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
@nihalkeetha
@nihalkeetha 7 жыл бұрын
You deserve it bro
@gorkemozgurgenc2700
@gorkemozgurgenc2700 5 жыл бұрын
Türk olduğunu tahmin etmemiştim saol çok iyi video
@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
@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.
@tamiltechthivvyan5979
@tamiltechthivvyan5979 9 ай бұрын
please put the code
@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
@metetabanl4467
@metetabanl4467 9 күн бұрын
çok eğitici bir video olmuş tebrik ederim.
@DTVideom
@DTVideom 2 жыл бұрын
Why did you connect it to analog pins when giving 8rc digital output?
@engineered_insanity
@engineered_insanity 6 жыл бұрын
Thats a very detailed video. Thanks for the code and all too
@hamzarehman112
@hamzarehman112 5 жыл бұрын
what is the distance between the sensor and the surface????????
@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
@ogjarheadd
@ogjarheadd 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?
@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
@kdsatya_6
@kdsatya_6 Жыл бұрын
can u help me?, i always get Compilation error: no matching function for call to 'QTRSensors::QTRSensors(unsigned char [5], int, int, int)', what things need to change?, ASAP pls 🙏🙏
@osmanbelder1483
@osmanbelder1483 Жыл бұрын
siyah zemin beyaz çizgi ayarı nasıl yaparız kodu inceledim bulamadım
@dipanshuaggarwal7089
@dipanshuaggarwal7089 6 жыл бұрын
made me make this project bro! great for giving the program thnx bro!
@mashrafi_m
@mashrafi_m 6 жыл бұрын
Seriously bro, AWESOME!!!!
@NaraBage
@NaraBage 6 жыл бұрын
can i use tcrt5000 sensor instead of qtr sensor and use the same code?
@ejazanjum1498
@ejazanjum1498 7 жыл бұрын
MERT KILIC I AM YOUR FANNNN 👏👏👏👏
@saliksheraz6236
@saliksheraz6236 5 жыл бұрын
Awesome work bro
@nafisfuadjim4817
@nafisfuadjim4817 5 жыл бұрын
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?
@akbarrajani121
@akbarrajani121 6 жыл бұрын
Thank you very much for your work
@jeyapravin5775
@jeyapravin5775 6 жыл бұрын
The programming part is very difficult to understand. Can you suggest this line follower with the help of XOD.
@annietirado5198
@annietirado5198 7 жыл бұрын
Thank you so much! a blessing for me!
@codingtimes3199
@codingtimes3199 7 жыл бұрын
tres bon projet et bien fait
@shraddhanaikade7777
@shraddhanaikade7777 Жыл бұрын
Hie can u plz upload vdo for learning a Salesforce from scratch
@iqrakhan8824
@iqrakhan8824 5 жыл бұрын
Thanku tomorrow is my practicle
@manavsaini1920
@manavsaini1920 7 жыл бұрын
What you have put at last a yellow box like thing? At 8:15 in video.
@altaykilic2142
@altaykilic2142 5 жыл бұрын
Those are DC Motors.
@priyavrattripathi8795
@priyavrattripathi8795 7 жыл бұрын
i am unable to get qtr 8 rc sensor instead i am using normal ir sensor that has only 3 pins GND, VCC can you please tell me how to use it please
@vstop2176
@vstop2176 6 жыл бұрын
priyavrat tripathi same as a0 to a5 and combine all gnd and vCc and used
@coralied506
@coralied506 6 жыл бұрын
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 :)
@ratnesh5630
@ratnesh5630 5 жыл бұрын
Plz tell me How to use IR sensor Instead of QBR sensor
@berkaydikbayr925
@berkaydikbayr925 7 жыл бұрын
As Bayrakları as as as :)
@Anaskhan-hp8bo
@Anaskhan-hp8bo 5 жыл бұрын
the link which one you leave it here its does not working plzzz you also see the code sourse website
@Wanderlust1342
@Wanderlust1342 7 жыл бұрын
which batteries are best for this project?
@mohamedrakha9766
@mohamedrakha9766 6 жыл бұрын
The code is great but why it waits around 10 seconds then start ?
@abhijithab5086
@abhijithab5086 4 жыл бұрын
Wow amazing🤩
@petermaker76
@petermaker76 7 жыл бұрын
like sound sensor,gas sensor and ultrasonic sensor
@MyChannel-vw9cy
@MyChannel-vw9cy 7 жыл бұрын
Veuillez poster plus de vidéo
@codingtimes3199
@codingtimes3199 7 жыл бұрын
Can you build a trash can which moves only when we throw(cast) a garbage next to her?
@rohitdev5204
@rohitdev5204 7 жыл бұрын
in qtr sensor pin 6 name is also CLP
@mathewgigi7251
@mathewgigi7251 5 жыл бұрын
Only one motor is working for me ,can u make a video on possible corrections
@anaeliv4105
@anaeliv4105 Жыл бұрын
Same problem here, did you find a solution? :(
@saswatrath4646
@saswatrath4646 Жыл бұрын
@@anaeliv4105 Did find any solution
@neilmitra4627
@neilmitra4627 7 жыл бұрын
Quick question, how did you add the lights? I subbed btw....Amazing vids.:)😀
@gauravyfrkumar8884
@gauravyfrkumar8884 7 жыл бұрын
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
@NayeemSharker
@NayeemSharker 5 жыл бұрын
only right motor is working
@juliaaalbers6242
@juliaaalbers6242 7 жыл бұрын
How to make the robot wireless, you send the code to the arduino with the laptop, but if you remove the usb connection, he does not do anything anymore
@akbarrajani121
@akbarrajani121 6 жыл бұрын
Love the music. What song is it?
@akashbansal3815
@akashbansal3815 7 жыл бұрын
Please make a line follower with l293d and simple our sensors.
@sikawarsito11341
@sikawarsito11341 7 жыл бұрын
How to make a detection robot and fire extinguisher (line flower)
@laserelectronic7028
@laserelectronic7028 7 жыл бұрын
can you make one robot with line follow +sound follow +opsticals+Bluetooth and ir control robot
@TausifSamin
@TausifSamin 7 жыл бұрын
How can I make the robot follow a white line on a black surface? Could you please show me how to tweak the code?
@xravern4617
@xravern4617 4 ай бұрын
Can you provide modifications for l298n?😊
@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?
@gokulakrishna6333
@gokulakrishna6333 5 ай бұрын
Can we replace the motor shield with motor driver
@carlosaparicio4855
@carlosaparicio4855 5 жыл бұрын
If i want that the sensor detect the line as white and the parts outside the line as black, what did i need to change, please help me, it´s important :/
@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????????
@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 ?
@ujjwalsinha4172
@ujjwalsinha4172 6 жыл бұрын
Sir, have you used separate code for the PID control during the coding of arduino UNO
@vstop2176
@vstop2176 6 жыл бұрын
Serial.print(' ') ; not showing any serial monitor o/p Infrared Detection Tracking Sensor Module 8 Channel Infrared Detector Board For Arduino this is same as qtr 8rc
@Dhilinraj
@Dhilinraj 7 жыл бұрын
I have qrt 8a (not 8rc) can i use this
@fizzahikramulhaq4513
@fizzahikramulhaq4513 8 ай бұрын
Which one is the callineration button
@kishanpatel5332
@kishanpatel5332 6 жыл бұрын
Superb , unique method But ,Is it edited video❓ or it's original speed of line follower
@jeffinjosephidicula3573
@jeffinjosephidicula3573 3 жыл бұрын
How we can add intermediate stations or intermediate stops in between track
@harditsingh8881
@harditsingh8881 4 жыл бұрын
If we attach 4 motors there will be different codes or not?
@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!
@diptangshudutta3637
@diptangshudutta3637 4 жыл бұрын
can ya help me with the wiring using a normal infrared line following sensor with the same board
@nalossu8564
@nalossu8564 Жыл бұрын
Can i use L298?
@yuvpreetsingh9106
@yuvpreetsingh9106 7 жыл бұрын
sir i want to use gyroscope instead of castor wheel please tell me the changes i have to make
@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.
@ikramkakar7049
@ikramkakar7049 6 жыл бұрын
please if anyone can tell, i have uploaded the code but only one motor starts while the other is not starting.
@vstop2176
@vstop2176 6 жыл бұрын
Ikram Kakar ther voltage drop or less voltage to ur motor increase voltage 9 to 12
@siddhikadichwalkar751
@siddhikadichwalkar751 7 жыл бұрын
what changes are required in code n circuit... if i m using array of sensors instead of QTR reflectance sensor...??
@ThePhildozer89
@ThePhildozer89 7 жыл бұрын
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.
@nauraizsubhan01
@nauraizsubhan01 7 жыл бұрын
how to connect separate battery for the motors...
@shivambudhia2110
@shivambudhia2110 7 жыл бұрын
I have a sensor which is marked with pins D1 D2 D3 D4 D5 D6 5V GND A1 A2 A3 A4 A5 A6 5V GND . Can u help me with the connections
@harshkathiriya439
@harshkathiriya439 6 жыл бұрын
How the direction of the robot is changed.....how it is done....I mean direction is changed??? How???is bovine the reason ??? Pls explain me in detail.
@netkingmahin
@netkingmahin 5 жыл бұрын
Thanks
@monmoypaul9304
@monmoypaul9304 7 ай бұрын
What about calliberation?
@keshavgoel9020
@keshavgoel9020 7 жыл бұрын
is there any other sensor I can use for the robot I can't find the given sensor
@neilmitra4627
@neilmitra4627 7 жыл бұрын
here is the sensor: www.pololu.com/product/961
@aymenberkaoui8871
@aymenberkaoui8871 7 жыл бұрын
can someone explain me the role of the bovine wheel please
@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
@ukhtifathimahramadhani2090
@ukhtifathimahramadhani2090 6 жыл бұрын
hey, I've download the library from your referred link but it can't be included on my sketch (it doesnt even shown up on my library list). I've tried to add it manually but it says I have invalid library. could anyone help me please? :)
@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?
@stephmakeslyrics4982
@stephmakeslyrics4982 7 жыл бұрын
genuinely a great tutorial, but its not for the sensors im using.. :(
@omarslimeni1374
@omarslimeni1374 7 жыл бұрын
if i use 5 infra red sensor( IR Tcrt5000)not QTR-8RC it still work!!!
@cerenkyak6961
@cerenkyak6961 5 жыл бұрын
Merhaba beyaz zemin siyah çizgide olurken siyah zemin beyaz çizgide olmuyor nereyi değiştirmemiz gerekir acaba
@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
@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)
@sumeshkumar9086
@sumeshkumar9086 7 жыл бұрын
pls sir explain me how to make a transforming robot and multiple sensor control robot using android phone pls sir and thank you so much sir and it is possible to make a sensor robot car using brushless motors with high rpm motors
@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.
@Alone-kd3bc
@Alone-kd3bc 6 жыл бұрын
On my sensor there is an IR pin? Whats the function and how to connect it?
@mushfiqqayyumsaif7358
@mushfiqqayyumsaif7358 7 жыл бұрын
can I use QTR-8A instead of QTR-8RC???
@nilutpolkashyap
@nilutpolkashyap 4 жыл бұрын
Can the robot follow a line of 1/2 inch width black line?
@GThinks
@GThinks 6 жыл бұрын
what's making the car turn?
@anaisdb
@anaisdb 7 жыл бұрын
Hello, I have all the pieces to start this project, but how to assemble the QTR-8RC Reflectance Sensor ? thank you very much
@anaisdb
@anaisdb 7 жыл бұрын
On yours, I do not see the resistance on? where does it have to be put? I see that you have welded from 8 to gnd, nothing for the others? thanks again :)
@GurpreetSingh-zh5je
@GurpreetSingh-zh5je 6 жыл бұрын
can it enable to find the gap and crosses...? please reply fast
@kavipatel298
@kavipatel298 6 жыл бұрын
I need help, I cant find the code. Could you please post a link!
@cesaralejandro1463
@cesaralejandro1463 4 жыл бұрын
Hi, I'm from Peru, a question, do you have the code for this video? please thank you very much
I made a SUPER FAST Line Follower Robot Using PID!
10:02
Shyam Ravi
Рет қаралды 312 М.
Hookup and Program QTR Array on Cardboard PID Bot
20:22
Robot Research Lab
Рет қаралды 19 М.
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 71 МЛН
小丑把天使丢游泳池里#short #angel #clown
00:15
Super Beauty team
Рет қаралды 40 МЛН
The Fastest Maze-Solving Competition On Earth
25:22
Veritasium
Рет қаралды 19 МЛН
Arduino Obstacle Avoiding Robot Car 4WD
16:18
Maker 101
Рет қаралды 405 М.
Make the TINIEST Line Follower Robot without a Microcontroller!
11:34
Max Imagination
Рет қаралды 302 М.
Line Follower Robot using Arduino🔥
7:01
hash include electronics
Рет қаралды 522 М.
LINE FOLLOWER SENSOR'S REVIEW
7:00
Grey Robotics
Рет қаралды 48 М.
How To Make A DIY Arduino Obstacle Avoiding Car At Home
6:09
DIY Builder
Рет қаралды 4,9 МЛН
SEGUIDOR DE LINEA EN BASE A LAMBORGHINO OPEN
2:37
arduino bo
Рет қаралды 61 М.
How to Write a Simple PID Line Follow Algorithm
26:14
Robot Research Lab
Рет қаралды 48 М.
(✋❌)kageihina VS siajiwoo VS meosimmyyt VS oxzung#tiktok #shorts
0:12
для всей семьи
0:56
Стакановец
Рет қаралды 191 М.
Таким раствором работать одно удовольствие
1:00
Профессия созидатели
Рет қаралды 954 М.
Массаж головы пранк🤣
0:55
Kirya Kolesnikov
Рет қаралды 5 МЛН
ЛАЙФХАК НА КУХНЕ ! 🧐🤦🏻‍♂️ #shorts #лайфхак
0:15
Крус Костилио
Рет қаралды 109 М.