Author Topic: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker  (Read 15031 times)

bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
EDIT: See post #11 for the latest data and findings.

--------------------------------------------------

I finally got my new data logger working and went out to do some quick measurements with it. It is not really intended to be a full engine measurement system, but rather to just measure a few voltage parameters in support of the next-gen MAF conversion I am putting together for the car. Anyway, I figured that I would post up a little bit of information since everyone loves charts and stuff.

First up is a log showing a pull in 2nd gear with the car's current engine (a Metric Mechanic 2.1L M42 with every bell & whistle that MM offers for it along with a couple of extras). Note that the horizontal axis is TIME in milliseconds, not RPM. For the purposes of what I am working on, RPM is not really a factor which is why I am not logging it (I can always add it to the logger in the future). Also note that the green line is AFR which uses the RIGHT vertical axis.


The M42B21 in the above plot is using a 100% stock M42 air box (complete with sort-of-dirty Mahle filter) and VAM. You can see the wild overshoot as I snap onto the throttle and the flapper door bangs open, and then it oscillates a little which causes the AFR to go lean for 100 msec or so. You should also notice that there is not really much of an appreciable lag between when I open the throttle and when the VAM responds, although obviously all accuracy of its output goes straight out the window. I assume that the DME is programmed to account for this though, but I really have no idea there. There also appears to be a fairly significant delay between throttle / VAM signal changes and the AFR responding, maybe indicating that much of the response delay in the system is just due to the DME. Also, the straight horizontal green line is at 14.7 AFR just as a reference for stoichiometric.



Next up is a fun one. I converted the air flow units to CFM since that is probably what folks on here are more familiar with. The orange line is the same one as above (but in CFM instead of CMH). The blue line is from 2007 and the car's original M42B18. Also of note is that the blue line's output came from a MAF sensor, and since I knew the air temperature I could convert the output to CFM from kg/hr. Now, this comparison is subject to whatever inaccuracy is present in both the MAF I used in 2007 and the 20-something year old VAM in my car now. I'd say that the orange VAM signal might be plus/minus 5% accurate and the blue MAF signal is probably pretty dead-on. The logger I built back in 2007 was rudimentary, to put things nicely, compared to what I am using now. Signal accuracy is probably fine though, so this should be a fair-enough comparison.



There are 4 fun things to note here:
1) Cray-cray (that's a technical term, right?) overshoot of the stock VAM when the throttle opens up. The blue line, again, was from a MAF and it keeps its wits about it a lot better since there is no door flapping around all willy-nilly.
2) The peak you see is (I suspect) due to the MM "Pulse Chamber" intake manifold which they say was designed to boost mid-range torque. Clearly it does what it is advertised to, assuming I am guessing right. The green circle for #2 covers ~2000RPM to ~3500RPM, which makes sense given how well this engine behaves at lower RPMs around town. [COLOR="Red"]EDIT:[/COLOR][/B] This is NOT due to the MM pulse chamber manifold. It is most likely some behavior of the VAM when intake resonances are really bad which make the flapper door open more than it would with steady air flow.
3) The 2.1L engine maxes out the VAM. Output is capped at 240CFM, which is actually in nearly perfect agreement with the Bosch datasheet for the M42's VAM. The first plot shows that the AFR stays good even when the sensor is output is clipped, so the DME doesn't seem to mine the maxed-out VAM since it is working off of custom fuel maps for this engine. I do assume that the VAM is restricting air flow at least  little bit in this case though since I am moving enough air through it to peg it at its limit.
4) I "scrunched" the time axis for the blue line for the stock M42. Obviously it took the stock engine longer (about 1 second) to rev all the way up to 7200RPM and I scaled its time axis to align with the MM engine plot for a better comparison.

Another observation is that it is obvious that the stock M42 (blue line) stops breathing as you get into the high-end of the RPM range (it starts flattening at the equivalent of ~5500RPM). The MM M42 looks like it might want to start running of out of breath at the same range, but then it picks back up at ~6000RPM and just keeps going from there. The redline is set at 7700RPM in the DME software, and I can tell you that it pulls nice and hard all the way up to 7700RPM. Apparently I need a bigger air flow meter lol (and I will have a MAF in there soon enough).


