Go to Post The reason I care about it is that I don't want minorities (whether that's females or other racial minorities) to see the STEM world as only inclusive of majorities or men. - Monochron [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-12-2014, 20:00
TheHolyHades1 TheHolyHades1 is offline
Registered User
no team
 
Join Date: Jan 2014
Rookie Year: 2010
Location: usa
Posts: 145
TheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the rough
Swerve Encoder and Wiring Questions

Hi. I'm working on a design for a swerve drive robot, and, as this is my first attempt at actually making one, I've got a couple questions.

1. What precision is generally suggested for the encoders on the steering motor? We've currently got a 24 turn encoder which can be geared. I'm thinking we should try to gear it so that we get roughly 360 degree precision, but I have no idea if that's under/overkill.

2. How have people previously solved the issue of power wires for a module with the motor orientations similar to this: http://www.chiefdelphi.com/media/photos/33335

Thanks!

EDIT: Some additional information:

Encoder can be found here: http://www.adafruit.com/product/377

Also, this robot will be done at a small scale, roughly 1' x 1' chassis, as this is going to be more of a code/control experiment than a mechanical system experiment.

Last edited by TheHolyHades1 : 27-12-2014 at 20:32.
  #2   Spotlight this post!  
Unread 27-12-2014, 20:04
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,214
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by TheHolyHades1 View Post
Hi. I'm working on a design for a swerve drive robot, and, as this is my first attempt at actually making one, I've got a couple questions.

1. What precision is generally suggested for the encoders on the steering motor? We've currently got a 24 turn encoder which can be geared. I'm thinking we should try to gear it so that we get roughly 360 degree precision, but I have no idea if that's under/overkill.

2. How have people previously solved the issue of power wires for a module with the motor orientations similar to this: http://www.chiefdelphi.com/media/photos/33335

Thanks!
For the second question, people sometimes use slip rings. They allow rotation around their center but can still transmit power. Ideally you would just go with a coaxial setup like 221's revolution swerve to eliminate the wire problem altogether, and save some weight.
  #3   Spotlight this post!  
Unread 27-12-2014, 20:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
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: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by TheHolyHades1 View Post
We've currently got a 24 turn encoder
what a "24 turn" encoder? can you provide the maker and model number.

Quote:
I'm thinking we should try to gear it so that we get roughly 360 degree precision
What do you mean by 360 degree "precision" ? If your intended meaning is 360 degree travel range, you'll have to add complexity to your code to deal with that.



Last edited by Ether : 27-12-2014 at 20:07.
  #4   Spotlight this post!  
Unread 27-12-2014, 20:10
TheHolyHades1 TheHolyHades1 is offline
Registered User
no team
 
Join Date: Jan 2014
Rookie Year: 2010
Location: usa
Posts: 145
TheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the rough
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by Ether View Post
what a "24 turn" encoder? can you provide the maker and model number.



What do you mean by 360 degree "precision" ? If your intended meaning is 360 degree travel range, you'll have to add complexity to your code to deal with that.


I'm sorry, I meant 24 pulse encoder. Additionally, I meant to find some gearing such that one turn of the steer motor would result in 360 pulses on the encoder, so we'd have 1 degree precision (I think?)

As for the encoder: http://www.adafruit.com/product/377
  #5   Spotlight this post!  
Unread 27-12-2014, 20:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
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: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by TheHolyHades1 View Post
I'm sorry, I meant 24 pulse encoder. Additionally, I meant to find some gearing such that one turn of the steer motor would result in 360 pulses on the encoder, so we'd have 1 degree precision (I think?)
To get 360 cycles on the encoder, you'd have to rotate it 15 times. That's a lot of wire twisting... and that thing is gonna get jerked around very rapidly.

Quote:
As for the encoder: http://www.adafruit.com/product/377
from the web page:
"These rotary encoders rotate all the way around continuously, and are divided up into 24 'segments'. Each segment has a click-y feeling to it, and each movement clockwise or counter-clockwise causes the two switches to open and close."

Hmm. "Click-y feeling". Sounds mechanical. Not entirely clear from the description if this generates a quadrature signal. I'll take a peek at the datasheet...



Last edited by Ether : 27-12-2014 at 20:26.
  #6   Spotlight this post!  
Unread 27-12-2014, 20:27
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by Ether View Post
Not entirely clear from the description if this generates a quadrature signal. I'll take a peek at the datasheet...
First line of the datasheet:

Quote:
Output ................. . . . ......................2-bit quadrature code
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #7   Spotlight this post!  
Unread 27-12-2014, 20:31
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
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: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by Ether View Post
I'll take a peek at the datasheet..
60 RPM max operating. That's 1 rev/sec. That's 24 wheel degrees per sec. That's 7.5 seconds to rotate the wheel 180 degrees.

Fail.


  #8   Spotlight this post!  
Unread 27-12-2014, 20:37
TheHolyHades1 TheHolyHades1 is offline
Registered User
no team
 
Join Date: Jan 2014
Rookie Year: 2010
Location: usa
Posts: 145
TheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the rough
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by Ether View Post
60 RPM max operating. That's 1 rev/sec. That's 24 wheel degrees per sec. That's 7.5 seconds to rotate the wheel 180 degrees.

Fail.


Oh. Wow. Thank you for pointing that out, looks like we'll need to find another solution, then.

Does anyone have any suggestions?
  #9   Spotlight this post!  
Unread 27-12-2014, 20:45
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,214
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by TheHolyHades1 View Post
Oh. Wow. Thank you for pointing that out, looks like we'll need to find another solution, then.

Does anyone have any suggestions?
We use the MA3 encoder from US Digital for absolute encoder stuff.
  #10   Spotlight this post!  
Unread 27-12-2014, 21:08
TheHolyHades1 TheHolyHades1 is offline
Registered User
no team
 
Join Date: Jan 2014
Rookie Year: 2010
Location: usa
Posts: 145
TheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the rough
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by asid61 View Post
We use the MA3 encoder from US Digital for absolute encoder stuff.
While this seems very nice, it's quite cost prohibitive, unfortunately. The total budget for this project (which we have already spent) is/was around $300.
  #11   Spotlight this post!  
Unread 27-12-2014, 21:12
jman4747's Avatar
jman4747 jman4747 is offline
Just building robots
AKA: Josh
FRC #4080 (Team Reboot)
Team Role: CAD
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Atlanta GA
Posts: 418
jman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond reputejman4747 has a reputation beyond repute
Re: Swerve Encoder and Wiring Questions

You might start here:

http://www.automationdirect.com/adc/...(TRD-MX_Series)

These are all rated for 6000rpm. Note when using these and other solid shaft encoders you probably (definitely) need one of the flexible couplings.

You can get Grayhill encoders from Digikey http://www.digikey.com/product-searc...=0&pageSize=25.

Ordering Direct from USDigital is great as well http://www.usdigital.com/products/en...tal/rotary/kit.

And CUI inc. has some amazing offerings and low prices also sold by Digikey like the AMT 103-V http://www.digikey.com/product-detai...1308-ND/827016.

Also read those data sheets.

Edit: Just read last post. That price range is not the best... You really need the CUI AMT 103-V stuff from Digikey.
__________________
---------------------
Alumni, CAD Designer, machinist, and Mentor: FRC Team #4080

Mentor: Rookie FTC Team "EVE" #10458, FRC Team "Drewbotics" #5812

#banthebag
#RIBMEATS
#1620

Last edited by jman4747 : 27-12-2014 at 21:15.
  #12   Spotlight this post!  
Unread 27-12-2014, 23:03
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,357
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Swerve Encoder and Wiring Questions

We prefer a absolute encoder for steering position.
http://www.digikey.com/product-detai...393-ND/2620662
Easier on the budget.
  #13   Spotlight this post!  
Unread 27-12-2014, 20:07
cgmv123's Avatar
cgmv123 cgmv123 is offline
FRC RI/FLL Field Manager
AKA: Max Vrany
FRC #1306 (BadgerBOTS)
Team Role: College Student
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,070
cgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond reputecgmv123 has a reputation beyond repute
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by TheHolyHades1 View Post
2. How have people previously solved the issue of power wires for a module with the motor orientations similar to this: http://www.chiefdelphi.com/media/photos/33335
Know how many revolutions your wires can handle, keep track in code and quickly turn the module to unwind the wires when needed.
__________________
BadgerBOTS Robotics|@team1306|Facebook: BadgerBOTS
2016 FIRST Championship Tesla Division | 2016 Wisconsin Regional Engineering Inspiration Award

2015 FIRST Championship Carson Division | 2015 Wisconsin Regional Chairman's Award

2013 FIRST Championship Curie Division | 2013 Wisconsin Regional Chairman's Award

2012 FIRST Championship Archimedes Division | 2012 Wisconsin Regional Engineering Inspiration Award, Woodie Flowers Finalist Award (Lead Mentor Ben Senson)

  #14   Spotlight this post!  
Unread 28-12-2014, 16:31
TheHolyHades1 TheHolyHades1 is offline
Registered User
no team
 
Join Date: Jan 2014
Rookie Year: 2010
Location: usa
Posts: 145
TheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the roughTheHolyHades1 is a jewel in the rough
Re: Swerve Encoder and Wiring Questions

Quote:
Originally Posted by cgmv123 View Post
Know how many revolutions your wires can handle, keep track in code and quickly turn the module to unwind the wires when needed.
Given the budget and wire winding/unwinding problem, would it make sense to simply limit the motion to 180 degrees, and reverse wheel direction as necessary? The issue I see here is that there will likely be some very jerky motion when crossing over the 180 degree mark, when the wheel direction has to reverse. I believe this has been attempted before, though I'm not sure to what degree of success.

Additionally, I think doing this would allow us to use a cheap potentiometer. I'm just not sure if a cheap potentiometer will be accurate enough for position sensing; I've heard mixed reviews about the linearity and accuracy of cheap pots.

Quote:
Originally Posted by Gdeaver
We prefer a absolute encoder for steering position.
http://www.digikey.com/product-detai...393-ND/2620662
Easier on the budget.
Thank you for the suggestion. With this, if I'm not mistaken, the encoder will simply modify its output voltage based on the position of the shaft, and the voltage, when mapped between 0 to 360 degrees, will result in a resolution of roughly 0.088 degrees?

Quote:
Originally Posted by jman4747
You might start here ...
Unfortunately there isn't anything we can do about the budget. However, a couple of the places you pointed do seem to have cheap options, but that probably means they're a little featureless. I'll check them out though, thanks for the suggestions.
  #15   Spotlight this post!  
Unread 29-12-2014, 09:26
BeardyMentor BeardyMentor is offline
Just the right amount of Crazy
AKA: Matt Hagan
FRC #1257 (Parallel Universe)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2010
Location: United States
Posts: 108
BeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud ofBeardyMentor has much to be proud of
Re: Swerve Encoder and Wiring Questions

depending on what you need to do, there are some easier ways to hack together an encoder. I probably would not use these hacks on an FRC robot, but for a testing platform, they are fine.

If all you want to do is sense speed, acceptable results can be had with a reflective sensor like this http://www.robotmesh.com/line-tracki...ONYaAgcT8P8HAQ and using some white and black paint on the shaft of the wheel. If you want something with a bit more resolution you can use a pair of hall effect sensors and attach magnets to the rotating object.
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 09:27.

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