voltage to resistance conversion project

Hi fellow Arduino community, I'm new on the forum and I'm working on a project using an Arduino Mega 2560 where the signal from a sensor(in volts) needs to be converted to variable resistance for a gauge readout. Please see the link for the values of conversion I need. Please help me in how and what I should use or do to make this possible.

Table Values

Show the circuitry making those figures.

The sensor that I need to use has an output range between 0.1 V to 6.0 V and the gauge has a Range for display between 11 Ohms to 74 Ohms.

I'm wondering if there is anyway to make a simple circuit using the Arduino.

Come on! Attach links to those devices, especially the "Sensor", whatever that might be.
Else, You can set up You table inside the code and use some well choosen strategy of interpolation, linear, second degree, inversed…...

Post a link to the gauge, and attach figures to your post, as described in How to use this forum.

If automotive, this has been done many times.

Here is the link to the sensor.

Sensor Link

Here is the link for the gauge.

Gauge

The sensor link ends up showing 3 differet sensors. Trying a few times I didn't find something telling about the output of the sensor.

Please do the digging and present a description and the characteristics of the output.

I am confused on what and why your question is being asked. The sensor has that range, that's all that is important.

You work with a presure sensor. Fine. But...
I've been reading data specs for nearly 50 years but I've never seen anything like this.
The sensor outputs is a voltage that Your Mega is reading.

What is this "converting to resistor" about? Are You supposed to use a digitaly programmable resistor?
How will the result of that "conversion volt to ohm" be used?

What is Your project supposed to do?

Too often questions specifying targets half way causes unnecassary confusement and work for helpers.

Your vague posts suggest that a fuel pressure sensor is somehow to be used directly with a fuel quantity gauge that you linked.

That makes no sense to me.

Please start over and tell us what you actually want to do, and what the Arduino is supposed to do. In view of reply #6, post a link to the EXACT SENSOR you intend to be using, and how you intend to read it out.

@jremington
Thanks!
it's getting late here, time to have a good nigth sleep.

Lets start over. This is for a vehicle, and I tested the voltage with a voltmeter at the sender output as is presented in the image. Newer vehicles use a variable voltage signal to the gauges, but my project is to use a gauge designed for vehicles that run from ohms between the sender and ground. The gauge I have has LED segments with each being lit by ohm values as presented in the image.

I would like to use the Arduino that I have to convert it based on the table that I have created. Since I am new, I don't know if the Arduino is capable to receive a volt value in one pin (one circuit) and change the resistance value in another pin(separate circuit). This is so I can connect it to the gauge.

You appear to be confused about which sensor you actually have, and what the sensor actually does.

Please continue to clarify, and we may be able to help.

I repeat: it makes no sense to interface a fuel pressure sensor with a tank level gauge.

I think I get what you are asking.

So there is a resistor, in a automobile, where the wiper moves up and down as some level changes. One side of the resistor goes to ground, one side goes to the automobiles voltage, and the wiper outputs a voltage that represents a resistance in proportion to its physical position.

After you have reviewed Ohms Law, you will have your answer.

jremington:
You appear to be confused about which sensor you actually have, and what the sensor actually does.

Please continue to clarify, and we may be able to help.

I repeat: it makes no sense to interface a fuel pressure sensor with a tank level gauge.

  1. Does the OP want to use the gauge as a fuel pressure gauge? (Ignore the fact that it is called a fuel gauge)
    OR
  2. Does the OP want to measure the pressure of fuel at the bottom of the fuel tank and convert that to a fuel level to send to the gauge.
    The fuel gauge the OP is designed for an "old school" type sender that uses a potentiometer and float in the tank, it is a CURRENT type gauge.

A suggestion is to convert the voltage input to a PWM output to a MOSFET.
To protect the gauge, put a 11R resistor in the drain circuit of the MOSFET, so analogWrite(255) will give max limited current to the gauge.

If the gauge input circuit has enough damping, to prevent fuel sloshing around in the tank giving erroneous readings, a PWM signal may do the trick.
Just a suggestion, I leave it out there for others to comment.

Tom.... :slight_smile: