speeduino icon indicating copy to clipboard operation
speeduino copied to clipboard

Feature request: Oil pressure with standard 10-184ohm sender

Open loopyengineeringco opened this issue 2 years ago • 13 comments

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: image My signal is 0.2v-2.45v from 0-145psi (0-10bar), and there is no way to configure this within TS. image

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!

loopyengineeringco avatar Jul 06 '22 08:07 loopyengineeringco

You should be able to just extrapolate the pressure at 5v.

pazi88 avatar Jul 06 '22 08:07 pazi88

@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.

loopyengineeringco avatar Jul 06 '22 08:07 loopyengineeringco

why can't you make the voltage divider do 0-5v instead?

jackscr12 avatar Jul 06 '22 11:07 jackscr12

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

loopyengineeringco avatar Jul 06 '22 11:07 loopyengineeringco

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 avatar Jul 06 '22 14:07 jackscr12

@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 🤣

loopyengineeringco avatar Jul 07 '22 08:07 loopyengineeringco

@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 :)

jackscr12 avatar Jul 07 '22 09:07 jackscr12

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 avatar Jul 07 '22 12:07 Fera31

@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 👌

loopyengineeringco avatar Jul 07 '22 13:07 loopyengineeringco

@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 WhatsApp Image 2022-07-07 at 12 38 18 PM WhatsApp Image 2022-07-07 at 12 37 57 PM

Fera31 avatar Jul 07 '22 15:07 Fera31

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.

noisymime avatar Jul 07 '22 23:07 noisymime

Well hot diggidy dang it works. I modified the circuit as suggested by @noisymime: image

and did some sketchy guesstimations in excel image

and came up with these values: image

and it's working well image

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 👍

loopyengineeringco avatar Jul 10 '22 21:07 loopyengineeringco

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. image

image

loopyengineeringco avatar Jul 12 '22 04:07 loopyengineeringco