Go to Post You inspire your way. I'll inspire my way. - Andrew Schreiber [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
  #1   Spotlight this post!  
Unread 16-11-2005, 22:24
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,014
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Rotary Position Sensors

Last year we tried 100k pots to sense arm joint position, but due to noise and lower-quality pots, along with position drift, results were poor.

Searching, I find many teams using encoders, but that seems like a pain to program (to me at least) and they only offer relative position, so you need a home position. (Yes, some encoders give absolute, but have you seen the prices?)

This year, I found a Vishay 601-1045 full 360 degree "smart" position sensor, which outputs a zero to five volt signal (actually just a bit less) to indicate 0 to 360 degrees absolute position. Mouser sells these for around $60.

Does anyone have any experience with these? I'd like to hear about it. Also, if you would share your opinions, that would be good too. (For more info, just google "Vishay 601-1045" and click on one of the links at vishay.com)

Don
__________________

I am N2IRZ - What's your callsign?
  #2   Spotlight this post!  
Unread 16-11-2005, 22:52
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Rotary Position Sensors

Quote:
Originally Posted by Don Rotolo
Last year we tried 100k pots to sense arm joint position, but due to noise and lower-quality pots, along with position drift, results were poor.

Searching, I find many teams using encoders, but that seems like a pain to program (to me at least) and they only offer relative position, so you need a home position. (Yes, some encoders give absolute, but have you seen the prices?)

This year, I found a Vishay 601-1045 full 360 degree "smart" position sensor, which outputs a zero to five volt signal (actually just a bit less) to indicate 0 to 360 degrees absolute position. Mouser sells these for around $60.

Does anyone have any experience with these? I'd like to hear about it. Also, if you would share your opinions, that would be good too. (For more info, just google "Vishay 601-1045" and click on one of the links at vishay.com)

Don
What kind of pots were you using? I have always had excellent results with them
__________________
1139 Alumni
  #3   Spotlight this post!  
Unread 18-11-2005, 10:15
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: Rotary Position Sensors

Don,

One thing you may want to try is to use a 1k or 2k potentiometer for your position measurement rather than the 100k. From Section 19.1 A/D Acquisition Requirements - of the PIC datasheet: "The maximum recommended impedance for analog sources is 2.5 k ohms." When we've used higher resistance potentiometers, we've seen a noticeable lag in the A/D value from the actual position. However, other than the slight time delay in acquiring an accurate position measurement, I've used inexpensive Radio Shack pots as well as some Bourns precision potentiometers with good results. (Note that this is only for the RC, not the OI where 100k pots are required.)

Mike
  #4   Spotlight this post!  
Unread 18-11-2005, 18:11
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,014
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Rotary Position Sensors

Quote:
Originally Posted by Rickertsen2
What kind of pots were you using? I have always had excellent results with them
Cheap ones, around $1 each. They seemed OK based on O-scope testing, not noisy or dead spots, but I suppose you get what you pay for. Based on your comment I will try some good quality pots (like Bourns) and see what happens. Thanks for the comments.

Don
__________________

I am N2IRZ - What's your callsign?
  #5   Spotlight this post!  
Unread 18-11-2005, 18:17
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,014
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Rotary Position Sensors

Quote:
Originally Posted by Mike Bortfeldt
Don,

One thing you may want to try is to use a 1k or 2k potentiometer for your position measurement rather than the 100k. From Section 19.1 A/D Acquisition Requirements - of the PIC datasheet: "The maximum recommended impedance for analog sources is 2.5 k ohms." When we've used higher resistance potentiometers, we've seen a noticeable lag in the A/D value from the actual position. However, other than the slight time delay in acquiring an accurate position measurement, I've used inexpensive Radio Shack pots as well as some Bourns precision potentiometers with good results. (Note that this is only for the RC, not the OI where 100k pots are required.)

Mike
Mike,
Thanks for the comments. I can see how a high impedance (100k) would contribute to noise, and we also noticed some lag buy (incorrectly, it seems) assumed it was related to the controller. As well as some better pots, I will also try some smaller ones and see what happens. I believe this may be the key to success, and for that I thank you.

Regarding the OI, the limiting factor there is the current the port can supply, and I agree, 100k is a great choice, but have heard of success with slightly lower values. I don't need to try that, however, because our controller works great with the cheap 100k pots.

Don
__________________

I am N2IRZ - What's your callsign?
  #6   Spotlight this post!  
Unread 19-11-2005, 01:00
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Rotary Position Sensors

Before passing into the PIC, the analog inputs pass though an RC filter and no other buffering circuitry! I have not measured the values of these components but it is possible that the minuscule amount of current that makes it though a 100k pot doesn't have the OOMPH necessary to rapidly change the input value and overcome the RC filter. The RC datasheet recomments 250-100KΩ resistors and in the example diagram uses a 10KΩ. Now if we look at the PIC datasheet, in big bold letters on page 220: The maximum recommended impedance for analog sources is 2.5 kΩ.. My guess is that it is quite OK to go above 2.5Ω but as you do, your accuracy goes down. The rated accuracy of the AD converter is 1/2 bit.

Btw 100K pots are required for the OI because it measures the current that flows through the pots. I believe it does this so that it can tell when joysticks are disconnected. The RC on the other hand measures the voltage that is input to it. Pots are used as voltage dividers for the RC but current regulators on the OI.

