Go to Post We need to grow smart not grow fast. - Andrew Schreiber [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
  #16   Spotlight this post!  
Unread 07-12-2007, 17:07
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: Limitless Potentiometers

We used encoders on are drive train for the wheel rotation. It worked fine and never broke. It was also very reliable. However we had a pot on the arm and that broke a lot we went through quite a few of those. Mainly because it was not protected very well though. When it was working it did not give very consistent readings though
  #17   Spotlight this post!  
Unread 07-12-2007, 19:27
Leav's Avatar
Leav Leav is offline
Spud Gun Division
AKA: Leav Oz-Ari
FRC #3316 (D-Bug)
Team Role: Mentor
 
Join Date: Dec 2004
Rookie Year: 2005
Location: Technion, Haifa, Israel
Posts: 774
Leav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond reputeLeav has a reputation beyond repute
Send a message via ICQ to Leav Send a message via AIM to Leav Send a message via MSN to Leav
Re: Limitless Potentiometers

Here are my tips regarding potentiometers:
  • Use the best quality pots you can get - 0.25$ pots wont perform as well as the 3-4$ pots... it's a small amount that's worth it.
  • mount the pots securely making sure they cannot move.
  • pots should not be load bearing parts. use them in a place where they will not be damaged by the load applied to your robot.
  • remeber that if you need accuracy it is best to use a small gearing system that should make the pot turn more, that way you are minimizing the effect of the looseness in the pot itself.

that's about it I guess.... good luck!

-Leav
__________________
"We choose to build robots this season and do the other things; Not because they are easy, but because they are hard."
-Paraphrasing JFK

Participated in FIRST as a student: 2005-2006 (But still learning every season!)
Mentor: 2008 - ? (Team 2630 2008-2011, and Team 3316 since 2013)
Engineer: 2011 - ? (B.Sc. and M.Sc. in Mech. Eng. from the Technion IIT)
FIRST Volunteer - 2007 - ? (MC, FTA, FIRST Aid etc.)
  #18   Spotlight this post!  
Unread 08-12-2007, 22:31
Bruce Newendorp Bruce Newendorp is offline
Engineer
FRC #0525 (Swartdogs)
Team Role: Engineer
 
Join Date: Jul 2004
Rookie Year: 2001
Location: Cedar Falls, IA
Posts: 74
Bruce Newendorp is a splendid one to beholdBruce Newendorp is a splendid one to beholdBruce Newendorp is a splendid one to beholdBruce Newendorp is a splendid one to beholdBruce Newendorp is a splendid one to beholdBruce Newendorp is a splendid one to beholdBruce Newendorp is a splendid one to behold
Re: Limitless Potentiometers

We use Digi-Key part 6639S-1-103-ND for our arms and linkages. It is a Bourns Series 6639 potentiometer. It provides electrical output over 340 degrees of rotation but there are no mechanical stops in it. That means it is easy to install and calibrate since you do not need to worry about breaking the stops due to over travel. It is somewhat expensive at $11.
  #19   Spotlight this post!  
Unread 09-12-2007, 10:54
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Limitless Potentiometers

Hi

Team1629 uses this pot from Mouser.com (My favorite parts vendor)

http://www.mouser.com/search/refine....594-357-00-502

Datasheet here:

http://www.vishay.com/docs/57059/357.pdf

At $15 it's not cheap, but it gave us position feedback on our 2007 arm position all season and several off-season competions with no problems.

Phil.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #20   Spotlight this post!  
Unread 09-12-2007, 20:36
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Limitless Potentiometers

Quote:
Originally Posted by sumadin View Post
Sorry to hijack the thread, but I'm wondering how you would tell what direction you moved. I don't doubt this can work very well for something that only goes under a revolution. However, let's say you moved from 100 degrees to 200. How do you know if you moved 100 forwards or 260 back?

Thanks.
Before I even start, here's the, well, you might call it the Nyquist rate for sampling these rotary analog encoders (aka Limitless Pots). Unless you use adaptive sampling rates (DO NOT if you are using a PID and don't want to have dynamic constants on the terms) you have to sample the voltage about four times per revolution, or else you won't know which way you went (there may be a more efficient way but this is what I used last season). Therefore, I suggest you figure how many RPM the shaft you are coupled to could do in the worst possible situation, then add some to that (use your engineering sense). Obviously if you miss a revolution you'll be in trouble and have problems like you mentioned above.

I drew a diagram (using my graphic tablet I got on Black Friday... ) that explains how this system works. Essentialy you break the waveform that the analog encoder outputs into sections, and do a state-based decode. Since you're sampling at a rate four+ times that of the rate of revolution, you will be able to detect a high-contrast change in the values comming back from the analog encoder and be able to figure that you went from a high-to-low or low-to-high transition, thus indicating the direction in which you moved.

