Go to Post I don't mind being odd...I like to - listen - to Dean Kamen's speeches. They make sense. I don't get to listen to a lot of sense in the world, just a lot of noise. - JaneYoung [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 13-05-2015, 18:02
ratdude747's Avatar
ratdude747 ratdude747 is offline
Official Scorekeeper
AKA: Larry Bolan
no team
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Madison, IN
Posts: 1,064
ratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond reputeratdude747 has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by R.C. View Post
I'm assuming this is the ma3?
Yup. I thought that was the model but it's been nearly five years since I worked with them and I didn't want to provide false information.

---

One issue that was encountered was sensor alignment... it should be a no-brainer but one ought to make sure all the sensors are aligned the same (same 0/360 position)... on can calibrate in code and account for the 0/360 transition, sure, but it is a pain and can slow the processing down if not written well.

What makes this issue common is that the input shafts of the encoders, back then at least, had no reference mark and being continuous, there is no stop to reference to. In retrospect, the fix for this is to use a DMM to find the 0/360 point, and make a mark with a scribe on the end of the shaft and on the encoder body (or reference the first mark to a known spot on the body).
__________________
Dean's List Semi-finalist 2010
1747 Harrison Boiler Robotics 2008-2010, 2783 Engineers of Tomorrow 2011, Event Volunteer 2012-current

DISCLAIMER: Any opinions/comments posted are solely my personal opinion and does not reflect the views/opinions of FIRST, IndianaFIRST, or any other organization.
  #17   Spotlight this post!  
Unread 13-05-2015, 18:15
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Bryce2471 View Post
Here is a link to the sensor that we have been using on our swerves. It meets all of you requests (and probably some you haven't encountered yet) except that it has an analog output, and you can get it for ~$10 if you shop around a little.
We use these too. I haven't seen anything close to the price.

We tend to get a twitch, when trying to hold a wheel at a position that crosses from 5v - 0v. It probably could be calibrated out. We just don't set any wheels in either drive or strafe position to this position.

I would not recommend trying anything other than absolute feedback geared one to one with the wheel.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
  #18   Spotlight this post!  
Unread 13-05-2015, 19:25
Bryce2471's Avatar
Bryce2471 Bryce2471 is offline
Alumnus
AKA: Bryce Croucher
FRC #2471 (Team Mean Machine)
Team Role: Mechanical
 
Join Date: Feb 2013
Rookie Year: 2007
Location: Camas, WA
Posts: 427
Bryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud ofBryce2471 has much to be proud of
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by RyanShoff View Post
We use these too. I haven't seen anything close to the price.

We tend to get a twitch, when trying to hold a wheel at a position that crosses from 5v - 0v. It probably could be calibrated out. We just don't set any wheels in either drive or strafe position to this position.

I would not recommend trying anything other than absolute feedback geared one to one with the wheel.
If you read the technical documents, you will find that the voltage output is not 0v to 5v. Depending on the model, I think it's roughly 0.1v to 4.9v. It's very simple to fix.
__________________
FLL Team Future imagineers
2010 Oregon State Championships: Winners
2011 International Invite: First place Robot design, Second Place Robot Performance
FRC Team Mean Machine
2012 Seattle: Winning alliance
2013 Portland: Winning alliance
2013 Spokane: Winning alliance
2014 Wilsonville: Winning alliance
2014 Worlds: Deans List Winner
  #19   Spotlight this post!  
Unread 13-05-2015, 19:30
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,524
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by RyanShoff View Post
We use these too. I haven't seen anything close to the price.

We tend to get a twitch, when trying to hold a wheel at a position that crosses from 5v - 0v. It probably could be calibrated out. We just don't set any wheels in either drive or strafe position to this position.

I would not recommend trying anything other than absolute feedback geared one to one with the wheel.
Why?
  #20   Spotlight this post!  
Unread 13-05-2015, 20:22
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Ether View Post
4-wheel independent-steering and independent-driven drivetrain, with unlimited steering rotation of the wheels and sensors, and no gaps in the sensor feedback

http://www.chiefdelphi.com/forums/sh...07&postcount=9

http://www.chiefdelphi.com/forums/sh...4&postcount=13


I second your thought expressed in the second link above:
So says JVN. So say we all.
Now a question for you Ether, two actually.

1) "No gaps in feedback sensor feedback" Strange wording. First of all, it is inconceivable to have swerve without feedback loops controlling the steering angle. Open Loop steering control is just not Swerve in my view. So... if I have infinite steering angles, then (for me at least) that implies sensors sufficient to provide the control loops information it needs to do its job.

