Go to Post Pretty sure getting a frowny face from a safety inspector means you're doing it right. - Cory [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 17-04-2013, 17:57
matthewdenny's Avatar
matthewdenny matthewdenny is offline
Registered User
FRC #6054 (Dukes)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 310
matthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant future
Encoders (What's up with those?)

So our official season is done, but we are looking forward to some off-season events. In our attempt to remedy some weaknesses from the season we are looking to add an encoder to our shooting system. It is a miniCIM connected by ~.9 Gear ratio to a pneumatic wheel.

We have no idea what kind of sensors to look into, where to purchase them, or how to install them. Any help would be great. Thanks!
  #2   Spotlight this post!  
Unread 17-04-2013, 18:04
Ernst's Avatar
Ernst Ernst is offline
Ernst
AKA: Ernst
FRC #1732 (Hilltoppers)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Milwaukee, WI
Posts: 297
Ernst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond repute
Re: Encoders (What's up with those?)

We have never had much luck mounting US Digital encoders to flywheels. We also haven't had luck with using another motor as a tachometer. This year and last year for flywheels we used photoelectric sensors pointed at retro-reflective tape strips stuck to the wheels. We have 6 strips of the tape stuck evenly around the wheel this year. 6 ticks = 1 revolution. Our speed control has had quick responses and accuracy.
__________________
FIRST Team 1732- Hilltopper Robotics
Website, Facebook, Twitter, Instagram
  #3   Spotlight this post!  
Unread 17-04-2013, 18:11
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,521
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Encoders (What's up with those?)

Photoswitches are definitely the way to go. At the wheel speeds teams are using, finding encoders with shafts is difficult. Shaftless encoders like the US digital are a little touchy, and require decent tolerances too.

Optical sensors, on the other hand, will give you excellent speed control while allowing just about any alignment you feel like. There are a number of threads on this, however, so I suggest you search some of them out.

http://www.chiefdelphi.com/forums/sh...ht=photoswitch
  #4   Spotlight this post!  
Unread 17-04-2013, 18:52
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoders (What's up with those?)

Quote:
Originally Posted by ZehP View Post
We have 6 strips of the tape stuck evenly around the wheel this year. 6 ticks = 1 revolution.
How are you decoding the signal from the photosensor? i.e. Are you reading the number of counts, and dividing by elapsed time, or are you using getPeriod() to read the elapsed time between pulses?


Quote:
Our speed control has had quick responses and accuracy.
What speed control algorithm are you using? PID, TBH, bang-bang, something else?


  #5   Spotlight this post!  
Unread 17-04-2013, 23:12
Ernst's Avatar
Ernst Ernst is offline
Ernst
AKA: Ernst
FRC #1732 (Hilltoppers)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Milwaukee, WI
Posts: 297
Ernst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond repute
Re: Encoders (What's up with those?)

Quote:
Originally Posted by Ether View Post
How are you decoding the signal from the photosensor? i.e. Are you reading the number of counts, and dividing by elapsed time, or are you using getPeriod() to read the elapsed time between pulses?

What speed control algorithm are you using? PID, TBH, bang-bang, something else?


I wasn't involved with the programming. Sorry. I'll try to direct my team's main programmer to this thread.
__________________
FIRST Team 1732- Hilltopper Robotics
Website, Facebook, Twitter, Instagram
  #6   Spotlight this post!  
Unread 17-04-2013, 23:19
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Encoders (What's up with those?)

Quote:
Originally Posted by Ether View Post
How are you decoding the signal from the photosensor? i.e. Are you reading the number of counts, and dividing by elapsed time, or are you using getPeriod() to read the elapsed time between pulses?

What speed control algorithm are you using? PID, TBH, bang-bang, something else?



Fortunately, I just made a video this weekend explaining how it all works. (It was for the SpaceX FIRST application, hence the title).

http://www.youtube.com/watch?v=zzNLlAUbbcU

Edit: Might only leave this up for a little while. Watch it quick!

Last edited by propionate : 17-04-2013 at 23:23.
  #7   Spotlight this post!  
Unread 17-04-2013, 23:39
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoders (What's up with those?)

Quote:
Originally Posted by propionate View Post
Fortunately, I just made a video this weekend explaining how it all works. (It was for the SpaceX FIRST application, hence the title).

http://www.youtube.com/watch?v=zzNLlAUbbcU

Edit: Might only leave this up for a little while. Watch it quick!
Would you be interested in discussing this? If so, I have a few observations to make, and a few questions.


  #8   Spotlight this post!  
Unread 17-04-2013, 23:42
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Encoders (What's up with those?)

Quote:
Originally Posted by Ether View Post
Would you be interested in discussing this? If so, I have a few observations to make, and a few questions.


Sure, go ahead. The video length had to be 2 minutes or less so I had to skip a lot of details unfortunately.
  #9   Spotlight this post!  
Unread 17-04-2013, 23:59
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoders (What's up with those?)

Quote:
Originally Posted by propionate View Post
Sure, go ahead. The video length had to be 2 minutes or less so I had to skip a lot of details unfortunately.
OK here goes :-)

Is there a reason why you used the encoder VI, instead of the counter VI, for this non-quadrature sensor?

Why did you use 6 pieces of tape, instead of just one?

In an earlier post you said that your speed control is accurate to within 0.2% of point. What test equipment did you use to independently measure the wheel speed to make this determination?

Are your motors directly connected to the wheel, or are there gears or belts or chains between them?

What motor controllers are you using for the shooter motors?

What is the range of wheel speeds you are controlling?

Why did you need a custom PID? Did you try other methods (LabVIEW PID, TBH, bang-bang) and they didn't work?



  #10   Spotlight this post!  
Unread 18-04-2013, 00:03
Ernst's Avatar
Ernst Ernst is offline
Ernst
AKA: Ernst
FRC #1732 (Hilltoppers)
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Milwaukee, WI
Posts: 297
Ernst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond reputeErnst has a reputation beyond repute
Re: Encoders (What's up with those?)

Quote:
Originally Posted by Ether View Post
OK here goes :-)

I can answer some of these. We have CTRE Talons controlling BaneBots 550s which drive 4:1 gearboxes.
__________________
FIRST Team 1732- Hilltopper Robotics
Website, Facebook, Twitter, Instagram

Last edited by Ernst : 18-04-2013 at 00:04. Reason: spelling
  #11   Spotlight this post!  
Unread 18-04-2013, 00:18
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Encoders (What's up with those?)

Quote:
Is there a reason why you used the encoder VI, instead of the counter VI, for this non-quadrature sensor?
This is actually just a habit now. When I made my first feedback control loop for a flywheel last year, I had some trouble getting it to work using the counter. On a whim, I tried inputting them as encoders and it worked great. I've since figured out how to do it with the counter VI (some simple problem with the math I had), but never switched back.

Quote:
Why did you use 6 pieces of tape, instead of just one?
This was the recommendation of a mentor. His explanation was that it allowed for a 'finer' count. I have tried it with just one piece of tape and didn't notice any significant different (just different scaling).

Quote:
In an earlier post you said that your speed control is accurate to within 0.2% of point. What test equipment did you use to independently measure the wheel speed to make this determination?
I should have said, the PID controller keeps the flywheel within a .2% error based on the readings from the photoelectric sensors. If those readings themselves are incorrect, then I'd have to rescind that statement.

Quote:
Are your motors directly connected to the wheel, or are there gears or belts or chains between them?
See post by team member above. Directly connect w/ 4:1 gearboxes.

Quote:
What motor controllers are you using for the shooter motors?
See above - talons.

Quote:
What is the range of wheel speeds you are controlling?
Do you mean in RPM? I'd have to check my documentation at the shop, I can't remember off the top of my memory.

Quote:
Why did you need a custom PID? Did you try other methods (LabVIEW PID, TBH, bang-bang) and they didn't work?
The LabVIEW PID has worked fine for us in the past, but it's always more fun to write the code yourself, to a reasonable extent. Better learning opportunity for rookie programmers. I don't have much experience with the half-back or bang-bang controllers, so I can't comment on those. Would be interesting to try them though and see how they compare. Sorry I don't have a good response for this one!
  #12   Spotlight this post!  
Unread 18-04-2013, 00:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoders (What's up with those?)

Quote:
Originally Posted by propionate View Post
...
Thanks for the detailed answers.

I don't have access to the LabVIEW help files here, so one more question:

Can you tell me what the "12" input is for in the "Configure Timer" vi, and why did you chose that particular number.



  #13   Spotlight this post!  
Unread 18-04-2013, 00:54
propionate's Avatar
propionate propionate is offline
Team co-lead and LabVIEW programmer
AKA: Stephen
FRC #1732 (Hilltopper Robotics)
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Milwaukee
Posts: 93
propionate is on a distinguished road
Re: Encoders (What's up with those?)

Quote:
Originally Posted by Ether View Post

Can you tell me what the "12" input is for in the "Configure Timer" vi, and why did you chose that particular number.



Number of samples to average. I think it was a bit of trial and error until we got a smooth reading from the photoelectrics.
  #14   Spotlight this post!  
Unread 18-04-2013, 01:05
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: Encoders (What's up with those?)

Quote:
Originally Posted by propionate View Post
Number of samples to average. I think it was a bit of trial and error until we got a smooth reading from the photoelectrics.
Can you tell me, the way you have the encoder configured, is it sampling both rising and falling edges?


  #15   Spotlight this post!  
Unread 17-04-2013, 23:27
asteb27 asteb27 is offline
Registered User
FRC #0293
 
Join Date: Feb 2013
Location: New Jersey
Posts: 37
asteb27 is an unknown quantity at this point
Re: Encoders (What's up with those?)

Quote:
Originally Posted by ZehP View Post
Our speed control has had quick responses and accuracy.
How did you measure how accurate you were?

Quote:
Originally Posted by Tom Line View Post
Photoswitches are definitely the way to go. At the wheel speeds teams are using, finding encoders with shafts is difficult. http://www.chiefdelphi.com/forums/sh...ht=photoswitch
We have encoders in the 10,000 rpm range. I know some teams are running faster than 10k rmp, but plenty (like us) are running much slower than that.

I've used both of the following with no problem

http://www.digikey.com/product-searc...256&vendor=136

http://www.usdigital.com/products/en...otary/shaft/S1
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 11:17.

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