Making a non-linear resistance look linear

snipped-for-privacy@b36g2000pri.googlegroups.com...

y
y

=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 !

=A0 =A0 =A0 =A0 =A0 =A0 =A0!

+----
t

k,

oo

If you do enough knees in the curve, it would be within a few percent of the smooth curve. Unfortunately, I haven't found many smooth curve circuits that don't involve matched diodes or transistors etc.

Some ideas:

(1)

If the user doesn't mind a thing that takes a long time to settle, he could do something like this:

RT1 -------+----------/\/\------+------Vout ! ! \ \ R1 / .................../ RT2 \ \ ! ! GND GND

R1 heats RT2 making it a fixed number of degrees above RT1 for a given input voltage.

Since thermistors follow an exp() curve, a fixed temperature difference will make a fixed resistor ratio.

(2) Using something like a lm339 you can make the input into a variation in pulse width or frequency. Consider this circuit:

Vcc ! Vcc [R1] ! Vin-------!+\ ! [R2] ! >--+-+------------!+\ ! -!-/ ! ! >---+-+-- To low pass ! =3D=3D=3DC1 Vcc/2--!-/ ! ! ! ! ! GND ! -------------------------------+ ! =3D=3D=3DC2 ! GND

C1 and R1 are just enough to ensure that the second stage completely discharges C2.

The voltage on C2 is a bunch of Ramps up to Vin. For small inputs, the gain is

1/2. When the Vin starts to become a significant fraction of the Vcc, the gain increases. It is too early in the morning to do the math. !

Reply to
MooseFET
Loading thread data ...

Hmm. Looking at some of the hair-raising suggestions being proposed for an analogue solution, you might have a point :-)

Pete

Reply to
Pete Verdon

Sometimes high technology ain't the best solution. Plot a non-linear meter scale and paste it on the meter face.

Reply to
mike

t.

ther.

The gauges you are talking about use quite a bit of current, having a sensor and gauge circuit resistance of 100-300 Ohms power to ground. A micro based circuit should use less current, especially if used with a voltmeter type gauge. For a micro look at PicAxe, $20 will get you running with an easy to use Basic interpreter.

Westach makes gauges that can be adjusted for zero and span. Also they offer fluid level sensors, from Centroid Products, that can be creatively bent to help linearize the output. Centroid offers both current and voltage output sensors with digital or analog displays. Both companies are worth calling about your application.

Calibrating a sensor with exposed resistive element in water vs fuel can affect you readings since the water is most likely conductive from contamination.

Reply to
BobS
[ fill tank with water, observe sensor output versus fill level]

e

A couple of quad op amps and some diodes, a reference voltage and a network of (adjusted) resistors might be 'simple' in principle, but it scales in complexity with the number of 'breakpoints' required in the curve. Easier, to just re-print the scale behind the meter needle.

Reply to
whit3rd

As everybody else has said, digitise, linearise and use some kind of digital to analog converter to drive the meter.

If you must go analog, there are any number of ways of getting a monotonic (always slopes the same way) non-linear relationship between input and output.

Here is an old patent that is probably a massive ovekill for your application

formatting link

National Semiconductor's Application Note 31

formatting link

is a compendium of op amp circuits - it includes a "nonlinear operational amplifier with temperature compensated breakpoints" at the top of page 26.

-- Bill Sloman, Nijmegen

Reply to
Bill Sloman

Late at night, by candle light, Pete Verdon penned this immortal opus:

I missed the OP, so I may be off target here. Most fuel gauges I've seen don't worry too much about absolute linearity. The actual readings seem to be "full", "empty" and "time to think about filling up". In-between you just give it the occasional glance to see if it's still OK.

- YD.

--
Remove HAT if replying by mail.
Reply to
YD

That's all I need, but the shape of the tank (wedge shaped in two dimensions) is such that the non-linearity is rather extreme.

Pete

Reply to
Pete Verdon

The more extreme, the better table lookup is.

--
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com
Reply to
Don Lancaster

Pete Verdon wrote: > Is it possible to

Thanks for all the suggestions, but it looks like the actual solution will be simpler still. Apparently it only costs the tank manufacturers about £10 extra to get a custom sender made by their supplier, whose resistance at each point is calibrated to match the shape of the tank. Clearly that's the way to go - it hadn't occurred to me that it would even be possible.

Pete

Reply to
Pete Verdon

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.