Go to Post I'd love to see a simple, robust system that connects quickly and dependably. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 12-02-2007, 14:22
team 888's Avatar
team 888 team 888 is offline
Registered User
FRC #0888
 
Join Date: Jan 2007
Location: Maryland
Posts: 7
team 888 is an unknown quantity at this point
Re: OI potentiometer for controlling turret

we are using a window motor. I went over the final design robot this morning and the drive train is in the way for placing the potentiometer. Eliminating this problem would call for some major design changes that we don't want to start at this point. Does anyone one have a simple code that will measure the rotation of the potentiometer on the oi?
  #2   Spotlight this post!  
Unread 12-02-2007, 14:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: OI potentiometer for controlling turret

Reading the OI potentiometer is easy -- just connect it between +5 and one of the OI analog inputs (x, y, wheel, or aux) on a joystick connector.

But without a position sensor on your turret, you won't be able to do much with the value coming back from the OI. How will you know which way to drive the turret motor if you don't know where it's pointing at any given moment?

If you don't have room for a pot on the window motor, how about putting a gear on the shaft it's turning and putting the pot on a matching gear connected to it?
  #3   Spotlight this post!  
Unread 12-02-2007, 15:05
kaszeta's Avatar
kaszeta kaszeta is offline
Registered User
FRC #0095 (Grasshoppers)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Lebanon, NH
Posts: 334
kaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of lightkaszeta is a glorious beacon of light
Re: OI potentiometer for controlling turret

Quote:
Originally Posted by team 888 View Post
I went over the final design robot this morning and the drive train is in the way for placing the potentiometer.
If I had a dollar for every time this has happened... Too many times the sensors get added in as an afterthought.

You won't get anything useful from the OI, you need feedback from the actual rotating turret to have a real control loop. Anything else is just open-loop control and prayer.

Methods for retrofitting some sort of feedback sensor include:

1. The abovementioned technique of adding a gear to the turning shaft, and hook a pot or encoder to that shaft.

2. Similarly, Team 95 has used friction wheels against the turning shaft. I don't recommend this, since it almost always will have a bit of slip.

3. Depending on the shaft size, you might be able to put a gear or nubs on it and use the Gear Tooth Sensor (note that with just one sensor, you won't be able to tell direction of rotation).

4. You can get shaft encoders that slip over an existing shaft, but you might have trouble procuring these in time.

5. I've seen string potentiometers (both professional and jury-rigged) used in all sorts of interesting setups where nothing else fit, if you can find or make one in time.
  #4   Spotlight this post!  
Unread 12-02-2007, 16:45
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: OI potentiometer for controlling turret

Quote:
Originally Posted by team 888 View Post
we are using a window motor. I went over the final design robot this morning and the drive train is in the way for placing the potentiometer. Eliminating this problem would call for some major design changes that we don't want to start at this point. Does anyone one have a simple code that will measure the rotation of the potentiometer on the oi?
I want to see the picture of this turret with absolutely no space in its entire 360° for a ¼" by ¼" potentiometer. (You couldn't point it the other way and have it over the drivetrain?)

Bottom line: You MUST put in a pot if you expect any decent control. (How can I emphasize it further?)

Give me sensors or give me death!

A sensor is worth a thousand words.

A sensor in hand is worth two in the bush.

Early to wire and early to read makes a robot healthy, wealthy, and wise.

When the pot's away, the arms will play.

A sensor a day keeps the mentor away.

A pot is a bot’s best friend.

The sensor is always nicer on the other side.

Hell hath no fury like a sensor ignored.

Knowledge is power.

Sensors are made, not born.

It’s not whether you win or lose, it’s how you read your pots.

A bot is known by the sensors it keeps.
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
Best source for a potentiometer? railerobotics Electrical 20 28-11-2007 22:24
Turret or No Turret? Leo 1529 Technical Discussion 5 16-01-2006 15:47
Code for use of a potentiometer wonderdog5 Programming 2 06-11-2002 23:15
Code for use of a potentiometer wonderdog5 OCCRA 2 06-11-2002 23:15
Code for Potentiometer wonderdog5 Programming 4 06-11-2002 15:19


All times are GMT -5. The time now is 04:51.

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