Go to Post Being a good engineer isn't all about engineering. It's about being able to use engineering for a practical application, and to successfully communicate your research or development results to people who aren't engineers - Jon Stratis [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
  #16   Spotlight this post!  
Unread 03-03-2009, 22:13
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Joysticks with circular motion

Why not just use a pot?
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #17   Spotlight this post!  
Unread 03-03-2009, 22:19
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Joysticks with circular motion

We are using this joystick this year for our crab drive. It has a circular restrainer and works great. It even has twist.

http://www.logitech.com/index.cfm/ga...s/291&cl=us,en
  #18   Spotlight this post!  
Unread 03-03-2009, 23:18
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Joysticks with circular motion

Quote:
Originally Posted by Jetweb View Post
We are using this joystick this year for our crab drive. It has a circular restrainer and works great. It even has twist.

http://www.logitech.com/index.cfm/ga...s/291&cl=us,en
Ours definitely moves in a square.
  #19   Spotlight this post!  
Unread 04-03-2009, 09:51
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,554
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: Joysticks with circular motion

With regards to what happens when the joystick returns to center - the turret simply stays at the last angle it was directed to go to. We use the magnitude (the R value coming out of the Labview rect => polar coversion vi) to add a deadzone to the joystick.

Seeing this thing in action the first time (in our room) dropped the jaws of many team members. I have to give all the kudos to the two Junior programmers and the two sophmore programmers who did it. The math is far easier than I thought it would be when we started.

The neatest part of it was when we put the robot on a turntable. You could push the joystick in a direction and release it. From then on, no matter how you turned the robot on the turntable, the turret always pointed in the same direction. I was amazed.

It allows anyone to walk up to our gunner station and have intuitive control. Push the joystick toward the target robot, and you're on target. We're going to let judges play with it to see if they're as startled by the performance as we were .

Al - we considered a pot - like a 10 turn. However, I was concerned about what would happen in the off-instance where the gunner reached the end of the turns in a critical situation and had to spin it around the other way. I like trying to simplify and plan for every eventuality, and that created a problem I didn't want our gunner to have to deal with.

Last edited by Tom Line : 04-03-2009 at 09:54.
  #20   Spotlight this post!  
Unread 04-03-2009, 09:55
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Joysticks with circular motion

I'm really liking this idea - I hope I get a chance to try it.

Do you use |R| just for a dead zone, or do you also use it to vary the speed with which it approaches the intended direction?

Again, cool!
  #21   Spotlight this post!  
Unread 04-03-2009, 09:56
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,554
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: Joysticks with circular motion

Quote:
Originally Posted by Lil' Lavery View Post
Ditto on that question. I'm assuming it stays in whatever the last position it was told to goto was?

A "field-centric" turret control is possibly one of the coolest things I've seen done control wise in FIRST. A number of teams have done field-centric drives (especially holonomic and mecanums), which is perhaps even more daunting, but you're the first I know of to do field-centric turret control.

I don't know of any circular range of motion joysticks, and was unable to find one (although I did run into customizable joysticks designed for arcade machine enthusiasts, which may or may not be useful to you). Depending on how you have your code written (namely the return to center question), it might be possible to use a trackball though. You'd have to fine tune it for the trackball control and your driver would have to relearn the system, but it could potentially work well.
One of the members on the team who uses NX3 and Inventor was pushing us to use a spaceball for it. The control board would look awesome, but I wasn't completely sold on ease of use

http://www.gamedev.net/features/revi...?productid=509
  #22   Spotlight this post!  
Unread 04-03-2009, 10:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Joysticks with circular motion

Quote:
Originally Posted by Tom Line View Post
Al - we considered a pot - like a 10 turn. However, I was concerned about what would happen in the off-instance where the gunner reached the end of the turns in a critical situation and had to spin it around the other way. I like trying to simplify and plan for every eventuality, and that created a problem I didn't want our gunner to have to deal with.
This should work well: http://usdigital.com/products/encode...ary/shaft/ma3/
  #23   Spotlight this post!  