Are there people in the world who would design a sensor system that would have gaps? You don't say anything about wheels that have continuous outer surfaces -- why the special attention to sensor gaps?

2) Can I get you to agree to a new definition that replaces 4 with N (N=number of drive wheels on the robot and must be >2)? If a team has 6 drive wheels then all of them have to have independent steering and infinitely turnable. Same with 3, 5, or 57.

I am torn about 2. If they had caster or omniwheels that were not powered but the 2 that were powered were independently steered and so on... Is that "Unicorn Swerve"? I say nay. "Unipony Swerve" is the best I am going to give them.

Ether, what say you?

Dr. Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2

Last edited by Joe Johnson : 13-05-2015 at 21:57.
  #21   Spotlight this post!  
Unread 13-05-2015, 20:43
Mike Bortfeldt Mike Bortfeldt is offline
Registered User
FRC #1126 (& 1511)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Rochester, NY
Posts: 119
Mike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud ofMike Bortfeldt has much to be proud of
Re: Best Sensor for Unlimited Rotation Swerve

Joe,

I think the "No gaps in sensor feedback" relates to the use of some potentiometers (and other sensors) like this one. While they are continuous rotation, electrically they have a gap in the signal for about 20 degrees of rotation.

Mike
  #22   Spotlight this post!  
Unread 13-05-2015, 21:19
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Mike Bortfeldt View Post
Joe,

I think the "No gaps in sensor feedback" relates to the use of some potentiometers (and other sensors) like this one. While they are continuous rotation, electrically they have a gap in the signal for about 20 degrees of rotation.

Mike
Bleck! I threw a a little as I thought of someone going to all the trouble of making a swerve with infinite rotation and then using a sensor with a 20 degree no signal zone.

How's that going to end well?

Dr. Joe J.
__________________
Joseph M. Johnson, Ph.D., P.E.
Mentor
Team #88, TJ2
  #23   Spotlight this post!  
Unread 13-05-2015, 21:39
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,104
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: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Joe Johnson View Post
Now a question for you Ether, two actually
1) What Mike said. I vaugely remember that there was some discussion back then about swerve designs with continuous-rotation pots with gaps. I wanted to explicitly rule that out.

2) Sure. That seems reasonable.


  #24   Spotlight this post!  
Unread 14-05-2015, 00:48
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,190
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by Joe Johnson View Post
Bleck! I threw a a little as I thought of someone going to all the trouble of making a swerve with infinite rotation and then using a sensor with a 20 degree no signal zone.

How's that going to end well?

Dr. Joe J.
I have been working on a background project with a sensor that gives a ~7 degree gap, which I considered to be quite bad. 20 degrees is just pure evil!
__________________
  #25   Spotlight this post!  
Unread 15-05-2015, 07:59
teku14's Avatar
teku14 teku14 is online now
http:
FRC #2614 (MARS)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Morgantown, WV
Posts: 64
teku14 is a jewel in the roughteku14 is a jewel in the roughteku14 is a jewel in the roughteku14 is a jewel in the rough
Re: Best Sensor for Unlimited Rotation Swerve

https://pixhawk.org/modules/px4flow

We're experimenting with this in the off-season... please critique on this idea
  #26   Spotlight this post!  
Unread 15-05-2015, 08:34
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,074
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by teku14 View Post
https://pixhawk.org/modules/px4flow

We're experimenting with this in the off-season... please critique on this idea
I like the idea, I'd be curious how you get around the issues with it's max velocity. It's designed for aerial vehicles so the camera expects to have a long distance to the ground. To get data for 14 fps you'd need to mount it 18 inches from the ground.

4/(1/400)*18*.0254/(.004/.000024)*3.28 = 14.4
__________________




.
  #27   Spotlight this post!  
Unread 15-05-2015, 14:35
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by AdamHeard View Post
I would not recommend trying anything other than absolute feedback geared one to one with the wheel.

Why?
Because we've tested robots that violated that, and they caused lots of trouble.

