Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

measuring a variable resistor

Status
Not open for further replies.

banh

Advanced Member level 1
Joined
Dec 16, 2004
Messages
458
Helped
17
Reputation
34
Reaction score
5
Trophy points
1,298
Activity points
3,939
i have a variable resistor R2 with value ranging from 5-111 Ω. i think of the following circuit which has another R1 of 39 Ω in series with R2.
V1 is shot into the MCU ADC pin.

here we have \[ V1 = \frac{5V}{R1+R2} \times R1\]

--> the relationship between V1 and R2 is of course not linear but i think still acceptable..

the problem is the circuit draws too much current (can be up to more than 0.12A) as 5V supply is also shared with the MCU.
is there any way to improve?
 
Last edited by a moderator:

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,308
Reputation
4,618
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
Why wouldn't you increase the value of R1 from39Ω to at least 100Ω, or more?
Other option will be to use simple constant current source that will gve you, say 10-20mA, and V1 will become directly proportional to the variable resistor ..

Regards,
IanP
 

echo47

Advanced Member level 5
Joined
Apr 7, 2002
Messages
3,942
Helped
636
Reputation
1,270
Reaction score
88
Trophy points
1,328
Location
USA
Activity points
33,183
Use larger resistors. Maybe 100 times larger, if the ADC input current is low.

By the way, driving that much current through the wiper of a small pot will eventually damage it.

-------------------

Oops, nevermind! You can't change the variable resistor.

You could build a signal conditioning circuit using a low-voltage opamp. It could feed a small current through the variable resistor, and amplify the generated voltage, which it sends to the ADC.
 

banh

Advanced Member level 1
Joined
Dec 16, 2004
Messages
458
Helped
17
Reputation
34
Reaction score
5
Trophy points
1,298
Activity points
3,939
actually this is a fuel level sensor for car. there is a floating body which change resistance of the sensor.

choosing higher value of R1 of course will lead to the range of R1 being narrowed.


maybe i'll go for 150 Ohm. V1 will range from 0 to 2.1V..
 

IanP

Advanced Member level 5
Joined
Oct 5, 2004
Messages
7,942
Helped
2,308
Reputation
4,618
Reaction score
531
Trophy points
1,393
Location
West Coast
Activity points
66,459
In this case I would use simple constant current source build around 317L voltage regulator and one resistor (see picture below), supply it of 12V (not from 5V, to ensure that there is at least 3V voltage drop accross 317, and not to drain current from 5V source), and set the current to 45mA ..
This current will generate max 4.995V @ 111Ω, so you will have almost full range ..

Regards,
IanP
 

    banh

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top