I have other plots for idle, part-throttle cruising, stop & go, etc if people are interested. I just thought that this was interesting stuff that I could share from this project.


The logger itself is a side project of mine. It measures each signal 30,000 times a second, hits them with some digital filters, then downsamples to 10,000Hz and sends the data to the PC (so I have 0.1 msec time resolution). There are also some 4th order anti-aliasing filters on each channel to keep RF noise out and that sort of thing. One thing I did find today was that ignition noise is present in all of the analog signals coming from the stock sensors. That is not really much of a surprise, and it isn't a big deal since the DME seems to be fine with working around it. You cannot see it in the plots as they are scaled here, but the idle plot definitely shows "blips" on a very regular period in the VAM, IAT and TPS signals, probably because they are resistive sensors and EMI + high impedance lines means noise spikes.

Funnily enough, my little logger project is more complex than the MAF converter I am now working on. I guess it is like anything...you spend more time prepping and building tools/fixtures than actually doing whatever it is you are doing.
« Last Edit: December 07, 2015, 02:05:35 AM by bmwman91 »

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #1 on: April 20, 2015, 08:36:39 AM »
Hi bmwman

Graph 1

First a question, is this at wide open throttle?
Because it looks like the afm oscillation is in the afr ratio.
Also to note is the trough between 2000 and 3000 in the AFP ratio. I wonder what is causing that?
Pulse chamber or dme programme.

Graph 2

It is interesting to see the oscillation of the door, I did not believe it would be that bad!
Also that pulse camber of yours, I would not mind seeing a standard inlet manifold on your data logger just to eliminate that variable or compare. Be cool to see an trumpet set up too at various lengths.
Your afm certainly stops you cold. The difference between the engines is quite startling with regards to air flow and that's an adjusted curve, compressed with regards to time.

Cheers Rohan

bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #2 on: April 20, 2015, 12:15:46 PM »
Graph 1
- Yes, the plots are with the throttle open 100%.
- The AFR does oscillate as a result of the AFM door flapping around. The dip and second small spike in AFM value after the first big spike are basically sensor error. The "real" air flow into the engine is probably more constant looking, but the DME sees the air flow voltage drop so it cuts fuel momentarily, which is why the AFR goes lean briefly. A MAF would completely eliminate this.
- Yes, the engine is running rich over a wide range. This engine came with a new chip that was tuned for it (not this specific engine, but MM has a generic tune for their 2.1L M42). I did have to switch injectors, and while they are rated at the same bulk flow rate as the ones MM originally specified, maybe they are dumping too much fuel? Either that or it is just due to the tune itself because this engine wants to run a little rich.

Graph 2
- It was also a bit of a surprise to me as well. Honestly, I expected to see a bigger delay between throttle movement and AFM response, with no major oscillation. It looks like there is ~40ms of delay between throttle movement and AFM response, but it definitely has some bad characteristics when you make quick throttle changes.
- I would also like to toss a stock M42 intake manifold on there to see how it compares. The circled #2 area definitely resembles a resonance characteristic, so I am pretty sure it is from the PC manifold. I'll see if some of the local M42 folks I know want to let me borrow one.
- Yes, big difference between the two. I am glad that there is such a big improvement...it means I got what I paid for lol.

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #3 on: April 21, 2015, 01:53:20 AM »
Graph 1
I'm surprised that this was wide open throatle, I thought that at wot and only at wot the afm did not have any influence?
As for running a bit rich perhaps the aftermarket oxygen sensor but you are probably right it would be the tune, MM would be silly to run lean. Or even close too!
I keep looking at the oscillation with the afm and afr, I never thought it would be that bad!
That's all over the place like a brides nighty.  ::)

