Go to Post Yes ONE blue banner would be nice one of these days, but I've never lost focus of why we as mentors do what we do. It's about preparing the students for "defense" in life, and laugh when your robot gets scored into a goal. - Chris_Elston [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 28-02-2013, 12:18
Nirnaeth Nirnaeth is offline
Coach/Mentor
AKA: Michael Liang
FRC #6367 (The Brooke High ElectroLights)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2001
Location: Boston, MA
Posts: 44
Nirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud of
First year using sensors. Any advice?

Our team has enough depth in terms of mentors and students that we'd like to add some sensors to our robot. Since we've literally never added a single sensor to any of our robots, I was wondering if we could solicit some advice.

Our specific application: We have an arm that wants to rotate back and forth through a 90-degree turn. The arm is connected to a window motor. What manner of sensor should we use? I'm assuming some type of rotary encoder?

Thanks!
  #2   Spotlight this post!  
Unread 28-02-2013, 12:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,074
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: First year using sensors. Any advice?

Quote:
Originally Posted by Nirnaeth View Post
Our team has enough depth in terms of mentors and students that we'd like to add some sensors to our robot. Since we've literally never added a single sensor to any of our robots, I was wondering if we could solicit some advice.

Our specific application: We have an arm that wants to rotate back and forth through a 90-degree turn. The arm is connected to a window motor. What manner of sensor should we use? I'm assuming some type of rotary encoder?

Thanks!
Use a potentiometer and connect it to an analog input.

Or use an encoder and connect it to DIO on the DSC.

Or use a couple of limit switches if you just want to go from extreme to extreme without wanting to control at positions in-between.


Do some research. There are hundreds of recent posts about this topic. Do a little reading to get some background, then come back here and ask questions. We'll be glad to help.

Search keywords:

potentiometer, encoder, PID, limit switch, load balancing, surgical tubing



Last edited by Ether : 28-02-2013 at 12:39.
  #3   Spotlight this post!  
Unread 28-02-2013, 12:55
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,567
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: First year using sensors. Any advice?

For an arm application, I think potentiometers are a better choice then a typical rotary encoder.

They are easier to interface and debug (3 wires to a analog port that you can test with a multi-meter, vs 4 wires to 2 digital inputs that you need to test with an oscilloscope)
They provide absolute angle (typical rotary encoders only give relative position, which is a problem if you start with the arm in an different location)
They are significantly cheaper ($4 at radioshack or $10-15 for a high quality pot from digikey, vs $40 or more for a rotary encoder)
They are available locally
In my experience, they are much more robust then encoders

The main disadvantages of potentiometers are that they are noisy and have less resolution then encoders have never been an issue for us when used on an arm.
  #4   Spotlight this post!  
Unread 28-02-2013, 14:08
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: First year using sensors. Any advice?

Whatever sensor you chose to use, put some thought into how you will test your system. Think about what happens if your sensor is not set up correctly or the software does not read the sensor correctly. Will the mechanical system get damaged?

For example, you may want to disconnect the motor from the arm, command the arm to move one way, move the arm manually and verify that the software stops the motor with the arm at the correct angle.

Be sure to allow for the momentum of the mechanical system and the reaction time of the system so that you are not trying to sense the position just as the arm is hitting a hard stop. If you do that, the motor may try to drive the arm past the hard stop.
  #5   Spotlight this post!  
Unread 01-03-2013, 12:58
Nirnaeth Nirnaeth is offline
Coach/Mentor
AKA: Michael Liang
FRC #6367 (The Brooke High ElectroLights)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2001
Location: Boston, MA
Posts: 44
Nirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud of
Re: First year using sensors. Any advice?

Question from a student, since they don't have an account:

We've decided to go with potentiometers, but are there any recommendations for type/brand/store? There are too many options on the DigiKey site.
  #6   Spotlight this post!  
Unread 01-03-2013, 13:12
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,567
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: First year using sensors. Any advice?

Here's a nice potentiometer from Digikey: Bournes 3852A-282-502AL for $9.35.

Make sure you use your Digikey PDV, if you haven't already.
  #7   Spotlight this post!  
Unread 01-03-2013, 13:24
MrRoboSteve MrRoboSteve is online now
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: First year using sensors. Any advice?

Digikey site takes a bit of getting used to.

Here's the search process I did to find a 10K potentiometer.

Click on Product Index

select Rotary Potentiometers -- Linear

narrows it to 2700 options

set resistance to 10k ohms and check the In Stock checkbox, then apply filters

now 245 options

you're likely going to mount it via a through hole, so select that mounting option and apply filters

now 97 options

now sort the result by price, low to high (ascending order)

ok, now to pick from the low priced options:

now look at the other product attributes that are available and see which ones you care about

do you care about how long the actuator is? Filter on Actuator Length
do you care about the shape of the actuator? Filter on actuator type
do you care about how it mounts? Filter on adjustment type

Go look at the pictures of some of the items if you can't figure out what the product attributes mean.

http://www.digikey.com/product-detai...308-ND/2408885 might be a good starting point. $0.84 each in qty 1.

If you then go to the manufacturer's spec sheet for those, you can see all of the options they offer, and work backwards from the manufacturer's part number if there's a different configuration you want.
  #8   Spotlight this post!  
Unread 01-03-2013, 13:36
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: First year using sensors. Any advice?

Micheal

The part that Joe linked to is a good quality part and should work just fine for you. It would normally be found in high quality industrial or military grade equipment unlike the consumer grade parts found at Radio Shack.

You want to use something in the range of 2kOhm to 20kOhm. The industrial equipment I design (similar to the CRio) is frequently connected to 10kOhm potentiometers. In most robotics applications, you will want to use a "linear" potentiometer with a 1/4 diameter shaft.

The shafts are typically made from aluminum and are easy to cut if too long. Just clamp the end of the shaft in a bench vice and cut it with a hacksaw. Mount it by drilling a hole that fits the threaded part of the body. Mark the location of the anti-rotation device that sticks out from the body. Drill a second hole that is large just enough to accomodate the anti-rotation device. Make sure you use the washers and lock washers under the nut.

The coupling to your arm does not need to be very substantial since it should take very little force to turn the potentiometer shaft. We used a piece of surgical tubing forced over the shaft then pushed into the shaft (1/2 inch OD tube, 3/8 inch ID) of the dumper my son built.

Make sure that the potentiometer still has travel beyond the two ends of the 90 travel that you want. Lastly, do not use the potentiometer as the "hard stop" that prevents the arm from travelling beyond a certain point or you will break the potentiometer.

Last edited by philso : 01-03-2013 at 13:39. Reason: add mounting info
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 11:22.

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