I plan to use a simple voltage divider circuit to read the signal into an analog pin, so that part's not an issue. I'm more concerned about converting the 0-1023 values to something that matches the sensor values (0-5bar) according to the Characteristic curve described in the image.
I suppose I could just make some simple comparison values so that if the analog-equivalent-of-the-resistance is within a certain boundary, then I can declare that value as 1, 2, 3bar etc. But what I don't have any clue about is how to interpret the formula described for the Characteristic curve. I never studied maths past the age of 15 so I'm completely out of my depth here. Can anyone shed any light on where I should start?
Post a link to the data sheet. The image does not define the meaning of some of the symbols.
However, the image you posted gives a characteristic curve, which presumably converts the "typical" sensor resistance to a pressure value. It would be best for you to calibrate the sensor yourself, which means to determine the resistance at various known pressures, and work out the characteristic curve that fits best.
We can help if you want to take the latter route, but post the data sheet first.
The low resistance can be handled with a bit of real circuitry. I just googled "low ohm measurement", above my pay grade but essentially the idea is to pass a known small current through the resistor and measure the voltage drop. To get a big enough signal to use the analog inputs on. Def cannot be done directly as pointed out.
Unless those R values are kilohm.
The data sheet seems to show a nominal example and two that would be at the extremes, handled by fitting to a third order polynomial; there are websites where you can plug in as many points as you want and get that done for you, just "simple" maths.
isn't the one I used (and can't find just now) but looks similar. If I wasn't so lazy, I'd try it with the numbers from the datasheet.
I have to admit, the answers to this thread have gone completely over my head. Formulas beyond simple multiplication/division are Greek to me, and therefore expressing any sort of curve within the Arduino's code is more of the help I was looking for.
That's what I said but as much googling as I am allowed to do on this seems to suggest that these low ohm sensors are meant, in the old days, to be directly measured as part of a simple circuit with a meter powered by automotive voltages.
So while another track of insomniacal googling finds modern signal conditioning amplifiers on a chip, all very whizzy, it looks like a simple voltage divider, albeit one that will use some energy, is a valid approach.
MAXIM has some signal conditioning stuff.
More than as usual, YMMV. All just my abject curiosity and tenden7to want to play above my pay grade.
Would probably be better to pre-calculate the pressure values for each value of the analog input and store that as a lookup table. If you do not need the 6 or 7 digit precision of a float, storing as an integer takes less space, and with something as imprecise as this the analog value can be divide by 2, 4, or 8, etc to give less data points and a more stable gauge reading.
Older automotive sensors were commonly wired in series with the gauge and driven from a regulated 6V power source (crudely regulated). The gauge itself was a bi-metallic spring with the spring being heated by the current flow. 6 volts was used because early automobile batteries were 6V, when 12V batteries became common it was easier to regulate the voltage down to 6V than to redesign all the gauges to operate at the higher voltage.
Not at all: I've been playing with Arduinos for many years now so I'm aware of what's involved, and my prototype is already reading R values and displaying them on a custom-made 7-segment display board driven by multiple MAX7219 chips.
But, as others have proven, converting the data sheet into an actual formula was indeed a few minutes' work.