Graph 2
It's also interesting that the m42b18 afm does not oscillate any where near as much as the m42b21 perhaps because the afm is at nearing full capacity on the m42b21.
And how much did you compress the m42b18 with regards to time, roughly?
You could borrow my intake manifold, but postage would kill us as I'm in oz!
Yes I would say you got what what you paid for it looks like there is a 30% increase in air and that does not take into account the time compression!
Any thoughts on why there is oscillation from 4s and above? I'm thinking a cramped cylinder or cylinders with regards to exhaust or inlet manifold.

Very nice!!  ;D
Cheers Rohan


bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #4 on: April 21, 2015, 11:47:53 AM »
At WOT, the AFM is still used. It is the O2 sensor that gets ignored at WOT (and above a certain RPM too I think). The DME works in closed-loop mode when the O2 sensor is being used because the O2 sensor closes the feedback loop for the fuel injection calculation (in addition to RPM and AFM input). At WOT, the stock O2 is too slow so the DME ignores it and only uses AFM input and RPM to look up fuel injection values.

I figure it is the tune since the Wide-Band O2 sensor setup I have is finally working properly.

Yeah, there is some pretty big overshoot and oscillation. Functionally, it is probably not all that big of a deal since it only lasts ~250ms. Still, it can be better with a MAF.




The plot for the M42B18 was taken from a MAF, not an AFM as noted in my original post. That is the reason for the lack of overshoot...the B18 had a MAF and the B21 has the stock AFM.

The smaller oscillations are probably just due to hitting various cavity resonances in the intake or something to that effect causing the AFM door to deviate a little. The blue plot looks similar, despite being taken from a MAF. However, I am thinking that much of that might just be measurement error/noise because my electronics skills were nothing in 2007 compared to now, and the logger that I built back then was terrible lol. It was fine for overall accuracy, but a lot of ignition noise got in and was not well handled.

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #5 on: April 22, 2015, 01:49:55 AM »
My apologies your absolutely right about the O2 and afm!

It would definitely be the tune, can you imagine someone getting a mm motor then bad fuel!
Running a bit rich would be safe and no one would normally pick it either.

Any reason you didn't keep the maf conversion going on the mm motor? Warranty perhaps.

The small oscillations are from resonance effects, but would a maf solve this?

I'd say your getting about 30% more air with the new motor add to that the increase in compression, any wonder your getting nearly twice the power now! 8)

Cheers Rohan



bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #6 on: April 22, 2015, 01:50:30 PM »
I had the MAF on the MM engine at first, but the car did not run well with it. I later found out that it was due to failing valve springs and a vacuum leak that I caused. So I put the AFM back on. A couple of months later when all of the issues got sorted out I just left the AFM in there since it was running well and I was completely burned-out on the car and trying to do anything with it. MM took care of the valve spring issues for me at no charge and it was not really even their fault that there were issues (their spring supplier started having quality issues).

Anyway, I have had time to mess with other electronics projects since then and I have discovered some improvements that I can make to the MAF converter. I am working on that now and hope to be running on a MAF again in a couple of months!

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #7 on: April 22, 2015, 09:27:49 PM »
So that's why your not using maf and m30 airbox.
Yes that would have been annoying, to say the least.
Trying to figure what was wrong because it couldn't be the new motor.
So I'd be guessing you would have changed quite a few things finding the fault.

Maybe try this on maf and and m30 airbox.


bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #8 on: April 23, 2015, 12:44:15 PM »
Yeah when I had the new motor I figured that the issues had to be with the MAF converter. Much to my disappointment it was a failing valve spring (which completely broke shortly thereafter). A second one broke a few months later, and MM once again covered all costs to make everything right for me. Still, by the time that was done I was completely burned-out on car projects and had zero interest in tinkering for about a year. The broken valve springs were also around the same time that I got married and bought a house...luckily I married a very patient girl!

Anyway, my next step will be to use the MAF and modified M30 air box that I put so much work into. I just need to work out the new MAF converter firmware and design some updated PCBs.

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #9 on: April 24, 2015, 02:30:50 AM »
Great to hear that your still doing this!
I look forward to seeing it!
Post all 3 up when you have it done, it would be a very interesting comparison!

