Notices
ECU Flash

how do you workout xml equations

Thread Tools
 
Search this Thread
 
Old Feb 18, 2010 | 06:04 AM
  #16  
delta448's Avatar
Newbie
 
Joined: Jul 2009
Posts: 1
Likes: 0
From: Morgantown, WV
Originally Posted by acamus
(Hint: 50/204x-20.8)
Originally Posted by hediki12
ok i understand the 204 its the delta of the slope in the 0-255 form but what is the 20.8 for?also im not getting a linear graph that falls betweet what were looking for when i graph it on the calc none of the y= vals move from out the negative psi.. from 0.5v -4.5v urg.. im a fool.. pitty me. im off to school now. ill be checking in on my phone.
I got a slightly different result, and used a slightly different method. Please correct me if I am mistaken.

Here's what I did:

rise/run = (35.3 - (-14.7)) / (4.5-0.5) = 50/4
point slope form is: y - y1 = m(x - x1)

using the known point (0.5, -14.7) you get

y - (-14.7) = (50/4) (x - 0.5)
y + 14.7 = (50/4) x - 6.25
y = (50/4)x - 6.25 - 14.7
y = 12.5x - 20.95

or you could use the other point (4.5, 35.3) :

y - 35.3 = (50/4) (x-4.5)
y - 35.3 = (50/4)x - 56.25
y = (50/4)x - 56.25 + 35.3
y = 12.5x - 20.95

So at 0 volt signal, you would be logging almost 21 inches of mercury in vacuum.

Now I use that psi-per-voltage formula to determine the theoretically loggable range if the sensor were completely linear:

y = 12.5(5) - 20.95 = 41.55
41.55 + 20.95 = 62.5

Now with that theoretcal range scaled from 0-255, I get:
y = 62.5/255x - 20.95

This is very close in actual value to acamus's formula, but my Y intercept value is lower, so can anyone tell me where my error is -if I made one?

Last edited by delta448; Feb 18, 2010 at 06:45 AM.
Reply
Old Jul 20, 2010 | 10:10 PM
  #17  
merlin.oz's Avatar
Evolved Member
15 Year Member
 
Joined: Jun 2008
Posts: 824
Likes: 24
From: Sydney
^delta, I get the same answer as you, worked out on a psi/step basis.
Reply
Old Feb 23, 2012 | 07:54 PM
  #18  
Sirnixalot's Avatar
Evolving Member
iTrader: (7)
 
Joined: Jun 2004
Posts: 158
Likes: 0
From: Cayman islands
apologies for necromancing but if anyone would be so kind

i am trying to hijack the signal from my Apexi 2.5Bar boost gauge. I used a hand vacuum pump and got these voltages

-14.7psi = 0.25v
0psi = 0.5v
14.7psi = 0.75v
29.5psi = 1v
36.9psi = 1.125v

The algebra is owning me at the moment.

i get

y = 58.3x - 29.34

Just need to work out the 0-255 and figure out where to plug that into my xml

0-255 vs 0.25-1.125

y = 291.43x - 72.86

Last edited by Sirnixalot; Feb 24, 2012 at 06:27 AM.
Reply
Old Feb 24, 2012 | 07:57 PM
  #19  
wreckleford's Avatar
Evolved Member
iTrader: (2)
 
Joined: Jun 2003
Posts: 1,171
Likes: 11
From: Jamaica
Originally Posted by Sirnixalot
apologies for necromancing but if anyone would be so kind

i am trying to hijack the signal from my Apexi 2.5Bar boost gauge. I used a hand vacuum pump and got these voltages

-14.7psi = 0.25v
0psi = 0.5v
14.7psi = 0.75v
29.5psi = 1v
36.9psi = 1.125v

The algebra is owning me at the moment.

i get

y = 58.3x - 29.34

Just need to work out the 0-255 and figure out where to plug that into my xml

0-255 vs 0.25-1.125

y = 291.43x - 72.86

0-255 is equivalent to 0-5V. So substitute for x, i.e. x=5*z/255
Reply
Old Feb 25, 2012 | 06:40 AM
  #20  
Sirnixalot's Avatar
Evolving Member
iTrader: (7)
 
Joined: Jun 2004
Posts: 158
Likes: 0
From: Cayman islands
my sensor's range is not 0-5v. do you know where in the xml or ecu flash i go to change that?
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Igor_Predator
ECU Flash
0
May 7, 2017 01:13 AM
Brad1907
ECU Flash
12
Feb 3, 2017 11:17 AM
foxbat
ECU Flash
2
Oct 1, 2015 02:48 AM
jameswwt
ECU Flash
5
Sep 18, 2015 05:49 AM
benpgreen
ECU Flash
7
Sep 12, 2010 05:12 AM




All times are GMT -7. The time now is 08:50 PM.