I've watched the section where you describe the 'coarse adjustment' loop twice, and I cannot figure out how the robot would work if the color sensor on input 4 is the first one to find the black line. At the end of the video I can clearly see Sirius approaching the line from both the left and right, but how is this achieved? Assuming sensor 1 hits the target color first, then you stop the wheel on motor B and pivot the robot around it until the sensor on 4 sees the target color, using forward motion on motor C (reverse power on Sirius). However, if the robot approaches from the opposite angle, then by the time sensor 1 sees the target color, wouldn't sensor 4 have already passed it? Am I missing something? Are you watching both sensors for the target color value?
Hi Michael! Thanks for your question! The if statements, where sensor 1 looks for the line, has an else statement as well (checks if sensor 4 sees the line). If that returns False as well, the algorithm will conduct this process over again; until one of the sensors has found the line (because of the loop). Therefore, we are watching both sensors simoultainiosly, sensor 1 right before sensor 4. I hope this lowchart makes it simple to understand: Senor 1? Yes: stop the motor, drive with the other motor until sensor 4 is on the line, continue to the fine adjustment stage. No: Sensor 4? Yes: stop the motor, drive with the other motor until sensor 1 is on the line, continue to the fine adjustment stage. NO: start over again
Ahhh... okay, I see it now. It's hard to really analyze the program by stopping the video repeatedly. I'm a software developer by profession, and trying to coach my girls' FLL team. Trying to learn this well enough to teach them. While I consider myself an accomplished developer, I find the graphical programming here to be a little baffling sometimes. Thanks again!
Could you explain more on how you figure out the light target values that you put in? Why wouldn't it be black- low around 5, white around 100 and in-between at 50 if the sensor was calibrated?
Unfortunately, I do not provide the programs for download. Doing so would be contrary to the spirit of competition. By building your own program, you get a better understanding of how it works.
Dear kyle, I love your videos, and I'm wondering about creating my own coding channel. I just want to know what programs you use for editing your videos? Also, is it free? Thanks.
Hello, that sounds like a great idea! I use Audacity (free) and a Blue Snowball Microphone (~$50) to record my audio, and Shotcut (free) to edit video (I used Windows Movie Maker for a long time). I use Open Broadcast Software (OBS, free) for screen recording. Good luck!
Is there a ev3 file to download? It is tough writing the program by fast-foreword and rewinding the video. Thanks. Great work
Really like the inclusion of lighting up the brick a colour as the program transitions to another section of the program
Thanks :)
WHOA ! i just opened your channel expecting a new video and at the same time i got a notification that builderdude 35 uploaded a video
Bro this is just insane!! You must be a beast :D
Nice job and well explained
Hi Kyle, excellent. Refinement of. The original, far more elegant than my solution to line squaring.
Thanks! Really, all of the credit belongs to Bendik on this one!
Hello, can you show the code in Mindstorm, thank you
I've watched the section where you describe the 'coarse adjustment' loop twice, and I cannot figure out how the robot would work if the color sensor on input 4 is the first one to find the black line. At the end of the video I can clearly see Sirius approaching the line from both the left and right, but how is this achieved? Assuming sensor 1 hits the target color first, then you stop the wheel on motor B and pivot the robot around it until the sensor on 4 sees the target color, using forward motion on motor C (reverse power on Sirius). However, if the robot approaches from the opposite angle, then by the time sensor 1 sees the target color, wouldn't sensor 4 have already passed it? Am I missing something? Are you watching both sensors for the target color value?
Hi Michael! Thanks for your question! The if statements, where sensor 1 looks for the line, has an else statement as well (checks if sensor 4 sees the line). If that returns False as well, the algorithm will conduct this process over again; until one of the sensors has found the line (because of the loop). Therefore, we are watching both sensors simoultainiosly, sensor 1 right before sensor 4.
I hope this lowchart makes it simple to understand:
Senor 1?
Yes: stop the motor, drive with the other motor until sensor 4 is on the line, continue to the fine adjustment stage.
No: Sensor 4? Yes: stop the motor, drive with the other motor until sensor 1 is on the line, continue to the fine adjustment stage.
NO: start over again
Ahhh... okay, I see it now. It's hard to really analyze the program by stopping the video repeatedly. I'm a software developer by profession, and trying to coach my girls' FLL team. Trying to learn this well enough to teach them. While I consider myself an accomplished developer, I find the graphical programming here to be a little baffling sometimes. Thanks again!
Could you explain more on how you figure out the light target values that you put in? Why wouldn't it be black- low around 5, white around 100 and in-between at 50 if the sensor was calibrated?
See my video on proportional line following. I include a full explanation on how to get the light values in that video.
Can you make a link for the program as it is hard to see every thing in the video
thanks
Unfortunately, I do not provide the programs for download. Doing so would be contrary to the spirit of competition. By building your own program, you get a better understanding of how it works.
Why were some switch blocks changed to tablet view?
"Tabbed view" makes the program more compact and easier to navigate when there is a lot of code on screen.
Can you make this an archived file on google drive so it's easier to get?
No, I cannot provide programs for download. Doing so violates the spirit of competition.
Dear kyle, I love your videos, and I'm wondering about creating my own coding channel. I just want to know what programs you use for editing your videos? Also, is it free? Thanks.
Hello, that sounds like a great idea! I use Audacity (free) and a Blue Snowball Microphone (~$50) to record my audio, and Shotcut (free) to edit video (I used Windows Movie Maker for a long time). I use Open Broadcast Software (OBS, free) for screen recording. Good luck!
Very good Video like
This is too complicated, you can use the proportional regulator and it will be wonderful.
How doese it work?