@@aslamhossain1Is there an any way to adjust it's code to became suitable for high speeds? Or adjusting it's kp kd is the solution? i just want to know bcuz im still learning how pid works thank you.
i have a project in the line following robot and i check all the connections but it still does not work.....do we press the push button after we open the switch?
Friend, I congratulate you for the work done, but I have a question. If I don't have the battery, can I use regular batteries? Or do I have to meet the voltage and amperage requirement? This is my question, please I will appreciate your response.
The bot is not catching the line , it goes away from the line in curves and turns...how to set the correct kd values? Should i change the base speed and turn speed?
Great design. No need to waste money on car chassis. Anyway. Why it always pick the bottom route at the arrow symbol ? Both top and bottom black lines look like they have the same thickness.
@@aslamhossain1 What should distance between each sensor be? I already made one which each sensor is about 31mm apart from each other. Mine is 6 sensors. I haven't tried on the robot car.
Please tell how to remove the led Authorization part and directly start the robot moreover please also tell how make the robot such that the robot keeps moving straight even when it is on all white surfaces
I connected the circuit and it lights on when I connect the arduino with the laptop put when I remove it and turn on the switch it does not light on or move
sir, my circuit is the same like you, but when i'm using the button at D12 on nano, only 1 motor (right) working, how i fix your code with this problem, please help me to run 2 motor
well instead of using a ic regulator you can use a arduino nano itself to control the output voltage to ir sensor array and l298n also i feel it [pretty useless for the regulator to be used
Arduino and L298 doesn't provide enough power required for IR sensor. Hence the robot won't run properly. That's why I've used regulator. Buck converter would be better.
@@aslamhossain1So if I make the sensor position on the analog pin on the Arduino Nano not match your video, for example with a random position (Sensor 1 to A3, Sensor 2 to A2, Sensor 3 to A4, Sensor 4 to A6 and Sensor 5 to A7), what's the code? How can Arduino Nano recognize each sensor? Please help me because I am still confused about the sensor declaration regarding the analog pin. Thank You.
@@juansiahaan9737 i've connected sensor from right to left serially. Not Randomly. Then i've used "for loop" to read sensor value. Suppose: analogRead(i); Here "i" value start from 0 to 4. If i = 0 mean 1st sensor. i = 1 mean 2nd sensor, i= 2 mean 3rd. Similar for Remaining sensors.
@@aslamhossain1 Thanks in advance for the answer. Then in your code int position[6] = { 1, 2, 3, 4, 5 }; why is there int position[6]? Even though there are only 5 sensors based on your video tutorial.
𝟓 𝐀𝐫𝐫𝐚𝐲 𝐒𝐞𝐧𝐬𝐨𝐫: th-cam.com/video/7vuAqcf_HjQ/w-d-xo.htmlsi=0YVSpWoK0-VGu8fz
𝟔 𝐀𝐫𝐫𝐚𝐲 𝐒𝐞𝐧𝐬𝐨𝐫: th-cam.com/video/ZPutfh1cwHA/w-d-xo.htmlsi=2LRw_1QTJ-SKP5Rj
𝟔 𝐂𝐡𝐚𝐧𝐧𝐞𝐥 𝐋𝐢𝐧𝐞 𝐅𝐨𝐥𝐥𝐨𝐰𝐞𝐫: th-cam.com/video/ST8KdWPMzp4/w-d-xo.htmlsi=VBM9W-euwMjgoQFj
𝐒𝐨𝐜𝐜𝐞𝐫 𝐁𝐨𝐭 𝐌𝐚𝐤𝐢𝐧𝐠: th-cam.com/video/nd-Pnnmnu04/w-d-xo.htmlsi=esh-zakwi_RHr9SC
how do you make the ir sensors yourself
@@JohnMwangi-y3p follow the tutorial i've uploaded.
Hi is this code/robot is suitable for 1000 rpm? i trying to switch to 1000 rpm but im not sure if the pid code is suitable for that speeds.
Not suitable
@@aslamhossain1Is there an any way to adjust it's code to became suitable for high speeds? Or adjusting it's kp kd is the solution? i just want to know bcuz im still learning how pid works thank you.
@@Christian-lr4wt Hey! changing the speed means you WILL HAVE TO tune PID again.
@@Christian-lr4wt yes change in the pid or go to any ai webpaege such as bolt or claude for expected results
First off all, great work sir ,but Iam having a doubt shall we use 5 channel array ir sensor in the place of your custom made sensor
Make a custom 5 channel ir th-cam.com/video/7vuAqcf_HjQ/w-d-xo.htmlsi=xaJmv7hIXhusO5LO
Can I use the TCRT5000 sensor module? And is it okay if the sensor is horizontal, because yours are in vertical form?
sir what to do if my 5 array ir sensors give max value on white and min value on black
a little bit of change in digital conversion part:
if (s[i] > threshold) s[i] = 0;
else s[i] = 1;
@@aslamhossain1 sir but i have done if(s(i)
@@aslamhossain1ভাই তো দেখি কোর্ড মুখস্থ করে খাই ফেলছেন😅
Hi , this code will make the robot pass this triangle correctly ?
Yes
Can i use different microcontroller? Like Esp32 or arduino uno
Yes
i have a project in the line following robot and i check all the connections but it still does not work.....do we press the push button after we open the switch?
Yes. After pressing the button the bot will start to follow line.
@@aslamhossain1 okay it works but the sensor detect from only when its really near to the ground almost touching the ground ..why is that?
how is the position calculated in the PID algorithm?
Based on the sensor number. Simply multiplying sensor value with sensor number.
Please don’t use background music.. Its irritating......😢
Noted. Thanks for you response.
What to do if I have a maker-line IR array by cytron which gives digital readings, can we connect those to the arduino the same way
Yes. But need to change in code.
Thank you so much for replying....❤️
Friend, I congratulate you for the work done, but I have a question. If I don't have the battery, can I use regular batteries? Or do I have to meet the voltage and amperage requirement? This is my question, please I will appreciate your response.
You can use any type of battery. Lithium or 2s/3s Lipo battery.
Can I also use the normal IR sensor module with obstacle detector?
No
The bot is not catching the line , it goes away from the line in curves and turns...how to set the correct kd values? Should i change the base speed and turn speed?
You can adjust by changing these parameters. Base speed in the speed of the robot. You can reduce it if the robot wobble.
Which one of 3V 6V or 12V N20 gear motor i should use??
12v
@@aslamhossain1I'm using L298N motor driver. Is it okay to use 12V motor
Also if i didn't found 12V by any chance. Can i use 6V
@@Unkn0wn_Reel yes
Great design. No need to waste money on car chassis.
Anyway. Why it always pick the bottom route at the arrow symbol ? Both top and bottom black lines look like they have the same thickness.
It always follows a specific rule that is set in the code.
@@aslamhossain1 What should distance between each sensor be?
I already made one which each sensor is about 31mm apart from each other.
Mine is 6 sensors. I haven't tried on the robot car.
@@jumbo999614 2cm from center to center
can you please make a video on how to tune the kp and kd of lfr pid bot if it occurs different type of problems
does the button have to keep pressed or just press it once
Pressed once everytime after turn on the power or restart of arduino.
Very good!!!!
congratulations!!!
Thanks
Please tell how to remove the led Authorization part and directly start the robot moreover please also tell how make the robot such that the robot keeps moving straight even when it is on all white surfaces
Then turn off PID
Can i use 5 channel array sensor instead of your custom sensor
Will work if it gives sensor values as like my custom made sensors.
can i use tt motor 600 rpm instead of n20 motor ??because i can't find n20 motor in my country
You can use
how to change analog input so that it goes to A1 to A5 instead of what was used in the video?
for (int i = 0; i < 6; i++) {
sensor[i] = analogRead(i);
if (sensor[i] > threshold) sensor[i] = 1;
else sensor[i] = 0;
}
sir, if my sensor read analog like this: 820 - in black surface, 3 - in white surface, how i fix your code with this problem, please help me
Its ok. no need to change.
@@aslamhossain1 thanks sir
I connected the circuit and it lights on when I connect the arduino with the laptop put when I remove it and turn on the switch it does not light on or move
Check all the connection. The problem is here
Does it work with HW-871 sensor
I need it for my project❤
No. You have to make sensor by yourself.
I've Tutorials: th-cam.com/video/7vuAqcf_HjQ/w-d-xo.htmlsi=XEVMge0XKRI1BlPF
Why is the left weel dont work😢
What is the purpose of pushbutton? Can I not put the pushbutton and direct it to the resistor and LED?
Push button to activate the line following code. You can ignore it.
@@aslamhossain1 so i should delete the line of the push button?
Give me the code plzz@@FatmaTarek-cj8vi
sir, my circuit is the same like you, but when i'm using the button at D12 on nano, only 1 motor (right) working, how i fix your code with this problem, please help me to run 2 motor
Check the motor driver pins.
@@aslamhossain1 i already check, but it still be the same error
sir if my motor is 1300 rpm will this code will be able to follow the line?
Need to adjust kp and kd value. Otherwise it will wobble.
can i use 500rpm motor instead ? do i need to change the coding ?
You can use. Don't need to change anything
Fast Line Follower Robot এর জন্য ভোল্ট এবং কত RPM এর N20 gear motor ব্যবহার করা উচিত?
Bro rotatory encoder is not required? So how are you using PID
Used push button.
@@aslamhossain1 my sensor analog readings are opposite max for white and min for black
Not able to unlock the link. But I've already subscribed
@@sbs_3071 try from computer
can i use digital pins instead of analog pins
No.
bro will 95 rpm motor work?
No
sir how to fix the robot keep rotating, at first go forward then after a second it start rotating
same problem here
Hi can i use 1500rpm n20 Motor for this
No
well instead of using a ic regulator you can use a arduino nano itself to control the output voltage to ir sensor array and l298n also i feel it [pretty useless for the regulator to be used
Arduino and L298 doesn't provide enough power required for IR sensor. Hence the robot won't run properly. That's why I've used regulator. Buck converter would be better.
@@aslamhossain1 and another thing can we get the schematics and code for the 8 channel qtrc line follower please that would be awesome if you did
can i use a 7805 vc instead of 7805 ic
Isn't it 7805 ic? what does vc mean?
You can use buck module and set output at 5volt
@@aslamhossain1 I meant 7805 cv but i think it's the same thing .. if I'm gonna use an arduino uno what shoud i change in the code
@@FatmaTarek-cj8viDon't need to change anything.
@@aslamhossain1but how .. I should change the analogs bc there’s no A7 in the arduino uno ..right?
Hello sir, I followed all the steps but my line follower goes crazy instead of following the line, pls help me ˃̶͈̀ロ˂̶͈́
adjust kp, kd value
why the code does not define the A0 - A7 for the connection with the sensor?
Doesn't need to define. analogRead(0) means A0, similar other analog pins.
@@aslamhossain1So if I make the sensor position on the analog pin on the Arduino Nano not match your video, for example with a random position (Sensor 1 to A3, Sensor 2 to A2, Sensor 3 to A4, Sensor 4 to A6 and Sensor 5 to A7), what's the code? How can Arduino Nano recognize each sensor? Please help me because I am still confused about the sensor declaration regarding the analog pin. Thank You.
@@juansiahaan9737 i've connected sensor from right to left serially. Not Randomly. Then i've used "for loop" to read sensor value.
Suppose: analogRead(i);
Here "i" value start from 0 to 4. If i = 0 mean 1st sensor. i = 1 mean 2nd sensor, i= 2 mean 3rd. Similar for Remaining sensors.
@@aslamhossain1 Thanks in advance for the answer. Then in your code int position[6] = { 1, 2, 3, 4, 5 }; why is there int position[6]? Even though there are only 5 sensors based on your video tutorial.
@@juansiahaan9737 its array size. you can it 5 or greater. No problem.
Will it work without the t Connector?
Yes.
@@aslamhossain1 the diagram shows that you connect a 220R but you didn’t in the video so should I connect it or not?
@@fatmatarek854 need to use for led and push button
Thank so much sir
Most Welcome
Sir i have did all but still not getting code pl
Sir can u make detail video on how to make 5 channel line following sensor
I've Already shown in this video. Check this out th-cam.com/video/7vuAqcf_HjQ/w-d-xo.htmlsi=3lElehlqUPTu1Xi-
🎉🎉🎉, CONG 👌👌👌, code please
Check description
bro how can i change the pin to A0,A2,A3,A4,A5
@@Knowledge_knockout255 execute the for loop for 0 to 5. That's it
@@aslamhossain1 would you write it for me bro thanks
@@Knowledge_knockout255 for (int i = 0; i < 6; i++) {
sensor[i] = analogRead(i);
if (sensor[i] > threshold) sensor[i] = 1;
else sensor[i] = 0;
}
@@aslamhossain1 Thanks bro it works now
Hi do you have fb brother I need help On my advance line following robot
Yes. Check in the description
Why not just use the a1-a5 analog pins
You can use like that. Then need to change in code.
Hola como estas, disculpa, no tengo acceso al código. Me suscribí a tu canal.
Send me a mail
@@aslamhossain1 Ya lo hice brow
Hi I have already subscribed but the link is not unlocking.
if you can't open the link please send a mail: aslamhshakil20@gmail.com
Sir i need a code for 5 channel array sensor
Given in the des
Bro iam not able get the unlock the link
Send me a mail
Bro, you forgot to tell about pid tuning
Hmm
@@aslamhossain1 hmmmmmm, Bhai bolega?
@@pocopoco3468 reduce kd if too much wobble. Increasing kp the bot will become much aggressive to back in line, result wobble.
Give me the code please
Where is the code please provide it
Link in the description
nice
Thank you
Pl share code
given in the description. Complete task to unlock.
Already subcribed but still not showing
@@rajivgaur2729 copy the link and paste in a browser. click on subscribe button then back to the link again.
Bro iam not able get the unlock the link