colin86325

  • Hero Member
  • *****
  • Thank You
  • -Receive: 15
  • Posts: 764
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #10 on: April 24, 2015, 09:36:02 AM »
It's always really cool when we get to see somebody investing time and brainpower in our old M42s.  Very nice work!

bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #11 on: July 27, 2015, 06:25:33 PM »
OK M42 fans, I finally have decent data for comparing the stock VAM and a MAF on the 2.1L MM engine. The VAM uses a stock M42 air box with a 1 year old Mahle paper filter, and the MAF uses a modified M30 air box with a fairly new Mahle paper filter (60% more surface area than the M42 filter).

Here is the quick and dirty summation of my findings: Using a MAF doesn't gain you anything on the M42, even with a strung-out 2.1L.

Surprising? Not really. Disappointing? A little. BMW really knows what they are doing (and yet we are constantly second-guessing their design choices!), and the stock M42 air box & VAM are just not restricting anything based on the data I am seeing. The filter element in the M42 has the same surface area as the M20 and S14, so obviously it is good for ~200bhp, at least. As for the VAM, I was expecting it to be at least a little restrictive at higher RPMs on my 2.1L beast, but so far that just does not seem to be the case.

We can all rest, assured that BMW made a very good air box & VAM sensor setup for the M42 when they designed this engine. So, that much is a big plus. The obvious downside is that it is a big nail in the coffin for the idea that there is more power to be gained from a MAF conversion. Sorry folks, it looks like the only areas where the M42 got handicapped are the stock software tune, and the conservative stock cams (and do note that hotter cams will not do anything good for your fuel economy, so even the stock ones have their purpose). The stock cams aren't really a handicap anyway since they traded power for fuel economy, so basically it's just the stock software that sucks. BMW really knew what they were doing in designing this engine (duh), except for the horrifically over-complicated and unreliable timing case setup lol. My MAF conversion adventure has been about a decade long, and I can now finally say that I have reached a conclusion, not necessarily the one I wanted, but at least I know what the deal is now.

So, here are air flow and AFR readings taken during 2nd gear WOT pulls.


There is an important fact to keep in mind here. The air flow values are from 2 different sensors. Air flow values are calculated as a function of the output voltage from the sensors, so the accuracy of the air flow values is subject to whatever tolerance deviations are present in these individual sensors. For example, an "ideal" M42 VAM sensor might have this as its transfer function: Air Flow = (5 x Voltage) + 30, so my logger reads the voltage and calculates air flow based on that. This actual sensor might have a transfer function like: Air Flow = (5.176 x Voltage) + 28.97, so obviously my calculated air flow value will not be entirely accurate. Neither the VAM or MAF that I am using have been put on a flow bench to measure their actual transfer functions...I am going based on Bosch data for "ideal" sensors.

You will notice that the AFR differs between the two sensors' WOT pulls. The fact that the MAF pull is ~5% leaner over most of the pull could indicate that the MAF is under-reporting flow, or that the VAM is over-reporting flow to the ECU. Or, it could be due to the "lumpier" MAF converter signal (the plot above has had some pretty heavy smoothing applied so it is easier to interpret visually) causing a little bit of confusion in the ECU, which I have seen cause lean conditions in the past. I find it unlikely that the MAF setup is actually flowing more air since the next plot of RPM vs time indicates NO performance difference between the two sensors. If you are also thinking, "damn, those are some rich AFR numbers for an NA engine" then I am right there with you. I need to find a local dyno shop that can work with the M1.7ECU to get things better dialed in. Either that, or MM did it on purpose so I could use 91 octane with their 11.5:1 compression build.

This next plot shows engine RPM vs time for four 2nd gear WOT pulls, two with each sensor. I unplugged the Motronic to reset it before doing the MAF pulls, and then unplugged it again to reset it after swapping the stock VAM setup in. This was to try to minimize any LTFT (long-term fuel trim) adaptations, although I don't know if those even effect the WOT maps. The runs were done on the same stretch of road within 40 minutes of each other. The <0.2 second variation between runs is probably just margin-of-error due to the driver (me) and slight road variations. VAM and MAF lines are all mixed in with no obvious difference.


