Could someone please help me on making a proportional alignment program with an EV3?
Thank you!
Could someone please help me on making a proportional alignment program with an EV3?
Thank you!
Can you explain what you mean by “proportional alignment”? What do you want the program to do?
Sorry I did not specify, what the program is supposed to do is align on a colored line with light intensity while using a proportional controller.
Thank You:D
Find the white paper here on CD somewhere called “PID without a PhD”, that will help you understand the idea behind a P controller. Then search the term “PID” which is what you are looking for - just that your I and D terms will be ignored.
I’m not a programmer, and i know little about the EV3, but…
<Pseudocode>
Does sensor see line?
Yes: Move forward a little
No: Turn a little
repeat until you reach 'goal'
We didn’t have a LEGO team this year, but last year we had a couple of PID “P” only drives. Attached are a few “test” samples that run in a loop for testing and tuning.
#1: LightDrive: This followed a black line with pin point precision. You’re light sensor needs to be about 1/2" to 3/4" away from the line.
#2: GyroDrive: We could drive in a straight line using the Gyro.
Hope it helps.
LightDrive-Main.pdf (414 KB)
LightDrive.pdf (573 KB)
GyroDrive-Main.pdf (405 KB)
GyroDrive.pdf (574 KB)
LightDrive-Main.pdf (414 KB)
LightDrive.pdf (573 KB)
GyroDrive-Main.pdf (405 KB)
GyroDrive.pdf (574 KB)
Could someone please post a link to “PID without a PHD”.
Thanks!
Here you go