Aside from that, the rest of the system functions on deltas: you add or subtract how much the values have changed depending on which direction the analog encoder is moving.

Here's the code snippet that handles one of the analog encoders (there were two) on our robot. This function was called at a rate of 100Hz using a CCP module for timing (it also was running a high-performance pwm signal for the pid'ed traction motors on the robot):

Code:
void encoder_left_handler(void)
{
	if(ServoOn)	//if servos running, sample encoder
	{
		leftencoderpos = Get_Analog_Value(LEFTENCODER);		//get value from other encoder
		if (leftencoderpos <= 253)
		{
			leftencoderstate = 0;	//state a
		}
		else if (leftencoderpos <= 505)
		{
			leftencoderstate = 1;	//state b
		}
		else if (leftencoderpos <= 757)
		{
			leftencoderstate = 2;	//state c
		}
		else
		{
			leftencoderstate = 3;	//state d
		}
		if (leftencoderstate == 0 && oldleftencoderstate == 3)	//from top to bottom, rev
		{
			//going backwards
			leftencoder -= (int)((1009 - oldleftencoderpos) + (leftencoderpos-2));
		}
		else if (leftencoderstate == 3 && oldleftencoderstate == 0)	//from bottom to top, fwd
		{
			//going forward
			leftencoder += (int)((1009 - leftencoderpos) + (oldleftencoderpos-2));
		}
		else	//intra-state position calculation
		{
			if (leftencoderpos < oldleftencoderpos)
			{
				//goingfwd, intra state
				leftencoder += (int)(oldleftencoderpos - leftencoderpos);
			}
			else
			{
				//goingbkwd, intra state
				leftencoder -= (int)(leftencoderpos - oldleftencoderpos);
			}
		}
	
	
	
	
	

		oldleftencoderstate = leftencoderstate;	//save encoder state
		oldleftencoderpos = leftencoderpos;	//save old encoderposition
	}	//end if servo on
//...
This system works very very well, we used it to run a 100Hz update rate PID (as I stated before, we were feeding the Victors a 16-bit PWM signal at 100Hz as well as opposed to the standard 8-bit 39.37Hz) which performed with silky-smooth motion control during our post-season autonomous work. I definitely reccomment analog encoders. As long as you show 'em a little love with shielded cables, smart wiring (keep the wires short!), and a little software know how, you get fantastic positional accuracy without the need to handle extreme high frequency (in the KHz) interrupts at high speed.

Questions? Post!

-q
Attached Thumbnails
Click image for larger version

Name:	continuous rotation decode schema.JPG
Views:	58
Size:	45.1 KB
ID:	5827  
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #21   Spotlight this post!  
Unread 09-12-2007, 23:03
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Limitless Potentiometers

Give Bournes 6639S-1-203 a try.

http://www.mouser.com/catalog/632/568.pdf

We have used it sucessfully when the mechanical
stops of a 270 degree pot posed a problem.
  #22   Spotlight this post!  
Unread 10-12-2007, 08:57
Pavan Dave's Avatar
Pavan Dave Pavan Dave is offline
Busy in College
AKA: I am John Gault.
FRC #1745 (P-51 Mustangs) FRC #118 (Robonauts)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Richardson, Texas
Posts: 1,387
Pavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond reputePavan Dave has a reputation beyond repute
Send a message via AIM to Pavan Dave
Re: Limitless Potentiometers

We have used 2 continuous potentiometers in the past. What we did was couple them together so we could account for 360 degrees. From there, all you have to do is work with the code a little bit to work between the two pots.
__________________
Times change. People change. Teams change.
---
2008-Present: FRC1745, P51-Mustangs - Mentor
2005-2008: FRC118, Robonauts - Alumni
National Director of Philanthropy - Delta Epsilon Psi Fraternity, Inc.
1745 - 118 - ΔΕΨ
  #23   Spotlight this post!  
Unread 10-12-2007, 17:48
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: Limitless Potentiometers

Quote:
Originally Posted by Leav View Post
Here are my tips regarding potentiometers:
  • Use the best quality pots you can get - 0.25$ pots wont perform as well as the 3-4$ pots... it's a small amount that's worth it.
  • mount the pots securely making sure they cannot move.
  • pots should not be load bearing parts. use them in a place where they will not be damaged by the load applied to your robot.
  • remeber that if you need accuracy it is best to use a small gearing system that should make the pot turn more, that way you are minimizing the effect of the looseness in the pot itself.
I would have to agree! Get really good pots and be sure they are not bearing load!!!

Also a good pot mount with a protector always makes things nicer!
  #24   Spotlight this post!  
Unread 11-12-2007, 11:53
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Limitless Potentiometers

Uhm, can a moderator merge this thread into the other identically named Limitless Potentiometers thread?

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #25   Spotlight this post!  
Unread 12-12-2007, 08:24
BanksKid's Avatar
BanksKid BanksKid is offline
..as The Circuitrunner.
AKA: Banks, Ethan Banks
FRC #1002 (Circuitrunners)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Marietta
Posts: 88
BanksKid will become famous soon enoughBanksKid will become famous soon enough
Send a message via AIM to BanksKid
Re: Limitless Potentiometers

i must say that there cant possible be anything at all wrong with endless pot. ........(but seriously my big problem with them in the past is defining a definite start and end....i dont like them too much...)
__________________
"WE HAVE A CAMERA RIGHT NOW!"

R.I.P. SAM
  #26   Spotlight this post!  
Unread 12-12-2007, 08:40
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,023
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Limitless Potentiometers

Quote:
Originally Posted by 987HighRoller View Post
This is because we had something like 8 potentiometers break on us last year, mainly because they get locked inside due to load on the shaft ...........Any advise?
Thanks
Sure, I'll offer some advice. Don't put any mechanical load on a potentiometer shaft.

Here's how we got around the problem.

And our shaft encoders were coupled to the transmission shafts with a piece of surgical tubing.
Attached Thumbnails
Click image for larger version

Name:	pot.jpg
Views:	88
Size:	67.7 KB
ID:	5835  

Last edited by MrForbes : 12-12-2007 at 08:43.
  #27   Spotlight this post!  
Unread 12-12-2007, 18:30
=Martin=Taylor= =Martin=Taylor= is offline
run the trap!!!
FRC #0100 (The Wild Hat Society)
Team Role: Human Player
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Bezerkeley, California
Posts: 1,255
=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute=Martin=Taylor= has a reputation beyond repute
Re: Limitless Potentiometers

Quote:
Originally Posted by 987HighRoller View Post
This is because we had something like 8 potentiometers break on us last year, mainly because they get locked inside due to load on the shaft . We were also thinking of encoders but are afraid of using too many interrupts and messing with the interrupts already used by sensors like the camera and gyros. Any advise?
Thanks
Our team has used magnet-sensors many times in the past. These sensors work two ways. Either you can glue magnets on a rotating surface and read them as they go by (like a big LP record).

Or you can actually sense the teeth of a sprocket - without any sort of preparation - provided of course that the sprocket is made of steel.

These sensors are a lot more durable than potentiometers since they have no physical coupling with the robot's moving parts.

We have used them in 2005 and 2007. However I think we had to make custom circuit boards for them.
__________________
"Cooperation; because life is a team sport"
-Philip J. Fry
  #28   Spotlight this post!  
Unread 13-12-2007, 18:01
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: Limitless Potentiometers

Quote:
Originally Posted by squirrel View Post
Sure, I'll offer some advice. Don't put any mechanical load on a potentiometer shaft.

Here's how we got around the problem.

And our shaft encoders were coupled to the transmission shafts with a piece of surgical tubing.
Very interesting... so how exactly did this work?? was the sergical tubing just attached to the output shaft the immediately attached to the sensor so there was very minimal drag??

I am very interested in how you did this?!?!
  #29   Spotlight this post!  
Unread 13-12-2007, 18:39
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,023
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Limitless Potentiometers

ok, I fibbed....we did the surgical tubing trick last year, this year we used a short piece of rubber automotive fuel line. The concept is the same.

The AM transmissions have a shaft with an end that is exposed, and turns with the output sprocket. We drilled and tapped the end of the shaft, then made a short piece of metal 1/4" diameter with a thread sticking out the end, which screws into the transmission shaft. Then just slipped the tubing over this short shaft and over the encoder shaft, and made a mounting bracket for the encoder. A lathe was used to drill the hole and make the adapter shaft.

The picture shows the mounting and protection for the encoder, and if you look close you can see a red tube clamp in there...the tube was not a very tight fit on the shafts.
Attached Thumbnails
Click image for larger version

Name:	encoder.jpg
Views:	80
Size:	59.6 KB
ID:	5842  
  #30   Spotlight this post!  
Unread 13-12-2007, 21:53
popo308's Avatar
popo308 popo308 is offline
Registered User
AKA: Brent
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Winnebago, IL
Posts: 312
popo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to allpopo308 is a name known to all
Send a message via AIM to popo308
Re: Limitless Potentiometers

Ahh.. interesting concept... seems like it would work well
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
1 Megohm Potentiometers phrontist Electrical 9 22-02-2005 02:05
Flaky Potentiometers theDoctor Electrical 4 21-02-2005 21:08
Using Potentiometers arpus maximus Electrical 5 20-11-2004 16:45
Q about potentiometers Nick R. Electrical 13 07-02-2004 09:13
Potentiometers Ulibrium Technical Discussion 1 23-01-2002 19:41


All times are GMT -5. The time now is 19: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