Just for everyone's info, here is what a 2nd gear WOT pull looks like with a MAF. I think that it should be fairly self-explanatory why you cannot just hook a MAF up to the ECU. Throttle was 100% open, so don't worry about the fact that the log shows ~95%, it's just a calibration issue. The fuzzy yellow line is what comes out of the MAF sensor, and the blue line is my converter's output which mimics the VAM's output and goes to the ECU.


Here's a zoomed-in view of part of the plot. You can see that the MAF output is showing every intake valve opening once the throttle gets opened up a bit.


As I mentioned in a previous post, I was having issues with the RPM signal. It turns out that the physical installation of the RPM conditioner was just fine. The issues were in my logger's firmware, and I fixed them. Measuring RPM takes a lot more coding than measuring voltages! I cleaned-up the board installation anyway though since it wasn't really ideal to begin with.
« Last Edit: December 07, 2015, 02:07:07 AM by bmwman91 »

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #12 on: July 28, 2015, 03:02:01 AM »
Hi bmwman

Graph 1
Why do you loose the benefits of the pulse camber with maf?
It's almost like your using a different inlet manifold.
Looks like that engine is set up for fuel economy, not!

Graph 2
That's dead linear, no pulse chamber in any of them.

Graph 3
I thought the corrected blue line would be more of an average of the actual reading.In the higher rpm range it does nor even touch the maf output.

Amazing you can actually see the changes in air flow with the valve opening and closing.
Nearly went blind reading this on my phone, but great work.

Cheers Rohan





bmwman91

  • Administrator
  • Legendary
  • *****
  • Thank You
  • -Receive: 33
  • Posts: 2798
    • View Profile
    • http://www.e30tuner.com/
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #13 on: July 28, 2015, 01:00:19 PM »
Hi bmwman

Graph 1
Why do you loose the benefits of the pulse camber with maf?
It's almost like your using a different inlet manifold.
Looks like that engine is set up for fuel economy, not!

Graph 2
That's dead linear, no pulse chamber in any of them.

Graph 3
I thought the corrected blue line would be more of an average of the actual reading.In the higher rpm range it does nor even touch the maf output.

Amazing you can actually see the changes in air flow with the valve opening and closing.
Nearly went blind reading this on my phone, but great work.

Cheers Rohan






Graph 1
I am also interested in why the shape of the air flow curve changes so much. I am swapping the sensors AND air filter boxes here, so the stock M42 air box must be contributing some sort of resonance and/or working with the pulse chamber manifold. Basically, I really need to stick a stock upper manifold on there to see what, exactly, the pulse chamber manifold is doing.

Graph 2
Right. Whatever that "bulge" in air flow is with the stock VAM, it does not seem to make a noticeable change in power output. From a purely subjective point, the car "feels" like it pulls harder in that range with the stock setup.

Graph 3
Good observation. Everything is correct though. The crazy yellow line is MASS air flow (kg / hr), and the blue line is VOLUME air flow (m^3 / hr). They are related by air density, and so there is a scaling factor between them that changes with temperature and pressure.

Whatever the case, I feel like the car is running WAY too rich at WOT. Don't NA engines usually shoot for ~13:1 AFR at WOT? I realize that there is no one-size-fits-all rule for these things, but 11.5:1 and 12:1 seems too rich.

06/05/2011 - 212,354 miles
Visit HERE for a plethora of 318iS stuff and some other randomness.  Would you say I have a, plethora, of pinatas?

Darky

  • Hero Member
  • *****
  • Thank You
  • -Receive: 23
  • Posts: 630
    • View Profile
Re: Random Data Plots - M42 Engine Parameters Stock vs 2.1L Stroker
« Reply #14 on: July 29, 2015, 03:47:06 AM »
Hi bmwman

What's your exhaust and valve set up?
Afr for maximum power na engines should be between 12 and 12.5.
Is it possible that the acoustics are coming from back of the afm? There's a fair sized surround on the flipper door.

Cheers Rohan