Go to Post The sign of a mature community is not that everyone is nice and happy but that differring opinions can be expressed. -Joe Johnson - archiver [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-11-2014, 19:53
Programator's Avatar
Programator Programator is offline
Registered User
no team
 
Join Date: Nov 2014
Location: Florida
Posts: 3
Programator is an unknown quantity at this point
FLL proportional alignment!

Could someone please help me on making a proportional alignment program with an EV3?

Thank you!
Attached Thumbnails
Click image for larger version

Name:	Lego.png
Views:	30
Size:	247.0 KB
ID:	17522  
Reply With Quote
  #2   Spotlight this post!  
Unread 28-11-2014, 20:02
z_beeblebrox's Avatar
z_beeblebrox z_beeblebrox is online now
Custom User Title
AKA: Cal
FRC #4183 (Bit Buckets)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Cambridge MA
Posts: 811
z_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond reputez_beeblebrox has a reputation beyond repute
Re: FLL proportional alignment!

Can you explain what you mean by "proportional alignment"? What do you want the program to do?
__________________
2012 Utah Regional Rookie All-Star
2013 Phoenix Regional Judge's Award for "design process and prototyping"
2014 Hub City Regional Quality Award, Arizona Regional Excellence in Engineering Award
2015 Arizona East Regional Creativity Award, Winner
2016 Arizona North Regional Finalist, Arizona West Excellence in Engineering Award, Finalist
Reply With Quote
  #3   Spotlight this post!  
Unread 28-11-2014, 23:22
Programator's Avatar
Programator Programator is offline
Registered User
no team
 
Join Date: Nov 2014
Location: Florida
Posts: 3
Programator is an unknown quantity at this point
Re: FLL proportional alignment!

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
Reply With Quote
  #4   Spotlight this post!  
Unread 29-11-2014, 17:02
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: FLL proportional alignment!

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>
Code:
Does sensor see line?
   Yes: Move forward a little
   No: Turn a little
repeat until you reach 'goal'
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #5   Spotlight this post!  
Unread 29-11-2014, 23:46
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 750
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: FLL proportional alignment!

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.
Attached Files
File Type: pdf LightDrive-Main.pdf (414.4 KB, 15 views)
File Type: pdf LightDrive.pdf (572.6 KB, 12 views)
File Type: pdf GyroDrive-Main.pdf (404.6 KB, 8 views)
File Type: pdf GyroDrive.pdf (574.4 KB, 10 views)
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369

Last edited by Chris_Elston : 29-11-2014 at 23:48.
Reply With Quote
  #6   Spotlight this post!  
Unread 30-11-2014, 21:19
Programator's Avatar
Programator Programator is offline
Registered User
no team
 
Join Date: Nov 2014
Location: Florida
Posts: 3
Programator is an unknown quantity at this point
Re: FLL proportional alignment!

Could someone please post a link to "PID without a PHD".
Thanks!
Reply With Quote
  #7   Spotlight this post!  
Unread 30-11-2014, 21:21
adciv adciv is offline
One Eyed Man
FRC #0836 (RoboBees)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2010
Location: Southern Maryland
Posts: 478
adciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to alladciv is a name known to all
Re: FLL proportional alignment!

Here you go
http://www.embedded.com/design/proto...-without-a-PhD
__________________
Quote:
Originally Posted by texarkana View Post
I would not want the task of devising a system that 50,000 very smart people try to outwit.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 20:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi