Notices
ECU Flash

how do you workout xml equations

Thread Tools
 
Search this Thread
 
Old Jan 24, 2010 | 09:38 AM
  #1  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
how do you workout xml equations

hey so i just purchased a aem 3.5bar map sensor... and it just hit me we have no SD xmls for it ... (the price was sooo good), no ive search still nothing mayb i dont know how to word it " how to creat xml equations ?" lol. but i found the aem pdf with the vlt vs pressure values for the 3.5 bar now im curious as to how to turn the in to "x*blah" in ecuflash for SD w/ v7 or v5 and logging purposes in evoscan . thanks guys 4life

also it would be cool to have a stiky/write up on how you guys go about calibrating these electronics/sensors.. thnx.
Reply
Old Jan 24, 2010 | 10:02 AM
  #2  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
ok just downloaded the ecuflash xml for SD v7 .. stupid me they are there already... now just for the evoscan....
Reply
Old Jan 25, 2010 | 07:19 AM
  #3  
fostytou's Avatar
EvoM Community Team
iTrader: (15)
 
Joined: Sep 2006
Posts: 3,143
Likes: 7
From: Aurora, IL
The equations are literally right in the xml. Just copy the correct equation from ecuflash to evoscan and make sure your output is logical.
Reply
Old Jan 26, 2010 | 05:50 AM
  #4  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
Originally Posted by fostytou
The equations are literally right in the xml. Just copy the correct equation from ecuflash to evoscan and make sure your output is logical.
ok there are alot of numbers.. i mean i wanna learn but im being pointed in very vague derections... i know thet the aem 3.5 bar map is 0.5v is -14.7psi 4.5v is 35.3psi its linear, i also know that 0v =0 and 5v =255 but im lost there how does all that translate into 0.(numbers)*x ? please im no math wiz or coding pro.. but you help would be greatly apreciated. i would hate to have to try and sell this map sensor....
Reply
Old Jan 26, 2010 | 05:55 AM
  #5  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
50/229x-14.7
Reply
Old Jan 26, 2010 | 06:07 AM
  #6  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
Originally Posted by acamus
50/229x-14.7
genius! thnx. if you dont mind how did you get that?
Reply
Old Jan 26, 2010 | 06:17 AM
  #7  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
x(5-0)/(255-0) = 4.5
x/51=4.5
multiply both sides by 51
x = 229.5 i.e. 229 or 230 is the closest integer

now
ax+b=y
we want to get a, b from that for known x,y
a.229+b = 35.3
a.0 +b =-14.7
so b =-14.7 let us take it to the first equation
a.229-14.7=35.3
add 14.7 to both sides of the equation
a.229=35.3+14.7
a.229=50
divide both sides of the equation by 229
a=50/229
hence
50/229x-14.7 = y, your equation.
Reply
Old Jan 26, 2010 | 02:19 PM
  #8  
Boosted Tuning's Avatar
Former Sponsor
iTrader: (12)
 
Joined: Jun 2005
Posts: 2,383
Likes: 8
From: Chico, CA (Nor-Cal)
Originally Posted by hediki12
genius! thnx. if you dont mind how did you get that?
Originally Posted by acamus
x(5-0)/(255-0) = 4.5
x/51=4.5
multiply both sides by 51
x = 229.5 i.e. 229 or 230 is the closest integer

now
ax+b=y
we want to get a, b from that for known x,y
a.229+b = 35.3
a.0 +b =-14.7
so b =-14.7 let us take it to the first equation
a.229-14.7=35.3
add 14.7 to both sides of the equation
a.229=35.3+14.7
a.229=50
divide both sides of the equation by 229
a=50/229
hence
50/229x-14.7 = y, your equation.

LOL, theres your answer.

Great job acamus.
Reply
Old Jan 27, 2010 | 04:36 AM
  #9  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
Originally Posted by acamus
x(5-0)/(255-0) = 4.5
x/51=4.5
multiply both sides by 51
x = 229.5 i.e. 229 or 230 is the closest integer

now
ax+b=y
we want to get a, b from that for known x,y
a.229+b = 35.3
a.0 +b =-14.7
so b =-14.7 let us take it to the first equation
a.229-14.7=35.3
add 14.7 to both sides of the equation
a.229=35.3+14.7
a.229=50
divide both sides of the equation by 229
a=50/229
hence
50/229x-14.7 = y, your equation.
thnx!
Reply
Old Jan 27, 2010 | 04:49 AM
  #10  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
It is called System of linear equations in elementary algebra. Hope you have found a mistake/approximation that I have done :P
Reply
Old Jan 27, 2010 | 05:00 AM
  #11  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
nooo i didnt.... i have my calculator in hand lol and im like what mistake did he make on purpose lol.
Reply
Old Jan 27, 2010 | 05:00 AM
  #12  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
wait ur suppose to round up to 230 instead of using 229 rite?
Reply
Old Jan 27, 2010 | 05:16 AM
  #13  
acamus's Avatar
Evolved Member
 
Joined: Mar 2008
Posts: 730
Likes: 3
From: Lattitude 48.38°, Longitude 17.58°, Altitude 146m = Slovakia, for common dude
Nope, I have overlooked 0.5V
Now you can calculate the correct one
(Hint: 50/204x-20.8)
Reply
Old Jan 27, 2010 | 05:57 AM
  #14  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
Originally Posted by acamus
Nope, I have overlooked 0.5V
Now you can calculate the correct one
(Hint: 50/204x-20.8)
assuming the hint isnt the actual equation im gonna grab my calculator and report back. i really appreciate your time as well, so many things are thrown around in a "take it , and believe it" fashion... even if i may never be able to fully grasp alot of the number aspect of this ecu coding at lease its there..
Reply
Old Jan 27, 2010 | 06:30 AM
  #15  
hediki12's Avatar
Thread Starter
Evolved Member
 
Joined: May 2009
Posts: 522
Likes: 2
From: mnt vernon ny
Originally Posted by acamus
Nope, I have overlooked 0.5V
Now you can calculate the correct one
(Hint: 50/204x-20.8)
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.

Last edited by hediki12; Jan 27, 2010 at 09:57 AM. Reason: grammar
Reply



All times are GMT -7. The time now is 06:51 PM.