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 (+) Наука
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
i am getting this line as error
QTRSensorsRC qtrrc((unsigned char[]) { A4,A3,A2,A1,A0} ,NUM_SENSORS, TIMEOUT, EMITTER_PIN);
help me out
i am getting this line as error
QTRSensorsRC qtrrc((unsigned char[]) { A4,A3,A2,A1,A0} ,NUM_SENSORS, TIMEOUT, EMITTER_PIN);
help me out
Mert it is so nice to see Turks running the robotics!
I love the stuff you are doing,
bu konuda izlediğim en anlaşılan vide tebrik ederim
Thats a very detailed video. Thanks for the code and all too
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
Seriously bro, AWESOME!!!!
Thank you so much! a blessing for me!
made me make this project bro! great for giving the program thnx bro!
Thank you very much for your work
Why did you connect it to analog pins when giving 8rc digital output?
Awesome work bro
Quick question, how did you add the lights? I subbed btw....Amazing vids.:)😀
tres bon projet et bien fait
this video helped me get a good grade on my final. thanks man !
Brayan Santos Did it work without out USB
yeah it did, just make sure you use a higher voltage battery I used a 9v battery in my case
Sir, have you used separate code for the PID control during the coding of arduino UNO
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.
I have qrt 8a (not 8rc) can i use this
Even its great that you are saying how to install library in the same video seriously bro u have a very god thinking skills
Sup!
Thanku tomorrow is my practicle
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 :)
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!
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)
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
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
You deserve it bro
Türk olduğunu tahmin etmemiştim saol çok iyi video
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????????
If we attach 4 motors there will be different codes or not?
which batteries are best for this project?
can i use tcrt5000 sensor instead of qtr sensor and use the same code?
The programming part is very difficult to understand.
Can you suggest this line follower with the help of XOD.
where did u get the qtr 8rc reflectance sensor
MERT KILIC I AM YOUR FANNNN
👏👏👏👏
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?
also sir about drone like robot controlled by android or voice detection sensor and ur explanation is superb sir and thanku sir
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?
Will the code still work if I plug the reflective sensor directly to the arduino board?
Plz tell me
How to use
IR sensor
Instead of QBR sensor
Merhaba eline koluna sağlık QTR Sensor Analog mu Digital mi Hocam
is it okay to use IR sensor instead of reflectance sensor?
what changes are required in code n circuit... if i m using array of sensors instead of QTR reflectance sensor...??
can ya help me with the wiring using a normal infrared line following sensor with the same board
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.
Wow amazing🤩
sir i want to use gyroscope instead of castor wheel please tell me the changes i have to make
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 ?
hi,do you need to calibrate the sensor first?
like sound sensor,gas sensor and ultrasonic sensor
Phenomenal actually. Would appreciate if you could explain the coding behind the PD.
Oh I know what you mean. Just trying to learn the concept of PID. it will most probably help.:D
Can i hookup a microgear motor instead for faster speed
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)
I wanted to know if you have used PID in the line follower?
what is the distance between the sensor and the surface????????
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?
Quick question isn't powering the arduino with 9v bad because it is being powered by 5v?
can I use QTR-8A instead of QTR-8RC???
Can we use normal l293D motor shield , instead of adafruit motor shield ?? please guide.
can we use three in one sensor in one aurdino
What changes in the code should i make to make my bot follow white line over black background?
can you make a project based on Mindwave controlling system
Can I Increase the speed of the motor ? Will the LFR then still work fine?
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
Can you tell me what should i do if i have only sensors
PLZ reply as soon as possible
Hie can u plz upload vdo for learning a Salesforce from scratch
does it necessarily require QTR-8RC sensor, or any other 8 array sensor will do?
Bro..what..type..follower.. Ur..using.. Ex: right edge or left edge or black line??
what's making the car turn?
Please make a line follower with l293d and simple our sensors.
can we use 6 array sensor instead of this??
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.
Love the music. What song is it?
Can you provide modifications for l298n?😊
How can I make the robot follow a white line on a black surface? Could you please show me how to tweak the code?
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.
please put the code
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?
How to make a detection robot and fire extinguisher (line flower)
What you have put at last a yellow box like thing? At 8:15 in video.
Those are DC Motors.
What would be the maximum angle to get this buggy up a slope
How we can add intermediate stations or intermediate stops in between track
Can you build a trash can which moves only when we throw(cast) a garbage next to her?
Kindly provide me a link to buy the reflectance sensor
is the line follower this much fast or you have forwarded the video?
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!
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
thank u for this great comment
ur a god bro!
Thanks a lot bro
im using ky 033 sensor and L293d motor shield , may you show the coding?
Veuillez poster plus de vidéo
can it enable to find the gap and crosses...? please reply fast
what if we take the same procedures on audrino mega?
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
I m struggling to find Best ir sensor array....plz suggest
are we can use another motor shield
is it okay if i use line tracking sensor than qtr 8 rc?
Can we replace the motor shield with motor driver
how to connect separate battery for the motors...
in qtr sensor pin 6 name is also CLP
Which one is the callineration button
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.
If the lines overlap, will this program work??
can someone explain me the role of the bovine wheel please
will you please make maze solver bot
Superb , unique method
But ,Is it edited video❓ or it's original speed of line follower