If i had designed the RC, i would have put some sort of buffer circuit in place to make the inputs less subject to impedance.
__________________
1139 Alumni

Last edited by Rickertsen2 : 19-11-2005 at 11:23.
  #7   Spotlight this post!  
Unread 19-11-2005, 08:16
Gdeaver Gdeaver is online now
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
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: Rotary Position Sensors

In the past we used a 10K pot with good results. I've noticed that with cheap pots any side force on the shaft can make them noisy. We always use shield 3 conductor wire for the analog stuff. Try taking 4 or 5 samples and averaging for a filter. You should be able to use a pot with out resorting to a op amp low pass filter.
  #8   Spotlight this post!  
Unread 20-11-2005, 09:01
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,014
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Rotary Position Sensors

Quote:
Originally Posted by Rickertsen2
...Btw 100K pots are required for the OI because it measures the current that flows through the pots....
Thanks for your other comments, with which I agree and will try out.

For the quote above, I disagree. I do not believe that the OI is reading the current, instead it reads the voltage. My thought is that the 100k limit is there to avoid issues with excessive current draw.

The specs of the OI state that the inputs are Analog, 0-5 volts. Also, IFI gives instructions for using a Y cable to connect two joysticks to the same port, which would double the current. Finally, they specify an 8 bit A/D which measured voltage (although I agree, they could measure current through a sense resistor - but why?)

IFI also states that any voltage below 0.05 volts causes an output of 127 (so the 'bot doesn't go into full reverse), and this is easy to do in code.

NEVERTHELESS. If IFI states so clearly "Always use 100k pots", who am I to argue??

Don
__________________

I am N2IRZ - What's your callsign?
  #9   Spotlight this post!  
Unread 20-11-2005, 10:44
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: Rotary Position Sensors

Quote:
Originally Posted by Rickertsen2
My guess is that it is quite OK to go above 2.5Ω but as you do, your accuracy goes down. The rated accuracy of the AD converter is 1/2 bit.
If you look further on in the datasheet, they say that 10K is the real max. Also, a lot of this has to do with timing, and not due to voltage drop (which I know is what you said, but I am just reiterating it). I would argue that the speed that you are going to be able to change the value of a 1-turn pot in a FIRST competition is relitivitally slow and therfore wouldn't cause a huge problem, espically when the theoretical limit of updating your motors is 26ms, but likely even slower than that. However, it probally is good advice to stick with 10k, 5k, or 1k. Someone can feel free to do out the math from the datasheet and proove me wrong.

Quote:
Originally Posted by Don Rotolo
For the quote above, I disagree. I do not believe that the OI is reading the current, instead it reads the voltage. My thought is that the 100k limit is there to avoid issues with excessive current draw.
I would have to agree with Rickersen2 on this one - or at least agree that it isn't reading 0-5 voltage straight off the pin. First, if you open up a joystick, only two of the pins off the pot's are connected. This doesn't mean there isn't a fixed resistance inside the OI, but that pin on the OI is not getting a 0-5 signal from the joystick. Second, I've tried hooking up straight 0-5 sources to the OI with no luck.
  #10   Spotlight this post!  
Unread 20-11-2005, 11:50
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Rotary Position Sensors

Quote:
Originally Posted by Don Rotolo
NEVERTHELESS. If IFI states so clearly "Always use 100k pots", who am I to argue??
Since there seems to be some confusion on this subject.. the reason IFI requires 100K ohm pots is because of the design of the analog input of the OI. Between the analog input pin on the OI and the actual connection to the microcontroller inside there is a pull-down resistor. This is also why you are not supposed to connect the other side of a potentiometer connected to the OI to ground (see OI reference guide page 5). The pull-down resistor creates a voltage divider with the potentiometer, such that even when the pot is turned all the way down the processor inside will still see some voltage. The effect of this is that the only way the OI will see 0v at the analog input is when nothing is connected to it.

The whole point of this setup is a safety mechanism. With this configuration, the OI knows if there is nothing connected to an analog input (because it will read 0v). Using the software inside the OI, they can remap a 0v input to send the value 127 to the robot. Bottom line: if you have a joystick plugged in to your OI and you're using it to control your robot, and someone accidentally yanks out the joystick cord, do you want your robot to see 0 or 127? If your robot saw 0, it would suddenly go full reverse if the joystick was unplugged!

Now, the reason it has to be 100K ohm is because of the value of the pull-down resistor. If you use something less than 100K, you will be changing the minimum voltage that you can send into the OI which will limit the range of values that your robot will see in response to moving the pot.
  #11   Spotlight this post!  
Unread 21-11-2005, 15:03
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Rotary Position Sensors

I'm not sure but if you were to use a very small capacitor say .01(mu)F that would eleiminate the electrical noise

The part im not so sure about is whether or not FIRST will allow the capacitor right there or not,

Regards,
Cuog
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
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
Bumper sensors jeffmorris FIRST Tech Challenge 1 02-10-2005 16:20
Getting Fancy with Sensors FadyS. Programming 30 10-03-2004 15:02
Why not analog sensors?? gnormhurst Programming 16 07-03-2004 16:14
Interrupts and rotation sensors kor Programming 3 12-02-2004 11:05
what type of sensors are good and convenient magical hands Programming 7 04-01-2004 23:04


All times are GMT -5. The time now is 14:08.

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