Go to Post If this information is not 100% correct, you should follow the default advice I have for when anything goes wrong: Blame the Programmers - IKE [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 24-07-2012, 18:56
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by KrazyCarl92 View Post
I'll talk to the guys who did that and see what they actually did
Can you share what you found out?


  #2   Spotlight this post!  
Unread 25-07-2012, 14:07
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by Ether View Post
Can you share what you found out?


Our meeting last week was cancelled, but we are meeting tonight to work on this exactly. I will post it here when I find out. Thanks for the reminder.
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
  #3   Spotlight this post!  
Unread 26-07-2012, 18:17
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

So it turns out the wire we used is 22 AWG shielded cable which the mentor says is available from Digikey. It has five 22-gauge wires (we only used 4) and these are wrapped with aluminum foil. Around the aluminum is more insolation. The aluminum foil is twisted at one of the ends of the cable, and grounded to the source ground (the jaguar 5 pin connector's ground in this case). It is important to only ground one side of the cable and not both, otherwise you could create a closed circuit, which may cause EMI if there is current going through the foil. My sources say you could also get away with grounding to the frame, but I don't think this is legal and it is usually better practice to ground it to a source anyway.

"[R38]
All wiring and electrical devices, including all control system components, shall be electrically isolated from the Robot frame. The Robot frame must not be used to carry electrical current."

I could see how both sides could be argued. I don't quite know if the aluminum is considered part of the "wiring", or if this would be considered carrying electrical current by the frame, but this is a tangent anyway since it can be grounded to a source.

I wouldn't usually think about the EMI on our robots, but looking at the number of sensors, motors, and other electrical components on that robot in comparison with our past robots, it's not surprising that this would be the one out of all of them to benefit from shielded sensor wires. I could post pictures if anyone is interested.
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
  #4   Spotlight this post!  
Unread 26-07-2012, 18:24
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

By the way, we were able to get the robot shooting about 50% last night without speed control. This was using the camera feed to the driver station for manual aiming and we had driver voltage control on the shooter motors. We may work toward integrating a simple non-PID speed control algorithm and vision processing from there. The vision processing part was complete during the build season, we just need speed control that works in PWM or to get our CAN working.
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
  #5   Spotlight this post!  
Unread 26-07-2012, 23:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by KrazyCarl92 View Post
We may work toward integrating a simple non-PID speed control algorithm
Were you thinking of trying a bang-bang controller, or perhaps a take-back-half?


  #6   Spotlight this post!  
Unread 27-07-2012, 10:46
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by Ether View Post
Were you thinking of trying a bang-bang controller, or perhaps a take-back-half?


We haven't decided exactly yet. Haven't hooked the encoder backup since we stopped using it in competition, so that's the first step along with verifying that it works.

I had thought of a bang-bang approach where we base the original voltage on motor curves, then if the speed drops X% below the target speed, raise the voltage by Y%, or if the speed exceeds the target by X%, lower the voltage by Y%. X would be the max allowable deviation from the target speed and Y would be an experimentally determined voltage correction. If its between 100-X % and 100+X %, we would apply no voltage correction.

I'd also like to see what the students come up with. After reading about take back half control here:
http://www.edn.com/design/analog/432...ence-algorithm
that seems like a good option. It looks like a good opportunity to explore different speed control options so we may try multiple approaches to see what gives us the best results (at least that's what I would like to see).
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
  #7   Spotlight this post!  
Unread 27-07-2012, 11:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by KrazyCarl92 View Post
I had thought of a bang-bang approach where we base the original voltage on motor curves, then if the speed drops X% below the target speed, raise the voltage by Y%, or if the speed exceeds the target by X%, lower the voltage by Y%. X would be the max allowable deviation from the target speed and Y would be an experimentally determined voltage correction. If its between 100-X % and 100+X %, we would apply no voltage correction.
There's a lengthy discussion (and paper) of bang-bang here, if you haven't seen it yet:

http://www.chiefdelphi.com/forums/sh...d.php?t=105679


Here's a thread (and paper) on take-back-half:

http://www.chiefdelphi.com/forums/sh...d.php?t=105965




  #8   Spotlight this post!  
Unread 26-07-2012, 18:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by KrazyCarl92 View Post
I could post pictures if anyone is interested.
If it's not too much trouble, please do.


  #9   Spotlight this post!  
Unread 26-07-2012, 21:56
KrazyCarl92's Avatar
KrazyCarl92 KrazyCarl92 is offline
Registered User
AKA: Carl Springli
FRC #5811 (The BONDS)(EWCP)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dayton, OH
Posts: 521
KrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond reputeKrazyCarl92 has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by Ether View Post
If it's not too much trouble, please do.


posted here, there are 3 pictures:
http://www.chiefdelphi.com/media/photos/38088?
__________________
[2017-present] FRC 0020 - The Rocketeers
[2016] FRC 5811 - BONDS Robotics
[2010-2015] FRC 0020 - The Rocketeers
  #10   Spotlight this post!  
Unread 26-07-2012, 23:17
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,098
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Low Res Optical Encoders for Speed Control

Quote:
Originally Posted by KrazyCarl92 View Post
posted here, there are 3 pictures:
http://www.chiefdelphi.com/media/photos/38088?
Thanks. You got a lot of hits. I guess there was some interest :-)


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 23:05.

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