Early in our swerve testing, we didn't store the offset from a known direction. So our absolute feedback was really incremental. Every time you changed batteries, rebooted, pushed code, or suffered a brown out, you had to make sure the wheels where pointed in a specific direction. That gets old really quick. Also different people would set the wheels slightly differently, or worse incorrectly.

We had another test chassis with the feedback geared 2:1 to the direction. On this one, you still had to start the robot with the wheels pointed close to straight. The robot always knew the axis of the wheel, but not which direction it would go. It was a real joy, because we tried to count the 2.5v crossings of an analog 0-5v signal. Sometimes it would miss count and the wheel would start dragging.

I cringed when I saw Andymark release their swerve modules this year with non1:1 gearing on the feedback.

So I always recommend to teams thinking about a swerve drive: Use absolute feedback and gear it 1:1 to steering rotation.

Analog or digital signaling shouldn't really matter much. But the analog sensors quoted above are the cheapest I've seen.

To Bryce2471:
We do scale the analog voltage from the datasheet to 0-5v. It still twitches, but I haven't really tried to fix it. I agree it should be an easy fix, unless maybe the sensor has trouble pulling the signal quick enough.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
  #28   Spotlight this post!  
Unread 15-05-2015, 15:10
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,524
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by RyanShoff View Post
Because we've tested robots that violated that, and they caused lots of trouble.

Early in our swerve testing, we didn't store the offset from a known direction. So our absolute feedback was really incremental. Every time you changed batteries, rebooted, pushed code, or suffered a brown out, you had to make sure the wheels where pointed in a specific direction. That gets old really quick. Also different people would set the wheels slightly differently, or worse incorrectly.

We had another test chassis with the feedback geared 2:1 to the direction. On this one, you still had to start the robot with the wheels pointed close to straight. The robot always knew the axis of the wheel, but not which direction it would go. It was a real joy, because we tried to count the 2.5v crossings of an analog 0-5v signal. Sometimes it would miss count and the wheel would start dragging.

I cringed when I saw Andymark release their swerve modules this year with non1:1 gearing on the feedback.

So I always recommend to teams thinking about a swerve drive: Use absolute feedback and gear it 1:1 to steering rotation.

Analog or digital signaling shouldn't really matter much. But the analog sensors quoted above are the cheapest I've seen.

To Bryce2471:
We do scale the analog voltage from the datasheet to 0-5v. It still twitches, but I haven't really tried to fix it. I agree it should be an easy fix, unless maybe the sensor has trouble pulling the signal quick enough.
We ran an entire season (and seperately an offseason) with swerves that had incremental steering encoders.

We loved it. Not having any hardcoded positions was great. Could replace a module or sensor and not have to touch code.

We zero'd by hand straight and/or used a seperate zeroing sensor when we felt like it.

In the future we'd do it again but use a mechanical hardstop (deployable pin or something) to zero with a hall effect as a backup.

Not having any magic numbers in code is magical.
  #29   Spotlight this post!  
Unread 15-05-2015, 16:10
RyanShoff RyanShoff is offline
Registered User
FRC #4143 (Mars Wars)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Metamora, IL
Posts: 147
RyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to beholdRyanShoff is a splendid one to behold
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by AdamHeard View Post
Not having any magic numbers in code is magical.
I agree hard coding calibration values is bad.

We put a button on the smart dashboard called 'zero encoders'. Pushing it stores the steering encoder positions to the roborio using Preferences. That way there is nothing hardcoded, and the same code will work on two different robots. If something mechanically changes on the bot, just set the wheels to straight, press the button, and the new offsets are stored.
__________________
Ryan Shoff
4143 Mars/Wars
CheapGears.com
  #30   Spotlight this post!  
Unread 15-05-2015, 16:14
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,524
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Best Sensor for Unlimited Rotation Swerve

Quote:
Originally Posted by RyanShoff View Post
I agree hard coding calibration values is bad.

We put a button on the smart dashboard called 'zero encoders'. Pushing it stores the steering encoder positions to the roborio using Preferences. That way there is nothing hardcoded, and the same code will work on two different robots. If something mechanically changes on the bot, just set the wheels to straight, press the button, and the new offsets are stored.
That is essentially the same though. It requires the robot to be on and get comm for the sensor position to be saved.

Might not be enough time to do that in elims.
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 20:28.

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