speeduino
speeduino copied to clipboard
Feature request: Oil pressure with standard 10-184ohm sender
Hi,
I know oil/fuel pressure is already implemented, but they are tailored to transducers that output 0-5v signal.
I have a standard 'old school' 10-184ohm sender, and have built this resistor divider circuit to provide an analog voltage to a speedy pin:
My signal is 0.2v-2.45v from 0-145psi (0-10bar), and there is no way to configure this within TS.
My request is: adding a 2-point table that is un-greyed when you select 'custom' from the drop down, so you can specify voltages that correspond to 0 and 145 psi. And the ability to invert the signal too.
OR maybe a simpler solution, adding a '10-184 ohm sensor' option to the drop down, and having 2 boxes un-grey which are: "voltage at 0psi" and "voltage at 145psi".
I know it's easier just to roll with it and get one of the supported transducers but there are a lot of reported failures in reviews & comments, presumably from non-automotive transduders being sold. Proper motorsport grade ones are £100+ which is more than my speedy cost.
Thanks!
You should be able to just extrapolate the pressure at 5v.
@pazi88 tried that, but the max integer in the box is 255 and my pressure at 5v would be about 300. Also my signal is inverted, so 'min' would have to be 300, which is also a 1 byte -127 to 127 range.
why can't you make the voltage divider do 0-5v instead?
why can't you make the voltage divider do 0-5v instead?
Can do, the top resistor has to be decreased & that means there will be more current draw from the Speedy board's 5v regulator. I'm trying to limit it to <25ma to prevent any issues. 2.3v~ is way more than enough resolution for me! I think that's like 500 steps or so
why can't you make the voltage divider do 0-5v instead?
Can do, the top resistor has to be decreased & that means there will be more current draw from the Speedy board's 5v regulator. I'm trying to limit it to <25ma to prevent any issues. 2.3v~ is way more than enough resolution for me! I think that's like 500 steps or so
ok that makes sense, what about an external stabilised 12v supply? of course a code change would be better :)
@jackscr12 that's possible for sure, but still doesn't address the inversion 😣 I might just use a tiny Arduino to translate the signal and emulate a supported transponder but it seems kinda crazy to have to do that 🤣
@jackscr12 that's possible for sure, but still doesn't address the inversion 😣 I might just use a tiny Arduino to translate the signal and emulate a supported transponder but it seems kinda crazy to have to do that 🤣
yeah an extra arduino would be a bit silly, I already have one for the EPAS... I'm in the same boat as you but I didn't get around to tackling the issue... I have a sender for my analogue gauge and I would prefer not to trust my engine to a crappy ebay sensor and more fittings that can leak.... So please code Gods bless us with a mod :)
why not use an OEM pressure sensor from 0 to 5v? since you don't want to use one of the cheap ones from ebay. and motorsport sensors seem very expensive to you
@Fera31 I'd happily use OEM but I'm not aware of any 3 wire OEM transducers, is there a list somewhere of these? I thought all OEM are usually 1/2 pin potentiometer-to-ground/VDO type, what I'm trying to get to work. Had another look and Turbozentrum stock what look like legit transducers for 60£-80£, so i might just bite the bullet. Still, support for the VDO types with voltage divider would be super cool 👌
@Fera31 I'd happily use OEM but I'm not aware of any 3 wire OEM transducers, is there a list somewhere of these? I thought all OEM are usually 1/2 pin potentiometer-to-ground/VDO type, what I'm trying to get to work. Had another look and Turbozentrum stock what look like legit transducers for 60£-80£, so i might just bite the bullet. Still, support for the VDO types with voltage divider would be super cool ok_hand
the list is very extensive.
but you can use of
GM 12616646 D1846A
VW 06E906051K
PSA 9802152780 1131K8
there are many more examples.
common rail sensors also work but they are very large in terms of measurements
300 or 500 bar
i have gm style sensors and work great
why can't you make the voltage divider do 0-5v instead?
Can do, the top resistor has to be decreased & that means there will be more current draw from the Speedy board's 5v regulator. I'm trying to limit it to <25ma to prevent any issues. 2.3v~ is way more than enough resolution for me! I think that's like 500 steps or so
If you added something like a 35 Ohm resistor inline with the sensor and drop the bias resistor to 100 Ohm, you’ll get values that are fairly close by using 255 in the high calibration. Current will increase to about 35mA, but should be ok for any standard regulator setup. Reduces resolution a touch, but probably no worse than this type of sensor is good for anyway.
Well hot diggidy dang it works.
I modified the circuit as suggested by @noisymime:
and did some sketchy guesstimations in excel
and came up with these values:
and it's working well
need to hook up a mechanical gauge to verify the accuracy, but for now I'm happy.
It would still be a nice to have feature in software, as the resistor divider method puts the values right on the edge of the input range and adds more current drain on the built in voltage regulator.
@Fera31 thanks for the list and the nice install images. I had a look at most likely will go for one of the sensors in the list. I decided against it for now as I'd need to buy a separate pigtail, get a thread adapter & run more wires through the bulkhead. But definitely will switch in the future 👍
Small update:
The resistor values maxed out the config values in TunerStudio, and with engine-off it was reporting 6psi or so.
So I changed the bottom resistor from 30 ohm to 22. Current consumption is up slightly, but now the values can be scaled down a little, leaving some wiggle room for calibration in software.
Also the 1uf cap made the readings a little too laggy for my liking.