Unread 04-03-2009, 10:06
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,554
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: Joysticks with circular motion

Quote:
Originally Posted by EricVanWyk View Post
I'm really liking this idea - I hope I get a chance to try it.

Do you use |R| just for a dead zone, or do you also use it to vary the speed with which it approaches the intended direction?

Again, cool!
We use R as the dead zone. We take the polar angle of the joystick, and compare it to an angle calculated from a 10 turn pot connected to the turret. We feed them into a PID loop that handles pointing the turret. It's generally within a degree of where you push the joystick, and gets full 270 degree rotation in 2 seconds.

Shooter speed is controled by a knob with foot graduations.

Again - I have to credit the programming team. The mentors said "wouldn't it be cool" and the team ran with it. I answered a couple of math questions for them, but I just watched over their shoulders while they figured out the "comparator code" to relate the angles.

I guess I'll spill the beans on the whole control system setup. The camera is mounted on the turret and constantly tries to track anything in the FOV that it can lock on to. However, it doesn't control the turret motions.

The gunner can pull the trigger and fire while aiming - that will fire balls with manual aim. Or pull the trigger and push the top button on the joystick while aiming. That allows the camera to take control of the turret - but only if it has a lock. The assumption is that the gunner continues to aim as best he can, so if the camera loses lock it immediately reverts to the angle the gunner is telling the turret to go to.

It took a lot of programming time to get the transitions between the modes seamless, but now you can barely tell when the gunner is using either method. The neatest part (I think) is that the gyro code that keeps the turret at an angle is tied into the camera code too - so if the bot turns, the camera has little trouble staying on target.
  #24   Spotlight this post!  
Unread 04-03-2009, 10:10
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,554
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: Joysticks with circular motion

Quote:
Originally Posted by Joe Ross View Post
Oh my. Maybe we'll play with implementing that between regionals.
  #25   Spotlight this post!  
Unread 04-03-2009, 12:31
SmokeTest's Avatar
SmokeTest SmokeTest is offline
Registered User
AKA: Mike Youmans
FRC #0116 (Epsilon Delta)
Team Role: Engineer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Herndon, VA
Posts: 5
SmokeTest is an unknown quantity at this point
Re: Joysticks with circular motion

Team 116 uses the MA3. We also use the KOP gyro to give field-centric turret aiming. In addition, we put a simple toggle switch on the OI as a fallback (in case the gyro stops working) which gives our 2nd driver clockwise/counter-clockwise rotate controls. He told us last night that he actually prefers this to the field-centric knob, but I suspect he hasn't tried aiming the turret with the robot heading toward him (which reverses the relative aiming directions).

-Mike Youmans
  #26   Spotlight this post!  
Unread 04-03-2009, 13:14
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,554
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: Joysticks with circular motion

He probably also didn't try to aim from 50 feet away with 5 other robots interfereing in his field of view
  #27   Spotlight this post!  
Unread 04-03-2009, 13:25
JesseK's Avatar
JesseK JesseK is online now
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,723
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Joysticks with circular motion

Quote:
Originally Posted by SmokeTest View Post
Team 116 uses the MA3. We also use the KOP gyro to give field-centric turret aiming. In addition, we put a simple toggle switch on the OI as a fallback (in case the gyro stops working) which gives our 2nd driver clockwise/counter-clockwise rotate controls. He told us last night that he actually prefers this to the field-centric knob, but I suspect he hasn't tried aiming the turret with the robot heading toward him (which reverses the relative aiming directions).

-Mike Youmans
Alot of video game addicts (or ex-addicts) who have played 3rd person shooters prefer robot-centric control rather than field-centric. We're just used to processing it in reverse if the bot is coming towards us, and doing it the other way around simply boggles our minds sometimes ... silly video games .
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
  #28   Spotlight this post!  
Unread 04-03-2009, 14:50
SmokeTest's Avatar
SmokeTest SmokeTest is offline
Registered User
AKA: Mike Youmans
FRC #0116 (Epsilon Delta)
Team Role: Engineer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Herndon, VA
Posts: 5
SmokeTest is an unknown quantity at this point
Re: Joysticks with circular motion

This is bit off-topic, but I think the reason the MA3 isn't more popular is that all prior Operator Interface controllers had a dead band programmed into it. The IFI Robotics manual says:
---
Digital value response for approximate analog input values: Digital 127 for 0.0v to 0.1v.
Digital 0 for 0.11v to 0.52v. Increasing from digital 1 to 254 for 0.53v to 4.99v.
---
Imagine rotating the knob from from 4.8V, 4.9V, 5.0V, 0.0V, 0.1V, 0.2V, etc. The OI software reports 252, 253, 254, 127(!), 0, 0, 0, ... then finally starts incrementing past 0 after about 40 degrees. This kind of behavior makes sense for a joystick, but not for the MA3. [The reason 127 corresponds to 0V is to stop a motor controlled by a Victor when a joystick gets unplugged.]

How to avoid this dead zone had me stumped all during build season last year, but I finally figured out a simple kluge to change the voltage at the analog input to avoid the 0V - 0.52V dead band. I added a diode (forward biased) between the ground lead of the MA3 and the ground pin of the OI. At the 16 mA current drawn by the MA3, the diode's forward voltage was about 0.6V. This made the minimum voltage at the input pin (output of the MA3) about 0.6V relative to the OI. From the MA3's point of view, it thought it was going between 0V and 4.4V, but it's shifted by 0.6V because of the diode's (relatively) constant voltage drop. US Digital specifies a minimum supply voltage of 4.5V for the MA3, but it worked for me at 4.4V. (That's why I call it a kluge.)

As I said, this might be a little off-topic now with the new Driver Station controller, but if anyone wants to retrofit an IFI Operator Interface controller with the MA3, you might want to try this trick.
  #29   Spotlight this post!  
Unread 04-03-2009, 20:07
AmoryG AmoryG is offline
Registered User
FRC #2423 (KwarQs)
Team Role: Alumni
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Watertown, MA
Posts: 221
AmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud ofAmoryG has much to be proud of
Re: Joysticks with circular motion

Quote:
Originally Posted by Tom Line View Post
With regards to what happens when the joystick returns to center - the turret simply stays at the last angle it was directed to go to. We use the magnitude (the R value coming out of the Labview rect => polar coversion vi) to add a deadzone to the joystick.

Seeing this thing in action the first time (in our room) dropped the jaws of many team members. I have to give all the kudos to the two Junior programmers and the two sophmore programmers who did it. The math is far easier than I thought it would be when we started.

The neatest part of it was when we put the robot on a turntable. You could push the joystick in a direction and release it. From then on, no matter how you turned the robot on the turntable, the turret always pointed in the same direction. I was amazed.

It allows anyone to walk up to our gunner station and have intuitive control. Push the joystick toward the target robot, and you're on target. We're going to let judges play with it to see if they're as startled by the performance as we were .

Al - we considered a pot - like a 10 turn. However, I was concerned about what would happen in the off-instance where the gunner reached the end of the turns in a critical situation and had to spin it around the other way. I like trying to simplify and plan for every eventuality, and that created a problem I didn't want our gunner to have to deal with.
Our team uses a system similar to what you guys have, but the joystick doesn't rotate our shooter, but our whole robot's base. We have a crab drive, so our robot can rotate its base without affecting its movement.
__________________
KwarQs 2423

2008 Boston Regional Rookie Allstars

http://whsrobot.blogspot.com/
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulating Motion with Physical Dynamics Madison SolidWorks 5 08-02-2007 12:19
Placing inventor assemblies with motion constraints rohit Inventor 2 03-02-2007 16:50
Help with motion detector chantilly_team Programming 13 31-01-2006 22:10
Help - G-Code Circular Motion for CNC Milling sanddrag Technical Discussion 15 18-08-2004 23:00
Building a Clock with Periodic Motion IMDWalrus Math and Science 15 24-03-2004 16:48


All times are GMT -5. The time now is 11:49.

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