Jump to content
SAU Community

Recommended Posts

I'm trying to understand how a stock BNR32 ECU calculates TP load on the primary fuel/ignition maps. I read through the Nistune manual to find the following equation:

TP = (VQ * Kconst) / RPM

TP load index = TP / 256

I looked up the MAF VQ (voltage quantifier) curve in the base BNR32 ECU's MAF table and referenced it against Haltech's RB26 stock MAF curve. From this I concluded that the VQ curve is such that 1 VQ unit is equal to roughly 0.005152 grams per second of mass flow. This constant produces a curve that makes the Nistune and Haltech curves agree almost perfectly. The only error I see with this method is below 1 g/s, so with two MAFs at roughly the same flow rate that's likely below the minimum airflow at idle:

image.png.79319f78871b8b30ab20833cd74581d1.png

image.png.4add4494a55365b8c2cf9b21a6707980.png

image.png.ea565e0f8af8b8b2a6b30c6c21a6f477.png

From there I tried to reverse the TP load index equation to get some sort of estimate for grams per cylinder. Something I noticed reading the tables is that there is a fuel cut that occurs above a load index of 160, which suggests to me that the load index of the OEM tables should never exceed 80 and the final load row of 88 is just a failsafe. I tried the following to convert this TP load index into grams of air per cylinder:

TP_load * 256 * Kconst * 60 = VQ/RPS

Where TP_load is 80, Kconst is 233 (defined by the ECU), and 60 is a constant to convert RPM to RPS. From there we can convert VQ into a grams per second value like this:

TP_load * 256 * Kconst * 60 * 0.005152 = (g/s) / RPS

The seconds cancel out, so this is actually a grams of air per revolution value. Every revolution half of the cylinders are intaking air because it's a 4 stroke engine, so we can divide this number by 3 to get grams of air per cylinder.

The problem is that when I do this math I get a figure of ~27 grams of air per revolution. At the power peak of ~6800 rpm stock that implies the "peak load" limit corresponds to roughly 3000 grams per second of air mass metered by a single MAF. A single MAF can only meter about 150 grams of air per second before it maxes out. So I'm off by a factor of 20 which is definitely wrong.

Anyone know if I just suck at math? Or if I'm missing a bunch of extra bits to how TP is calculated? If anyone has a Nistune log of MAF VQ, RPM, and TP on a stock RB26 + stock tune I would really love to see it.

Link to comment
https://www.sau.com.au/forums/topic/481638-nistune-tp-load-calculation/
Share on other sites

It's definitely a case of "it doesn't matter". TP stands for "Theoretical Pulse". I'm an engineer who does combustion for a living and really couldn't be bothered trying to do what you've just tried to do. Waste of time. Doesn't matter. it's just a load scaler. Adjust K to make the mixture right is about as hard as it needs to be.

  • Like 1
9 hours ago, GTSBoy said:

It's definitely a case of "it doesn't matter". TP stands for "Theoretical Pulse". I'm an engineer who does combustion for a living and really couldn't be bothered trying to do what you've just tried to do. Waste of time. Doesn't matter. it's just a load scaler. Adjust K to make the mixture right is about as hard as it needs to be.

I’m aware that general practice is to not bother with trying to do this, I just want to make sure that messing with K and VQ that I rescale the maps correctly. Getting down to raw physical units helps because the VQ scale is not a linear factor.

1 hour ago, GTSBoy said:

You don't need to even rescale maps any more.

My understanding was that if you adjust K at all or changed the MAFs you've effectively rescaled the ignition and fuel maps, even if the math still works out such that the ECU stays within the OEM load scale.

I really just want to ensure that I keep the factory fuel targets/ignition timing in real load + RPM, so that the behavior is going to be the same as stock if I don't modify them. Maybe pointless but I'm trying to make sure that I don't change too many variables all at the same time.

A long time ago K was the only tool available. Matt has since added another way to deal with rescaling for different injectors and AFMs that doesn't f**k up all the TP limits and other stuff that hangs off it. Also prevents you having to extend the load axes on the maps.

I went to all the trouble to extend the maps (both load and revs) and then interpolate and extrapolate  before he did that. It would have been a lot easier if I had waited a few months (this was years ago) until the update, because I would have only had to do it in one direction (revs) and not the load axis.

Anyway, fear not. Play with it extensively. if you f**k it up, you only have to put it back the way it was before the f**kup.

For those that are interested in the original problem, I found some logs of a stock R32 GTR running Nistune and concluded that it's a roughly 23.5 or 23.6x factor that is hidden in the TP calculations. So instead of this:

TP = (Kconst * VQ) / RPM

It's actually something like this:

TP = (Kconst * VQ * 23.6) / RPM

Here's my work, gathered by going through this Nistune post: https://forum.nistune.com/viewtopic.php?f=8&t=3655

KgXtJaG.png

The header is not quite as helpful as I would hope but basically the first 4 columns are straight from the logs and TP less K is effectively the expected VQ/RPM value, while VQ and VQ/RPM headers are the interpolated VQ value measured from MAF voltage and VQ/RPM is that VQ value divided by the RPM in that part of the log. The two methods arrive at vastly different numbers, so the ~23.6x factor I mentioned is how I reconcile the two.

Edit: What's remarkable about this is actually how close the TP index is to the total airflow to the engine, in grams per cylinder, just with fewer significant digits.

Edited by joshuaho96

It's unlikely that an engineer, particularly a Japanese one, would work in grams per second as a flow rate. Far more likely to work in molar units. The molar weight of air is 28.8, which is intriguingly close to the ~23.5 number that you came up with as a "factor" - but far enough different to probably not be it. I'd bet they were working in standard or normal volume units (which are basically a mass unit because any volume at a set pressure and temperature will always contain the same mass of the same gas).

Maybe, but load is measured based on a completely arbitrary MAF VQ. I’m manually doing the VQ to grams per second unit conversion. Even if you don’t bother with that there’s still a huge delta between deriving TP via VQ, Kconst, and RPM and what the ECU reports as TP. I suspect that much like how the MAF VQ units are arbitrary to fit the size of the ADC output, Nissan was likely doing some internal rescaling to get the load index to be an 8 bit integer and TP to fit in a 16 bit integer. Internal tooling could easily handle this weirdness while still showing sane units to anyone working on the engine calibration. Talking to Matt at Nistune he also suspects that this is just some bit twiddling done to make the scaling fit. It’s not documented in Nissan’s patent on their ECUs of the era which makes me think it’s an implementation detail. 

I don't even bother playing with the K constant anymore..

Use the drop down to select the correct AFMs, scale the injectors properly, then use the TIMS setting to fine tune. Then rescale the load axis on both ignition and fuel map.

Tune, rip skids.

One thing you need to understand about Nistune / Nissan ECUs of this time:

The ECU has no idea about airflow in terms of any physical unit.

The only real difference between a 'big AFM' and a 'small AFM' is mostly determined by K which is the injector multiplier. Interestingly enough, if you change K, the whole scaling / TP calculation drifts too.

A lot of moving targets!

It took me years to figure that out because it was never really made clear in the documentation.

I'm still on the K based Nistune ECU because I tweaked my map over the years to  'as good as it gets' and don't want to start from scratch with TIM (Total Injector Multiplier).

 

Yes, Nitsune is a bit of a hack, but so is the ECU ;)

R34 ECUs added a VE map and the ECU actually knew about boost pressure ..

 

 

 

 

 

 

 

 

 

Edited by Torques
35 minutes ago, GTSBoy said:

Yeah, and none of it did any good to us! Just makes life harder.

And in earlier documentation we were advised to unplug & disable the flag... guess what that did? make the car go straight to the last column everytime it came onto boost... yeah that was fun, went pig rich and shot out a backfire.

Updated documentation then recommended it was plugged back in, flag disabled and the voltage limits maxed out. This helped, but the transient map was a pain in the arse to tune.

 

11 hours ago, Dose Pipe Sutututu said:

And in earlier documentation we were advised to unplug & disable the flag... guess what that did? make the car go straight to the last column everytime it came onto boost... yeah that was fun, went pig rich and shot out a backfire.

Updated documentation then recommended it was plugged back in, flag disabled and the voltage limits maxed out. This helped, but the transient map was a pain in the arse to tune.

 

If you're referring to the NT documentation then you're spot on.

It was a constant journey of discovery for me since things were not made very clear in the earlier documentation.

Still NT is the best bang for the buck I think, and Matt has done a great job.

Older Nissan ECUs don't even allow for a ms based tune, since the pulse width is calculated based on TP etc.

After 8 years of toying with NT we finally get a pop up requester in NT outlining that the fuel map is just a 'trim' and that AFR are just a guestimate .... ;) Better late than never!

 

 

 

  • Like 1
