Go to Post I really think we need to keep our pitchforks sheathed and torches unlit until we here more news and get more details. - IndySam [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-03-2012, 13:51
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Several programming and electrical questions

Hey guys,

My team, 4058, finished a few weeks ago, so I figured I should start learning some more in depth programming and electrical techniques (yes, I do both, on a small team) so that I can pass on knowledge to the younger members of the team

To start, I read a lot of teams were using PIDs on their shooters, and I am not sure what they are or what they do, so if someone could enlighten me it would be greatly appreciated.

Another thing I would like to learn is how to use vision tracking. At boilermaker regional, we were relegated to putting a piece of tape in the center of the camera image to aim (crudely), and I figured using vision tracking could make scoring exponentially easier in all games, not just rebound rumble.

The last thing I would like to know would be how encoders are used, how they are hooked up, and how they are programmed.

I apologize if some of the things I said make no sense. If they do, let me know and I will try to reword the question.

Thanks in advance for the help.
  #2   Spotlight this post!  
Unread 27-03-2012, 14:25
mathking's Avatar
mathking mathking is offline
Coach/Faculty Advisor
AKA: Greg King
FRC #1014 (Dublin Robotics aka "Bad Robots")
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 1999
Location: Columbus, OH
Posts: 635
mathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond reputemathking has a reputation beyond repute
Re: Several programming and electrical questions

Here are a couple of links from FIRSTWiki:
http://www.firstwiki.net/index.php/PID_controller
http://www.firstwiki.net/index.php/C...PID_controller

There are also some technical discussions in other threads on CD.

If you are still wondering after the competition season (our regional is week 6 and my programmers are still busy) send me a message and I will have one of them get back to you.
__________________
Thank you Bad Robots for giving me the chance to coach this team.
Rookie All-Star Award: 2003 Buckeye
Engineering Inspiration Award: 2004 Pittsburgh, 2014 Crossroads
Chairman's Award: 2005 Pittsburgh, 2009 Buckeye, 2012 Queen City
Team Spirit Award: 2007 Buckeye, 2015 Queen City
Woodie Flowers Award: 2009 Buckeye
Dean's List Finalists: Phil Aufdencamp (2010), Lindsey Fox (2011), Kyle Torrico (2011), Alix Bernier (2013), Deepthi Thumuluri (2015)
Gracious Professionalism Award: 2013 Buckeye
Innovation in Controls Award: 2015 Pittsburgh
Event Finalists: 2012 CORI, 2016 Buckeye
  #3   Spotlight this post!  
Unread 27-03-2012, 14:37
Mike AA's Avatar
Mike AA Mike AA is offline
Programmer and Mentor
AKA: Mike Aalderink
FRC #3458 (Code Blue)
Team Role: Programmer
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Holland, Mi
Posts: 698
Mike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to beholdMike AA is a splendid one to behold
Send a message via MSN to Mike AA
Re: Several programming and electrical questions

What programming language are you using? If you are doing labview there are a whole bunch of examples and tutorials to show many of these situations.

FIRST Community on NI.com
  #4   Spotlight this post!  
Unread 27-03-2012, 14:42
jvriezen jvriezen is offline
Registered User
FRC #3184 (Burnsville Blaze)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Burnsville, MN
Posts: 636
jvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond reputejvriezen has a reputation beyond repute
Re: Several programming and electrical questions

Quote:
Originally Posted by bf2416 View Post
Hey guys,

My team, 4058, finished a few weeks ago, so I figured I should start learning some more in depth programming and electrical techniques (yes, I do both, on a small team) so that I can pass on knowledge to the younger members of the team

To start, I read a lot of teams were using PIDs on their shooters, and I am not sure what they are or what they do, so if someone could enlighten me it would be greatly appreciated.

Another thing I would like to learn is how to use vision tracking. At boilermaker regional, we were relegated to putting a piece of tape in the center of the camera image to aim (crudely), and I figured using vision tracking could make scoring exponentially easier in all games, not just rebound rumble.

The last thing I would like to know would be how encoders are used, how they are hooked up, and how they are programmed.

I apologize if some of the things I said make no sense. If they do, let me know and I will try to reword the question.

Thanks in advance for the help.
I'm by no means an expert on any of the topics, but will give you a very high level understanding of each.

Encoders: These are devices that you mount onto a spinning shaft (i.e. shooter wheel shaft, or drive train shaft.) They are connected to motor controllers (i.e. jaguar) and tell the controller and/or cRIO how fast the shaft is turning, and in which direction it is turning.

PID: This is a very commonly used method to get some system measurement (usually RPM) to a desired value quickly and efficiently. Think about accellerating from a red traffic light just turned green, where you want to get to 60mph as quickly as possible. Initially, you will floor it, but if you were to leave the gas pedal there, you'd eventually be going much faster than 60. You don't wan to leave it there until you get to 60, and then suddenly back off. Instead, as you approach 60MPH, you back off so that you smoothly get to 60. Similarly when braking. To stop when you see a yellow light, you first press on the brake pretty hard, but if you left your foot there, you would get quite a jolt at the end of the stop, so you back off on the brake as your speed slows. PID does the same thing, using a mathemetical model. It requires an encoder (or other feedback mechansm) to tell the model how far you are from your goal, how quickly you are approaching it and so forth.

Vision: One quick improvement to 'tape' on the image is that you can program your driver station to draw a cross-hair (or in the case of this year's game a vertical line may be sufficient). One of the things we decided (sort of) this year is doing vision processing on the cRIO was over taxing of it-- so we send the image to the driver station. Once it is there, the best/fastest image processor we have is the human brain standing next to it. We have some 'sweet spot' shooting locations (key, midcourt, etc.) where we know the shooter speed needed (we have an encoder which tells us RPM). So we ended up not using any software for vision processing.
__________________
John Vriezen
FRC, Mentor, Inspector #3184 2016- #4859 2015, #2530 2010-2014 FTC Mentor, Inspector #7152 2013-14
  #5   Spotlight this post!  
Unread 27-03-2012, 16:21
bf2416's Avatar
bf2416 bf2416 is offline
Registered User
AKA: Blake Frasur
FRC #4058 (Boombots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Union County
Posts: 35
bf2416 is an unknown quantity at this point
Re: Several programming and electrical questions

Quote:
Originally Posted by Mike AA View Post
What programming language are you using? If you are doing labview there are a whole bunch of examples and tutorials to show many of these situations.

FIRST Community on NI.com
I use labview, I will look at some of those tutorials next opportunity I get.

Thanks for all the feedback, guys, really appreciate it.
  #6   Spotlight this post!  
Unread 27-03-2012, 20:30
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: 6,995
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: Several programming and electrical questions

Quote:
Originally Posted by jvriezen View Post
Encoders: These are devices that you mount onto a spinning shaft (i.e. shooter wheel shaft, or drive train shaft.) They are connected to motor controllers (i.e. jaguar) and tell the controller and/or cRIO how fast the shaft is turning, and in which direction it is turning.
Encoders can also be used to determine the position of a robot element, like the angle of an arm.
__________________

I am N2IRZ - What's your callsign?
Closed Thread


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 18:06.

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