Log in

View Full Version : FLL proportional alignment!


Programator
28-11-2014, 19:53
Could someone please help me on making a proportional alignment program with an EV3?

Thank you!

z_beeblebrox
28-11-2014, 20:02
Can you explain what you mean by "proportional alignment"? What do you want the program to do?

Programator
28-11-2014, 23:22
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

DonRotolo
29-11-2014, 17:02
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'

Chris_Elston
29-11-2014, 23:46
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.

Programator
30-11-2014, 21:19
Could someone please post a link to "PID without a PHD".
Thanks!

adciv
30-11-2014, 21:21
Here you go
http://www.embedded.com/design/prototyping-and-development/4211211/PID-without-a-PhD