Hello. It is a good explanation, thanks. But I need a little help. At 21:35 you mentioned that you will make this program available for download. I can not find it. Help me please, because I can not read the last statements on the screen. Thanks.
I understand this is only using the proportional part of the PID. Did you try using the Integral part as well and also using both the sensors one on right edge and other on left edge making it more stable.
I have understood the Proportional line following great ... but how will you end the movement .... you can't keep it in a loop forever if you need your robot to stop after a certain distance or so, how to end the loop or get out of it to stop movement???
Hi Asmaa, In general, you exit a loop like this using a second condition. For example, you check the value of a second color sensor and see if the second color sensor sees a color that denotes loop termination. Alternately, you can also look at the value of the motor encoder to find how much distance the robot has traveled. So, it looks like the following (this is pseudocode) while robot is following color line if termination color is detected on a second sensor or if encoder has reached appropriate value exit loop else continue loop
that here why does it turn left with pid, how is the balance of power to follow the line, does it not need to turn right, more power is given to the left motor, does it follow the line or the road in motor movement?
Hi there, you should be a bit careful in trying to follow a color line in reverse. The reason for this is that in reverse, the wheels will be in the front and the sensors in the back. Because of this, your wheels will try to correct for a position that they have already traversed and thus the robot will behave erroneously. It is better for the robot to turn around and follow the line. Or, it is also a reasonable design to put one color sensor in front of the wheels and one behind. When going backwards, use the other sensor.
Thank you so much!! This is the first line follower that is consistent time after time.
This is really great. Everyone wants to show you the PID and really the proportional part of the program is more than enough for most tasks. Thanks
Hello. It is a good explanation, thanks. But I need a little help. At 21:35 you mentioned that you will make this program available for download. I can not find it. Help me please, because I can not read the last statements on the screen. Thanks.
Helped me out alot, ty
Hello, can you please make a video about line following that has intersection or junction?
I understand this is only using the proportional part of the PID. Did you try using the Integral part as well and also using both the sensors one on right edge and other on left edge making it more stable.
I have understood the Proportional line following great ... but how will you end the movement .... you can't keep it in a loop forever if you need your robot to stop after a certain distance or so, how to end the loop or get out of it to stop movement???
Hi Asmaa, In general, you exit a loop like this using a second condition. For example, you check the value of a second color sensor and see if the second color sensor sees a color that denotes loop termination. Alternately, you can also look at the value of the motor encoder to find how much distance the robot has traveled. So, it looks like the following (this is pseudocode)
while robot is following color line
if termination color is detected on a second sensor or if encoder has reached appropriate value
exit loop
else
continue loop
that here
why does it turn left with pid, how is the balance of power to follow the line, does it not need to turn right, more power is given to the left motor, does it follow the line or the road in motor movement?
is it possible to show using 2 color sensors ?
You say you can download the program, could you tell me how to do it?
im having a headache... trying as many line followers as i can... and none is working!! im using the big wheels.
Thank you!
You mentioned a book, where is it available...
winningrobotics.com - the links there will take you to amazon.com
Could you please explain how to follow the color line in reverse? I did it in Mindstorms but can't get it to work correctly in spike prime.
Hi there, you should be a bit careful in trying to follow a color line in reverse. The reason for this is that in reverse, the wheels will be in the front and the sensors in the back. Because of this, your wheels will try to correct for a position that they have already traversed and thus the robot will behave erroneously. It is better for the robot to turn around and follow the line. Or, it is also a reasonable design to put one color sensor in front of the wheels and one behind. When going backwards, use the other sensor.