Generic sensors - allow to set the volts for min/max values

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
Reverant
Super MS/Extra'er
Posts: 1233
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Generic sensors - allow to set the volts for min/max values

Post by Reverant »

Right now we have to know what's the value of a sensor at 0V and 5V. This is wrong, as most sensors won't go down to 0V or to 5V for a reason, namely error checking (0V = short to ground, 5V = short to Vref).

Please allow us to set the volts at which the min and max value occur for the "Linear" transformation, ie:

0.5V -> 0%
4.5V -> 100%

I know we can do a few math calculations and calculate the values for 0V and 5V, but not everyone can do it easily or when they are in a hurry.

Thanks!
The man behind MS Labs
2005 Audi A3 2.0L TFSI DSG AWD - Extreme MS3
2002 Mazda Miata 1.8 6sp - Enhanced MS3 1.4.0, sequential injection, sequential ignition, big turbo, lots of boost
jsiedlicki
Master MS/Extra'er
Posts: 687
Joined: Sun Jun 23, 2013 3:52 pm

Re: Generic sensors - allow to set the volts for min/max val

Post by jsiedlicki »

Or maybe an easier work around would be to add a quick extrapolate function in Tuner Studio. Maybe a dialog that pops up and lets you enter your values at their respective voltages and TS calculates the 0V and 5V values for you.

No math to do, quick and no firmware changes needed. Now you just have to get Phil to buy in :D
MS3-Pro 1st Gen | Honda K24 Supercharged
MS3/MS3X | SB Ford 347 stroker
thokes82
Helpful MS/Extra'er
Posts: 102
Joined: Mon Apr 27, 2009 5:02 am
Location: Munster, Germany
Contact:

Re: Generic sensors - allow to set the volts for min/max val

Post by thokes82 »

It is really a small point but you are right. It is very easy to calculate but all other dataloggers and racing hardware that I used was allowing to change both axis (voltage and sensor value). It could really help.
Image
Race car building documentation: www.kessel.tk (nice pics but only german laguage so far...)
Post Reply