12 hours ago, GTSBoy said:

But that was always clear.

It wasn't made clear ... hence we now have requesters popping up.

I think it's such an import principle of operation that there should have been something in BIG BOLD LETTERS about it.

It wasn't ...

 

I still have the documentation from when I started, there's no such mentioning. Improvements were made over time, but just recently there was more 'guidance' ;)

I bought into NT about 9 years ago, and there were many unknown unknowns at this time :) It was work in progress, that's for sure.

But as said,NT is the best bang for the buck if you want real time tuning, wideband integration, logging and so forth.

I also like the AFM principle and by now 'know my maps' from fuel cut, startup, idle timing, throttle enrichment etc.

Still, maybe at some point I'll be switching to a modern ECU. Mainly for engine protection and boost control. I was looking at Adaptronic but I don't really like their software in addition they have been bought up and I'm not sure what's going to happen to them.

 

Cheers :)

 

Edited by Torques

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

  • Latest Posts

    • I did end up getting it sorted, as GTSBoy said, there was a corroded connection and wire that needed to be replaced. I ended up taking out the light assembly, giving everything a good clean and re-soldered the old joints, and it came out good.
    • Wow, thanks for your help guys 🙏. I really appreciate it. Thanks @Rezz, if i fail finding any new or used, full or partial set of original Stage carpets i will come back to you for sure 😉 Explenation is right there, i just missed it 🤦‍♂️. Thanks for pointing out. @soviet_merlin in the meantime, I received a reply from nengun, and i quote: "Thanks for your message and interest in Nengun. KG4900 is for the full set of floor mats, while KG4911 is only the Driver's Floor Mat. FR, RH means Front Right Hand Side. All the Full Set options are now discontinued. However, the Driver's Floor Mat options are still available according to the latest information available to us. We do not know what the differences would be, but if you only want the one mat, we can certainly see what we can find out for you". Interesting. It seems they still have some "new old stock" that Duncan mentioned 🤔. I wonder if they can provide any photos......And i also just realized that amayama have G4900 sets. I'm tempted too. 
    • Any update on this one? did you manage to get it fixed?    i'm having the same issue with my r34 and i believe its to do with the smart entry (keyless) control module but cant be sure without forking out to get a replacement  
    • So this being my first contribution to the SAU forums, I'd like to present and show how I had to solve probably one of the most annoying fixes on any car I've owned: replacing a speedometer (or "speedo") sensor on my newly acquired Series 1 Stagea 260RS Autech Version. I'm simply documenting how I went about to fix this issue, and as I understand it is relatively rare to happen to this generation of cars, it is a gigantic PITA so I hope this helps serve as reference to anyone else who may encounter this issue. NOTE: Although I say this is meant for the 260RS, because the gearbox/drivetrain is shared with the R33 GTR with the 5-speed manual, the application should be exactly the same. Background So after driving my new-to-me Stagea for about 1500km, one night while driving home the speedometer and odometer suddenly stopped working. No clunking noise, no indication something was broken, the speedometer would just stop reading anything and the odometer stopped going up. This is a huge worry for me, because my car is relatively low mileage (only 45k km when purchased) so although I plan to own the car for a long time, a mismatched odometer reading would be hugely detrimental to resale should the day come to sell the car. Thankfully this only occurred a mile or two from home so it wasn't extremely significant. Also, the OCD part of me would be extremely irked if the numbers that showed on my dash doesn't match the actual ageing of the car. Diagnosing I had been in communication with the well renown GTR shop in the USA, U.P.garage up near University Point in Washington state. After some back and forth they said it could be one of two things: 1) The speedometer sensor that goes into the transfer case is broken 2) The actual cluster has a component that went kaput. They said this is common in older Nissan gauge clusters and that would indicate a rebuild is necessary. As I tried to figure out if it was problem #1, I resolved problem #2 by sending my cluster over to Relentless Motorsports in Dallas, TX, whom is local to me and does cluster and ECU rebuilds. He is a one man operation who meticulously replaces every chip, resistor, capacitor, and electronic component on the PCB's on a wide variety of classic and modern cars. His specialty is Lexus and Toyota, but he came highly recommended by Erik of U.P.garage since he does the rebuilds for them on GTR clusters.  For those that don't know, on R32 and R33 GTR gearboxes, the speedometer sensor is mounted in the transfer case and is purely an analog mini "generator" (opposite of an alternator essentially). Based on the speed the sensor spins it generates an AC sine wave voltage up to 5V, and sends that via two wires up to the cluster which then interprets it via the speedometer dial. The signal does NOT go to the ECU first, the wiring goes to the cluster first then the ECU after (or so I'm told).  Problems/Roadblocks I first removed the part from the car on the underside of the transfer case (drain your transfer case fluid/ATF first, guess who found out that the hard way?), and noted the transfer case fluid was EXTREMELY black, most likely never changed on my car. When attempting to turn the gears it felt extremely gritty, as if something was binding the shaft from rotating properly. I got absolutely no voltage reading out of the sensor no matter how fast I turned the shaft. After having to reflow the solder on my AFM sensors based on another SAU guide here, I attempted to disassemble the silicone seal on the back of the sensor to see what happened inside the sensor; turns out, it basically disintegrated itself. Wonderful. Not only had the electrical components destroyed themselves, the magnetic portion on what I thought was on the shaft also chipped and was broken. Solution So solution: find a spare part right? Wrong. Nissan has long discontinued the proper sensor part number 32702-21U19, and it is no longer obtainable either through Nissan NSA or Nissan Japan. I was SOL without proper speed or mileage readings unless I figured out a way to replace this sensor. After tons of Googling and searching on SAU, I found that there IS however a sensor that looks almost exactly like the R33/260RS one: a sensor meant for the R33/R34 GTT and GTS-T with the 5 speed manual. The part number was 25010-21U00, and the body, plug, and shaft all looked exactly the same. The gear was different at the end, but knowing the sensor's gear is held on with a circlip, I figured I could just order the part and swap the gears. Cue me ordering a new part from JustJap down in Kirrawee, NSW, then waiting almost 3 weeks for shipping and customs clearing. The part finally arrives and what did I find? The freaking shaft lengths don't match. $&%* I discussed with Erik how to proceed, and figuring that I basically destroyed the sensor trying to get the shaft out of the damaged sensor from my car. we deemed it too dangerous to try and attempt to swap shafts to the correct length. I had to find a local CNC machinist to help me cut and notch down the shaft. After tons of frantic calling on a Friday afternoon, I managed to get hold of someone and he said he'd be able to do it over half a week. I sent him photos and had him take measurements to match not only the correct length and notch fitment, but also a groove to machine out to hold the retentive circlip. And the end result? *chef's kiss* Perfect. Since I didn't have pliers with me when I picked up the items, I tested the old gear and circlip on. Perfect fit. After that it was simply swapping out the plug bracket to the new sensor, mount it on the transfer case, refill with ATF/Nissan Matic Fluid D, then test out function. Thankfully with the rebuilt cluster and the new sensor, both the speedometer and odometer and now working properly!   And there you have it. About 5-6 weeks of headaches wrapped up in a 15 minute photo essay. As I was told it is rare for sensors of this generation to die so dramatically, but you never know what could go wrong with a 25+ year old car. I HOPE that no one else has to go through this problem like I did, so with my take on a solution I hope it helps others who may encounter this issue in the future. For the TL;DR: 1) Sensor breaks. 2) Find a replacement GTT/GTS-T sensor. 3) Find a CNC machinist to have you cut it down to proper specs. 4) Reinstall then pray to the JDM gods.   Hope this guide/story helps anyone else encountering this problem!
    • So this being my first contribution to the SAU forums, I'd like to present and show how I had to solve probably one of the most annoying fixes on any car I've owned: replacing a speedometer (or "speedo") sensor on my newly acquired Series 1 Stagea 260RS Autech Version. I'm simply documenting how I went about to fix this issue, and as I understand it is relatively rare to happen to this generation of cars, it is a gigantic PITA so I hope this helps serve as reference to anyone else who may encounter this issue. NOTE: Although I say this is meant for the 260RS, because the gearbox/drivetrain is shared with the R33 GTR with the 5-speed manual, the application should be exactly the same. Background So after driving my new-to-me Stagea for about 1500km, one night while driving home the speedometer and odometer suddenly stopped working. No clunking noise, no indication something was broken, the speedometer would just stop reading anything and the odometer stopped going up. This is a huge worry for me, because my car is relatively low mileage (only 45k km when purchased) so although I plan to own the car for a long time, a mismatched odometer reading would be hugely detrimental to resale should the day come to sell the car. Thankfully this only occurred a mile or two from home so it wasn't extremely significant. Also, the OCD part of me would be extremely irked if the numbers that showed on my dash doesn't match the actual ageing of the car. Diagnosing I had been in communication with the well renown GTR shop in the USA, U.P.garage up near University Point in Washington state. After some back and forth they said it could be one of two things: 1) The speedometer sensor that goes into the transfer case is broken 2) The actual cluster has a component that went kaput. They said this is common in older Nissan gauge clusters and that would indicate a rebuild is necessary. As I tried to figure out if it was problem #1, I resolved problem #2 by sending my cluster over to Relentless Motorsports in Dallas, TX, whom is local to me and does cluster and ECU rebuilds. He is a one man operation who meticulously replaces every chip, resistor, capacitor, and electronic component on the PCB's on a wide variety of classic and modern cars. His specialty is Lexus and Toyota, but he came highly recommended by Erik of U.P.garage since he does the rebuilds for them on GTR clusters.  For those that don't know, on R32 and R33 GTR gearboxes, the speedometer sensor is mounted in the transfer case and is purely an analog mini "generator" (opposite of an alternator essentially). Based on the speed the sensor spins it generates an AC sine wave voltage up to 5V, and sends that via two wires up to the cluster which then interprets it via the speedometer dial. The signal does NOT go to the ECU first, the wiring goes to the cluster first then the ECU after (or so I'm told).  Problems/Roadblocks I first removed the part from the car on the underside of the transfer case (drain your transfer case fluid/ATF first, guess who found out that the hard way?), and noted the transfer case fluid was EXTREMELY black, most likely never changed on my car. When attempting to turn the gears it felt extremely gritty, as if shttps://imgur.com/6TQCG3xomething was binding the shaft from rotating properly. After having to reflow the solder on my AFM sensors based on another SAU guide here, I attempted to disassemble the silicone seal on the back of the sensor to see what happened inside the sensor; turns out, it basically disintegrated itself. Wonderful. Not only had the electrical components destroyed themselves, the magnetic portion on what I thought was on the shaft also chipped and was broken. Solution So solution: find a spare part right? Wrong. Nissan has long discontinued the proper sensor part number 32702-21U19, and it is no longer obtainable either through Nissan NSA or Nissan Japan. I was SOL without proper speed or mileage readings unless I figured out a way to replace this sensor. After tons of Googling and searching on SAU, I found that there IS however a sensor that looks almost exactly like the R33/260RS one: a sensor meant for the R33/R34 GTT and GTS-T with the 5 speed manual. The part number was 25010-21U00, and the body, plug, and shaft all looked exactly the same. The gear was different at the end, but knowing the sensor's gear is held on with a circlip, I figured I could just order the part and swap the gears. Cue me ordering a new part from JustJap down in Kirrawee, NSW, then waiting almost 3 weeks for shipping and customs clearing. The part finally arrives and what did I find? The freaking shaft lengths don't match. $&%* I discussed with Erik how to proceed, and figuring that I basically destroyed the sensor trying to get the shaft out of the damaged sensor from my car. we deemed it too dangerous to try and attempt to swap shafts to the correct length. I had to find a local CNC machinist to help me cut and notch down the shaft. After tons of frantic calling on a Friday afternoon, I managed to get hold of someone and he said he'd be able to do it over half a week. I sent him photos and had him take measurements to match not only the correct length and notch fitment, but also a groove to machine out to hold the retentive circlip. And the end result? *chef's kiss* Perfect. Since I didn't have pliers with me when I picked up the items, I tested the old gear and circlip on. Perfect fit. After that it was simply swapping out the plug bracket to the new sensor, mount it on the transfer case, refill with ATF/Nissan Matic Fluid D, then test out function. Thankfully with the rebuilt cluster and the new sensor, both the speedometer and odometer and now working properly!   And there you have it. About 5-6 weeks of headaches wrapped up in a 15 minute photo essay. As I was told it is rare for sensors of this generation to die so dramatically, but you never know what could go wrong with a 25+ year old car. I HOPE that no one else has to go through this problem like I did, so with my take on a solution I hope it helps others who may encounter this issue in the future. For the TL;DR: 1) Sensor breaks. 2) Find a replacement GTT/GTS-T sensor. 3) Find a CNC machinist to have you cut it down to proper specs. 4) Reinstall then pray to the JDM gods.   Hope this guide/story helps anyone else encountering this problem!
×
×
  • Create New...