Author Topic: 5 Volts to 240 Ohms  (Read 1445 times)

0 Members and 1 Guest are viewing this topic.

Offline MavMitchellTopic starter

  • Contributor
  • Posts: 29
  • Country: au
  • Not my real name
5 Volts to 240 Ohms
« on: January 25, 2019, 08:31:21 am »
Hi,

This is my challenge, I have an automotive type fuel gauge that uses a 40-240ohm resistive level sensor. It is biased high with 5 volts.
What I have in my fuel tank is a level sensor that produces 0-5 volts.
I need some type of circuit that will take the 0-5 volts and make it look like the 40-240 ohms so the gauge works.

Ideas.
« Last Edit: January 26, 2019, 12:22:07 am by MavMitchell »
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: 5 Volts to 240 Ohms
« Reply #1 on: January 25, 2019, 10:03:17 am »
That 40-240 ohm gauge is a VDO spec, but biased to 5V... I'm going to say its a compatible clone

Measure the current through that signal lead at full, empty and half reading, then should be easy to scale a howland current source for your input voltage.

otherwise you can drive these gauges by driving the signal pin to a certain voltage (e.g. an op amp that can sink current) If you want you can find the empty half and full points there,

In both cases the curve will likely be non-linear, however you can still match it to be right at those 3 points.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19572
  • Country: gb
  • 0999
Re: 5 Volts to 240 Ohms
« Reply #2 on: January 25, 2019, 10:31:14 am »
Presumably it's fine to have steps?

The gauge won't respond very quickly, so some glitches will be tolerated.

I'd connect five resistors in series and bypass four of them with relays to make a digitally controllable resistor. The resistors are connected in series with relay contacts in parallel with each, except for the 39R. 4-bit will give 16 steps, which is probably enough. 39R, 12R, 33R 56R and 100R, will give 39 to 240R in roughly 12R steps.  Want more steps? 6-bit will give 64, use 39R, 2R2, 5R6, 10R, 27R, 56R and 100R.
 

Online nali

  • Frequent Contributor
  • **
  • Posts: 659
  • Country: gb
Re: 5 Volts to 240 Ohms
« Reply #3 on: January 25, 2019, 10:41:54 am »
Or if it's an analogue meter you could probably just stick with the low value 40R, and PWM it with a small MCU and MOSFET. You could even get cute and compensate in code if the sensor is non-linear.
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19572
  • Country: gb
  • 0999
Re: 5 Volts to 240 Ohms
« Reply #4 on: January 25, 2019, 11:29:18 am »
Or if it's an analogue meter you could probably just stick with the low value 40R, and PWM it with a small MCU and MOSFET. You could even get cute and compensate in code if the sensor is non-linear.
That would work. Put 200R in parallel with the MOSFET and now it will PWM between 40R and 240R.
 

Offline MavMitchellTopic starter

  • Contributor
  • Posts: 29
  • Country: au
  • Not my real name
Re: 5 Volts to 240 Ohms
« Reply #5 on: January 25, 2019, 11:39:51 pm »
Could I measure the voltage on the gauge over the resistance range, then just use an OP amp to produce that voltage from the 0-5?
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4694
  • Country: au
  • Question Everything... Except This Statement
Re: 5 Volts to 240 Ohms
« Reply #6 on: January 26, 2019, 12:06:46 am »
voltage between the sense wire and ground, yes
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf