Тёмный
No video :(

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

Maker 101
Подписаться 166 тыс.
Просмотров 387 тыс.
50% 1

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 (+)

Опубликовано:

 

22 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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
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
@gorkemozgurgenc2700
@gorkemozgurgenc2700 5 лет назад
Türk olduğunu tahmin etmemiştim saol çok iyi video
@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
@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
@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
@DTVideom
@DTVideom 2 года назад
Why did you connect it to analog pins when giving 8rc digital output?
@metetabanl4467
@metetabanl4467 12 дней назад
çok eğitici bir video olmuş tebrik ederim.
@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
@hamzarehman112
@hamzarehman112 5 лет назад
what is the distance between the sensor and the surface????????
@saliksheraz6236
@saliksheraz6236 5 лет назад
Awesome work bro
@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?
@mashrafi_m
@mashrafi_m 6 лет назад
Seriously bro, AWESOME!!!!
@dipanshuaggarwal7089
@dipanshuaggarwal7089 6 лет назад
made me make this project bro! great for giving the program thnx bro!
@ejazanjum1498
@ejazanjum1498 7 лет назад
MERT KILIC I AM YOUR FANNNN 👏👏👏👏
@NaraBage
@NaraBage 6 лет назад
can i use tcrt5000 sensor instead of qtr sensor and use the same code?
@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
@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.
@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.
@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?
@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
@annietirado5198
@annietirado5198 7 лет назад
Thank you so much! a blessing for me!
@codingtimes3199
@codingtimes3199 7 лет назад
tres bon projet et bien fait
@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 🙏🙏
@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
@Wanderlust1342
@Wanderlust1342 7 лет назад
which batteries are best for this project?
@berkaydikbayr925
@berkaydikbayr925 7 лет назад
As Bayrakları as as as :)
@abhijithab5086
@abhijithab5086 4 года назад
Wow amazing🤩
@iqrakhan8824
@iqrakhan8824 5 лет назад
Thanku tomorrow is my practicle
@neilmitra4627
@neilmitra4627 7 лет назад
Quick question, how did you add the lights? I subbed btw....Amazing vids.:)😀
@Dhilinraj
@Dhilinraj 7 лет назад
I have qrt 8a (not 8rc) can i use this
@ratnesh5630
@ratnesh5630 5 лет назад
Plz tell me How to use IR sensor Instead of QBR sensor
@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
@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 :)
@osmanbelder1483
@osmanbelder1483 Год назад
siyah zemin beyaz çizgi ayarı nasıl yaparız kodu inceledim bulamadım
@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
@MyChannel-vw9cy
@MyChannel-vw9cy 7 лет назад
Veuillez poster plus de vidéo
@kishanpatel5332
@kishanpatel5332 6 лет назад
Superb , unique method But ,Is it edited video❓ or it's original speed of line follower
@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
@codingtimes3199
@codingtimes3199 7 лет назад
Can you build a trash can which moves only when we throw(cast) a garbage next to her?
@harditsingh8881
@harditsingh8881 4 года назад
If we attach 4 motors there will be different codes or not?
@muhammadmoneebbutt8441
@muhammadmoneebbutt8441 5 лет назад
will it work if the background is black and the line is white?
@mairisberzins8677
@mairisberzins8677 5 лет назад
You have to reverse the values for sensor output. Basicly if it picked up white as smaller number but dark as larger u have to turn them around so that its white - large and black - small. I didn't watch the code part so i don't know whats the case here but thats the general idea,
@RobotResearchLab
@RobotResearchLab 5 лет назад
Actually, the QTR library accounts for this, you just need to provide a 'true' as the third argument in readLine(). So your readLine would look something like this: readLine(sensorValues, QTR_EMITTERS_ON, true); And now readLine above will read a white line on a dark background. From the Pololu library documentation see the function definition below: unsigned int readLine(unsigned int *sensorValues, unsigned char readMode = QTR_EMITTERS_ON, unsigned char whiteLine = 0)
@rohitdev5204
@rohitdev5204 7 лет назад
in qtr sensor pin 6 name is also CLP
@ujjwalsinha4172
@ujjwalsinha4172 6 лет назад
Sir, have you used separate code for the PID control during the coding of arduino UNO
@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.
@shraddhanaikade7777
@shraddhanaikade7777 Год назад
Hie can u plz upload vdo for learning a Salesforce from scratch
@NayeemSharker
@NayeemSharker 5 лет назад
only right motor is working
@mohamedrakha9766
@mohamedrakha9766 6 лет назад
The code is great but why it waits around 10 seconds then start ?
@akbarrajani121
@akbarrajani121 6 лет назад
Love the music. What song is it?
@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
@petermaker76
@petermaker76 7 лет назад
like sound sensor,gas sensor and ultrasonic sensor
@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?
@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 :/
@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)
@jeffinjosephidicula3573
@jeffinjosephidicula3573 3 года назад
How we can add intermediate stations or intermediate stops in between track
@gokulakrishna6333
@gokulakrishna6333 5 месяцев назад
Can we replace the motor shield with motor driver
@Michael-vt9oc
@Michael-vt9oc 4 года назад
exit status 1 'QTRSensorsRS' does not name a type; did you mean 'QTRSensors'?
@aminsyam7707
@aminsyam7707 2 года назад
HMMM I PROBLEM EXIT STATUS 1 TO
@saswatrath4646
@saswatrath4646 Год назад
use the older version of library
@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
@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.
@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 ?
@sikawarsito11341
@sikawarsito11341 7 лет назад
How to make a detection robot and fire extinguisher (line flower)
@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!
@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????????
@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?
@perspirator250
@perspirator250 7 лет назад
Will the code still work if I plug the reflective sensor directly to the arduino board?
@mushfiqqayyumsaif7358
@mushfiqqayyumsaif7358 7 лет назад
can I use QTR-8A instead of QTR-8RC???
@nalossu8564
@nalossu8564 Год назад
Can i use L298?
@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
@pranabsarma18
@pranabsarma18 7 лет назад
is the line follower this much fast or you have forwarded the video?
@ahmedmohamed-it8nx
@ahmedmohamed-it8nx 5 лет назад
Nice
@akashbansal3815
@akashbansal3815 7 лет назад
Please make a line follower with l293d and simple our sensors.
@laserelectronic7028
@laserelectronic7028 7 лет назад
can you make one robot with line follow +sound follow +opsticals+Bluetooth and ir control robot
@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
@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!
@fizzahikramulhaq4513
@fizzahikramulhaq4513 8 месяцев назад
Which one is the callineration button
@diptangshudutta3637
@diptangshudutta3637 4 года назад
can ya help me with the wiring using a normal infrared line following sensor with the same board
@venkatmourya5117
@venkatmourya5117 7 лет назад
where did u get the qtr 8rc reflectance sensor
@yuvpreetsingh9106
@yuvpreetsingh9106 7 лет назад
sir i want to use gyroscope instead of castor wheel please tell me the changes i have to make
@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
@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
@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?
@neilmitra4627
@neilmitra4627 6 лет назад
Quick question isn't powering the arduino with 9v bad because it is being powered by 5v?
@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.
@siddhikadichwalkar751
@siddhikadichwalkar751 7 лет назад
what changes are required in code n circuit... if i m using array of sensors instead of QTR reflectance sensor...??
@netkingmahin
@netkingmahin 5 лет назад
Thanks
@nilutpolkashyap
@nilutpolkashyap 4 года назад
Can the robot follow a line of 1/2 inch width black line?
@xravern4617
@xravern4617 4 месяца назад
Can you provide modifications for l298n?😊
@nauraizsubhan01
@nauraizsubhan01 7 лет назад
how to connect separate battery for the motors...
@abir95571
@abir95571 7 лет назад
can u mention , the exact series of components used , like which arduino , which motor shield..like that the entire stuff ...pllls :)
@abir95571
@abir95571 7 лет назад
Thanx :) appreciate it
@musaesin5163
@musaesin5163 5 лет назад
Thanks😘
@aymenberkaoui8871
@aymenberkaoui8871 7 лет назад
can someone explain me the role of the bovine wheel please
@ElBicho_09
@ElBicho_09 5 лет назад
What would be the maximum angle to get this buggy up a slope
@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
@stephmakeslyrics4982
@stephmakeslyrics4982 7 лет назад
genuinely a great tutorial, but its not for the sensors im using.. :(
@GurpreetSingh-zh5je
@GurpreetSingh-zh5je 6 лет назад
can it enable to find the gap and crosses...? please reply fast
Далее
I made a SUPER FAST Line Follower Robot Using PID!
10:02
Мама приболела😂@kak__oska
00:16
Просмотров 597 тыс.
Hookup and Program QTR Array on Cardboard PID Bot
20:22
The Fastest Maze-Solving Competition On Earth
25:22
Просмотров 19 млн
SEGUIDOR DE LINEA EN BASE A LAMBORGHINO OPEN
2:37
Просмотров 61 тыс.
I Built a Transparent Boomerang (it's lethal)
13:10
How to Write a Simple PID Line Follow Algorithm
26:14
The coolest robot I've ever built!
19:40
Просмотров 4,6 млн