Go to Post Isn't that the connector used on the F.L.U.X. Capacitor? - Ed Sparks [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 05-06-2008, 22:43
usbcd36's Avatar
usbcd36 usbcd36 is offline
Registered User
AKA: "DOS"
FRC #2399 (The Fighting Unicorns)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Solon, OH
Posts: 151
usbcd36 is a jewel in the roughusbcd36 is a jewel in the roughusbcd36 is a jewel in the rough
Re: Get Resistance from Analog In?

Quote:
Originally Posted by Don Rotolo View Post
Another way (if the range of unknown resistance is very high, or completely unknown) is to create a constant current source and measure the voltage across the resistor - V=R/I, and if I is known and V is measured (make sure it doesn't exceed the analog input range, 5 volts on a 2008 RC) you can calculate R.

Hope that gets you started...

Don
V = IR

Doesn't work the other way around, unfortunately.

With my limited knowledge of physics, I can say that one way to do this might be to connect the two outer terminals of a potentiometer to +5v and G, then connect the wiper to the sense pin of the RC. At one end of the pot, the sense pin would be at a 5v potential difference from ground, and at the other, a 0v potential difference. Definitely use a pot of significant resistance, though, or you'll draw too much current and break something. Find the max current draw from the RC, take a small fraction of that, plug it and 5v into Ohm's law and solve for R.

Last edited by usbcd36 : 05-06-2008 at 22:52.
 


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
get distance from cmucam ModMan24 Programming 14 29-10-2010 17:51
Selecting bits from an analog input Spencer E. Programming 2 13-01-2008 09:06
C code to get information from CMUcam2 lrantisi Programming 5 20-03-2007 18:16
Programming Analog Input from 2004 Controller Danny Diaz Programming 8 30-01-2007 22:44
Resistance to Analog Input Value. Josh Hambright Electrical 12 15-04-2003 16:12


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