No video

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

  Рет қаралды 132,644

Tech Nuttiez

Tech Nuttiez

Күн бұрын

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 💖: www.youtube.co...
📝 Instructable (Code and Components):
www.instructab...
🤖 I buy all of my tech-related hardware components from:
www.quartzcomp...
✅ I buy all of my 3D printed parts from:
www.iamrapid.com
🔍 Find Me:
KZfaq: / technuttiez
Instructables: www.instructab...
Instagram: / technuttiez
Facebook: / technuttiez
LinkedIn(Tech Nuttiez): / technuttiez
LinkedIn(Aarav Garg): / aaravgarg
Hackster.io: www.hackster.i...
🎥 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 6 жыл бұрын
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 жыл бұрын
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 жыл бұрын
Your linoBot_v1.0_1 program one problem
@STIVENyT82
@STIVENyT82 5 жыл бұрын
[#include ] is not verify
@TechNuttiez
@TechNuttiez 5 жыл бұрын
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...
@earlcedricescayde5200
@earlcedricescayde5200 Жыл бұрын
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 Жыл бұрын
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/
@Ghauriunleashed
@Ghauriunleashed 2 жыл бұрын
How to connect ir sensors to Arduino as motor driver is stacked on Arduino
@TechNuttiez
@TechNuttiez 2 жыл бұрын
The motor driver has certain I/O pins connected to the Arduino board, where the IR sensors can be plugged in!
@vrushankmallimat2201
@vrushankmallimat2201 5 жыл бұрын
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.
@geethasrinivasan6106
@geethasrinivasan6106 4 жыл бұрын
What jumper are you using
@prasunakumari5463
@prasunakumari5463 3 жыл бұрын
Wow! Your channel have become even more popular👍🏻
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Thanks
@manojarora5431
@manojarora5431 4 жыл бұрын
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...
@tamannanazmin4261
@tamannanazmin4261 3 жыл бұрын
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 жыл бұрын
Yeah, Sure u can. Just give a link to my channel in the description!
@rvzlproject
@rvzlproject 3 жыл бұрын
IM from Indonesia good job
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Thanks for watching ;)
@cookingwithrenusinghal5534
@cookingwithrenusinghal5534 3 жыл бұрын
Good job keep it up God bless you bachcha
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Thank you
@nivas6549
@nivas6549 3 жыл бұрын
Can increase the speed of the robot?
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Yeah, you can do that by changing the MAX_SPEED variable in the code!
@nivas6549
@nivas6549 3 жыл бұрын
@@TechNuttiez 👍thank you
@Rockstar_Rajesh07
@Rockstar_Rajesh07 Жыл бұрын
Tq brother really great work. Very useful for me ❤
@Abhishek-td6ze
@Abhishek-td6ze 3 жыл бұрын
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 жыл бұрын
@@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!
@wahyukurniansyah34
@wahyukurniansyah34 4 жыл бұрын
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!
@kavyamp564
@kavyamp564 5 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 :)
@kanishksingh1901
@kanishksingh1901 5 жыл бұрын
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?
@pasinduranasinghe4430
@pasinduranasinghe4430 4 жыл бұрын
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!
@SuperAntifashion
@SuperAntifashion 3 жыл бұрын
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!
@earljohntalledo4674
@earljohntalledo4674 5 жыл бұрын
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 жыл бұрын
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
@yahyayozo8660
@yahyayozo8660 3 жыл бұрын
what deos encoder do ?
@TechNuttiez
@TechNuttiez 3 жыл бұрын
May I know exactly which encoder?
@yahyayozo8660
@yahyayozo8660 3 жыл бұрын
@@TechNuttiez black encoder, we put on the back of the yellow motor
@TechNuttiez
@TechNuttiez 3 жыл бұрын
@@yahyayozo8660 Ignore that... That does nothing! It's just like that and has no use!
@yahyayozo8660
@yahyayozo8660 3 жыл бұрын
@@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
@addulasushanthreddy7275
@addulasushanthreddy7275 Жыл бұрын
How much for this project
@TechNuttiez
@TechNuttiez Жыл бұрын
Please write to contact@technuttiez.com
@santanunaskar2953
@santanunaskar2953 5 жыл бұрын
Sir if I use 9v battery,then Will it work or not?
@TechNuttiez
@TechNuttiez 5 жыл бұрын
You can surely use a 9v battery as an Arduino can accept 9v easily. Thanks for watching...
@navaneethpk7287
@navaneethpk7287 2 жыл бұрын
Very helpful bro
@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
@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!
@noobiegaming-cr
@noobiegaming-cr 3 жыл бұрын
Greattt!!
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Thanks
@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!
@jaylotdevota3571
@jaylotdevota3571 2 жыл бұрын
can't open your code
@ravishraja5843
@ravishraja5843 4 жыл бұрын
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!
@krisnavenitogaru5237
@krisnavenitogaru5237 4 жыл бұрын
On which the line follower robot is moving sir
@TechNuttiez
@TechNuttiez 4 жыл бұрын
it is a black insulation tape....
@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!
@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..
@astyagi6024
@astyagi6024 5 жыл бұрын
I have made this project but some problem is coming and it's not working what shall I do
@TechNuttiez
@TechNuttiez 5 жыл бұрын
What problem is there?
@RobertoLyleDTaneo
@RobertoLyleDTaneo 5 жыл бұрын
Bro Im using motor driver not a motor shield will it work? Still the same code?
@Tech4geeks21st
@Tech4geeks21st 5 жыл бұрын
definately different
@pongky6131
@pongky6131 5 жыл бұрын
Sir? What will be my ARDUINO UNO : PROGRAMMER?
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Arduino ISP
@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 жыл бұрын
Instead of changing situations take my code and change the motor movements. That should probably work...
@yashaswininv187
@yashaswininv187 2 жыл бұрын
Please send code
@swarathakor4459
@swarathakor4459 4 жыл бұрын
Sir i am trying but error is coming what should i do ????
@swarathakor4459
@swarathakor4459 4 жыл бұрын
Sir please response fast
@TechNuttiez
@TechNuttiez 3 жыл бұрын
What error is coming?
@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!
@harshithguduru5209
@harshithguduru5209 6 жыл бұрын
code? where?
@TechNuttiez
@TechNuttiez 6 жыл бұрын
www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/
@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...
@alkimfortuna4326
@alkimfortuna4326 5 жыл бұрын
Schematic diagram pls
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Check out my Instructable link in the description!
@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
@priyankjadav_
@priyankjadav_ 5 жыл бұрын
Thanks for the code I finally made my project and it worked!!! Thanks a lot!!
@TechNuttiez
@TechNuttiez 5 жыл бұрын
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...
@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...
@kanishksingh1901
@kanishksingh1901 6 жыл бұрын
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...
@pintusharma983
@pintusharma983 4 жыл бұрын
Ok
@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...
@slothspunky7763
@slothspunky7763 4 жыл бұрын
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!!
@prempremprem2005
@prempremprem2005 3 жыл бұрын
Hai
@pavanreddy4846
@pavanreddy4846 5 жыл бұрын
Where can i get ir sensors in hyderabad
@TechNuttiez
@TechNuttiez 5 жыл бұрын
Gujarathi Galli Koti, Hyderabad, Telangana 500095 goo.gl/maps/YE8zoGC1LH92
@santanunaskar2953
@santanunaskar2953 5 жыл бұрын
Sir pls share ir sensors model no..
@TechNuttiez
@TechNuttiez 5 жыл бұрын
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...😁😁😁
@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...
@DhadamRobotics
@DhadamRobotics 5 жыл бұрын
Good job Bhai
@TechNuttiez
@TechNuttiez 5 жыл бұрын
Thank you, bro...
@vethumdasanayaka6274
@vethumdasanayaka6274 2 жыл бұрын
Thank You Sir !! It was Very Helpful. I Appreciate your Work 🥰🖤🖤
@TechNuttiez
@TechNuttiez 2 жыл бұрын
Glad to hear that
@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
@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?
@Techy004
@Techy004 5 жыл бұрын
Actually my robot is moving when sensing black line and stopping at other colors ...how to fix it
@TechNuttiez
@TechNuttiez 5 жыл бұрын
I didn't get your doubt. Please state the problem more clearly.
@TechNuttiez
@TechNuttiez 5 жыл бұрын
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'
@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...
@awanspeaksofficial6720
@awanspeaksofficial6720 6 жыл бұрын
from were i can download code for this
@TechNuttiez
@TechNuttiez 6 жыл бұрын
www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/
@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 жыл бұрын
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.
@shaanweerasekara4678
@shaanweerasekara4678 4 жыл бұрын
Thank you. Very easy to understand
@TechNuttiez
@TechNuttiez 3 жыл бұрын
You are welcome!
@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 жыл бұрын
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 жыл бұрын
Ya try changing less than 400 to 0 and greater than 400 to 1
@hirenkanojia5438
@hirenkanojia5438 4 жыл бұрын
@@TechNuttiez still not working brooo
@diwashamgai949
@diwashamgai949 3 жыл бұрын
Bro can you help me with the coding?
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Yeah sure why not ;)
@STIVENyT82
@STIVENyT82 5 жыл бұрын
Your used coding program is paithon
@TechNuttiez
@TechNuttiez 5 жыл бұрын
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
@MadaOktyPratama
@MadaOktyPratama 5 жыл бұрын
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...
@saumyasrivastava5489
@saumyasrivastava5489 6 жыл бұрын
cant get access to code..please tell me how to get the code
@TechNuttiez
@TechNuttiez 6 жыл бұрын
www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/
@Figmatricks
@Figmatricks 6 жыл бұрын
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 6 жыл бұрын
Sir it's showing not for Arduino uno
@TechNuttiez
@TechNuttiez 5 жыл бұрын
It can be used in any type of arduino board...
@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/
@eslam_elmaghraby
@eslam_elmaghraby 3 жыл бұрын
المسافه بين السينسورز كبيره
@paulfernandes3240
@paulfernandes3240 4 жыл бұрын
I have the same line fllower
@TechNuttiez
@TechNuttiez 4 жыл бұрын
Cool... 👍👍👍
@subhamraj4795
@subhamraj4795 5 жыл бұрын
How many volts it requires to run
@subhamraj4795
@subhamraj4795 5 жыл бұрын
Please help me i have my exhibition
@TechNuttiez
@TechNuttiez 5 жыл бұрын
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
@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...
@sowmyasampangi2008
@sowmyasampangi2008 6 жыл бұрын
Sir can i get circuit diagrm
@TechNuttiez
@TechNuttiez 6 жыл бұрын
www.instructables.com/id/Obstacle-Avoiding-Robot-Using-Microcontroller-Ardu/
@adityafaturrohman901
@adityafaturrohman901 6 жыл бұрын
Where is the code?
@TechNuttiez
@TechNuttiez 6 жыл бұрын
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 жыл бұрын
Thanks bro
@TechNuttiez
@TechNuttiez 6 жыл бұрын
Make sure to subscribe...
@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...
@Parth_188
@Parth_188 6 жыл бұрын
Nice dud
@TechNuttiez
@TechNuttiez 6 жыл бұрын
Thanks... Please subscribe...
@Parth_188
@Parth_188 6 жыл бұрын
Tech Nuttiez I subbed upload more videos to gain more subs
@SidK26
@SidK26 6 жыл бұрын
Bro..line follower code pls..it's obstacle avoider code
@TechNuttiez
@TechNuttiez 6 жыл бұрын
www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/
@kanishksingh1901
@kanishksingh1901 6 жыл бұрын
Sir plz provide code for line following car
@TechNuttiez
@TechNuttiez 6 жыл бұрын
www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/
@makeshnaidu7035
@makeshnaidu7035 5 жыл бұрын
Code?
@TechNuttiez
@TechNuttiez 5 жыл бұрын
Hi, You can find program here, www.instructables.com/id/Line-Follower-Robot-Using-Arduino-2/
@DynamicPlaysGames
@DynamicPlaysGames 5 жыл бұрын
Dope
@TechNuttiez
@TechNuttiez 5 жыл бұрын
Huh! Thanks, Broo...
@kanishksingh1901
@kanishksingh1901 6 жыл бұрын
Bhai plz coding dedo when nhi haiplz
@TechNuttiez
@TechNuttiez 6 жыл бұрын
The code can be found 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 6 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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
@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/
@kanishksingh1901
@kanishksingh1901 6 жыл бұрын
Sir
@diwashamgai949
@diwashamgai949 3 жыл бұрын
Sir I have messenged you in Instagram plz reply
@TechNuttiez
@TechNuttiez 3 жыл бұрын
Yes, check your inbox :)
Sensors - which one to use
17:06
Electronoobs
Рет қаралды 1,3 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 43 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 9 МЛН
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Line Follower Robot using Arduino🔥
7:01
hash include electronics
Рет қаралды 520 М.
How To Make Line Follower Robot      Step by Step
7:33
Forbidden Bit
Рет қаралды 176 М.
How To Make A DIY Arduino Obstacle Avoiding Car At Home
6:09
DIY Builder
Рет қаралды 4,9 МЛН
How To Make A DIY Arduino Line Follower Car At Home
5:51
DIY Builder
Рет қаралды 908 М.
The coolest robot I've ever built!
19:40
Thomas Burns
Рет қаралды 4,6 МЛН
The search for the biggest shape in the universe.
18:49
Stand-up Maths
Рет қаралды 110 М.
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Рет қаралды 812 М.
Line Following / Tracking Robot Car (Arduino and QTR-8 Sensor)
11:09
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 43 МЛН