Go to Post "Fair and professional" needs to be two-directional. - John Neun [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-03-2010, 23:45
ajd ajd is offline
Registered User
FRC #3238
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Mount Vernon, WA
Posts: 46
ajd will become famous soon enough
Measuring resistance using analog breakout

Our team is interested in using sensors that change the resistance of a wire based on an input. We read the datasheet for the Analog Breakout and it included instructions for reading a potentiometer, which has three wires, so that there is a constant resistance between the +5V and GND and a variable resistance between both (+5V and SIG) and (SIG and GND). But what if a sensor only has two wires, and simply adjusts the resistance between them? Do we wire +5V to SIG through the resistor, or SIG to GND, or something more complicated?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-03-2010, 00:04
dtengineering's Avatar
dtengineering dtengineering is offline
Teaching Teachers to Teach Tech
AKA: Jason Brett
no team (British Columbia FRC teams)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Vancouver, BC
Posts: 1,831
dtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond reputedtengineering has a reputation beyond repute
Re: Measuring resistance using analog breakout

I'd probably put a resistor in series with your sensor, hook one end up to +5 and one to GND, and measure the voltage (sig) between the two resistors. That voltage should change as the voltage of your sensor changes.

But there are a lot of folks around these forums who know more about electronics than I do... if you post the range of resistances you expect from your sensor, they might have other suggestions.

Jason

edit: Hey!! Anacortes, WA! We're darn near neighbours, in Chief Delphi terms. See you in Seattle?
Reply With Quote
  #3   Spotlight this post!  
Unread 10-03-2010, 00:06
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,721
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Measuring resistance using analog breakout

Easiest to wire would be a voltage divider between a known resistance and your sensor. Think of it like your potentiometer, only with a variable resistance between +5 and GND.

Wiring would be so:
Sensor between SIG and GND
Known resistor between +5V and SIG

You'd get a varying voltage on your SIG equal to the following:
R - constant known resistance
r - variable sensor resistance

V = 5 * r / (r + R)

If you pick an R value about 5-10 times the maximum value of r, you'll end up with a moderately linear signal, if rather small.

Other options are various amplifier and/or transistor circuits which will all be a bit complicated.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #4   Spotlight this post!  
Unread 10-03-2010, 03:35
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Measuring resistance using analog breakout

Quote:
Originally Posted by ajd View Post
Our team is interested in using sensors that change the resistance of a wire based on an input. We read the datasheet for the Analog Breakout and it included instructions for reading a potentiometer, which has three wires, so that there is a constant resistance between the +5V and GND and a variable resistance between both (+5V and SIG) and (SIG and GND). But what if a sensor only has two wires, and simply adjusts the resistance between them? Do we wire +5V to SIG through the resistor, or SIG to GND, or something more complicated?

Thanks.
There are several passive circuits such as resistance bridges and the aforementioned voltage dividers. There are also active circuits that can be used.

For resistance dividers, you have to be a little careful choosing resistance values based on the power rating of the sensor, input resistance of the analog module, et cetera.

Before you start implementing anything, why don't you post the part number you looking to use. This will allow the EEs out there to make specific recommendations.

I'll be tied up at the WPI regional for the next few days but I'm certain that someone will make a recommendation for you.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #5   Spotlight this post!  
Unread 13-03-2010, 00:27
ajd ajd is offline
Registered User
FRC #3238
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Mount Vernon, WA
Posts: 46
ajd will become famous soon enough
Re: Measuring resistance using analog breakout

Thank you all very much for the information and help! I think now that we understand the basic concept of what needs to be done, I can work with a mentor on my time to figure out the math. (If anyone's curious, we're trying to implement a simple light sensor from a photocell for purely academic/learning purposes.)

Thanks!
Reply With Quote
Reply


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
Analog Breakout l.li Electrical 5 12-02-2010 15:56
Analog Breakout Board EricWilliams FRC Control System 5 02-02-2010 12:16
Wiring analog breakout? excel2474 Electrical 5 31-12-2008 17:30
5 Amp Fuses for Analog Breakout & Solenoid Breakout finman Electrical 3 10-12-2008 11:59
measuring resistance via ADC ay2b Technical Discussion 1 27-03-2007 20:56


All times are GMT -5. The time now is 17:42.

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