MEGAsquirt A place to collectively sort out this megasquirt gizmo

MS3 PRO Knock Detection Thread

Thread Tools
 
Search this Thread
 
Old 06-28-2015, 04:00 PM
  #21  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Ok so I got my ECU back from DIY Autotune. They said the knock chip was bad, and they replaced it.

Anyways, I got the ecu back , hooked it up, and I'm still not getting any knock input! I went through all the troubelshooting again, ending with me playing a Sine Wave Sweep into the MS3 PRO and still got nothing.

I emailed them but it's the weekend so nothing back yet.

Can anyone take a look at my settings and make sure there's nothing obviously wrong?

Pics:







Attached Thumbnails MS3 PRO Knock Detection Thread-knock%2520sensor%2520settings%25201_zps6wntlghx.png   MS3 PRO Knock Detection Thread-knock%2520sensor%2520settings%25202_zpsv6cqgmje.png   MS3 PRO Knock Detection Thread-knock%2520sensor%2520settings%25203_zpshtjp78cs.png   MS3 PRO Knock Detection Thread-knock%2520sensor%2520settings%25204_zps9acz31wc.png  
patsmx5 is offline  
Old 06-30-2015, 05:57 AM
  #22  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

What happens if you crank the gain to some absurd level?
arghx7 is offline  
Old 07-01-2015, 07:34 PM
  #23  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Originally Posted by arghx7
What happens if you crank the gain to some absurd level?
I tried that a while back, it made no difference. I turned the gain as high as it would allow and still got nothing.

I ended up sending the ECU in to be repaired again, they fixed it today! Even sent me a log showing it working. So now just waiting to get it back and into the car.

So, my questions for anyone that will take the time to answer:

1. Are the settings I posted good? The only thing I plan to change vs what I posted screenshots of is to change the duration from 50* to 20*. I used 50 for testing. That and I'll have to tune the knock threshold of course.

2. Does the MS3 detect knock all the way to redline? Or does it get overwhelmed with noise at some RPM?
patsmx5 is offline  
Old 07-02-2015, 02:19 AM
  #24  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

I've done knock sensor development in a lab and I can tell you that noise increases exponentially with rpm and it's entirely possible that the sensor is blind to 1 or more cylinders at certain speeds and loads. As in, the engine can be knocking but the sensor won't pick it up. You don't hear about that when people tune spark on stock ecu knock systems for other cars (subaru etc) because somebody at the OEM set the gains and frequency and window and thresholds in order to mask/work around the blindness.

That's all by measuring knock with cylinder pressure sensors and comparing to lab grade knock sensors/accelerometers.

Knock control and knock limit is very much judgment calls and opinions.
arghx7 is offline  
Old 07-02-2015, 02:47 AM
  #25  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Originally Posted by arghx7
I've done knock sensor development in a lab and I can tell you that noise increases exponentially with rpm and it's entirely possible that the sensor is blind to 1 or more cylinders at certain speeds and loads. As in, the engine can be knocking but the sensor won't pick it up. You don't hear about that when people tune spark on stock ecu knock systems for other cars (subaru etc) because somebody at the OEM set the gains and frequency and window and thresholds in order to mask/work around the blindness.

That's all by measuring knock with cylinder pressure sensors and comparing to lab grade knock sensors/accelerometers.

Knock control and knock limit is very much judgment calls and opinions.
Ok thanks for the info.

But hear me out. I don't have a lab, dyno, or a million dollars to do this to the OEM level. So what can I actually do to make the most of this? That's the question I need answered.

For example:

1. To set knock threshold, I've read people do this by reving in Neutral. This seems odd. I think pull say 5* and do a pull to redline, and use that as a baseline of no-knock. Agreed?

2. Once I know what the baseline threshold is, how much "higher" should I set the real knock threshold? I would think some % higher than the baseline. Say, 10%? Or should this vary with RPM? Perhaps more sensitive at low RPMs (because less noise) but a higher threshold at higher RPMs (since more noise)?

3. How much authority should I assign to the knock sensor? I've read some setups only pull up to 4*, but I believe Subaru does a lot more than this. I think the norm is something higher than 4*, likely more like 8*?

Answers to these questions would help me a lot.
patsmx5 is offline  
Old 07-02-2015, 10:14 AM
  #26  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,979
Total Cats: 356
Default

The issue you are having with 0% is not a hardware issue, it's a firmware issue. DIY should have known this.
Reverant is offline  
Old 07-02-2015, 11:30 AM
  #27  
SADFab Destructive Testing Engineer
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

<p>Are these settings different car to car? How does an OEM get away with a single setup for all motors. Could we potentially crowd fund some sort of lab grade testing and apply it to all setups?</p>
aidandj is offline  
Old 07-02-2015, 11:42 AM
  #28  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Stock sensors work a lot different though right, as in actively filtering and listening to multiple frequencies from the same sensor/speaker.

All of the megasquirt stuff I've seen just seems to generate a duty cycle off of signal to noise ratio or something. It's largely unfixable, at least like OEM.

So we'd need a signal amplifier on the knock sensor, crossovers and filters stolen from a stock ecu somehow, maybe by sweeping a signal against stock ecu jimstim to watch and plot what input frequencies and levels pulls timing. Then make a knockbox or somehing to send PWM or TTL signal to the megasquirt.

That's all way over my head. I like my detcans and moderation tuning.
deezums is offline  
Old 07-02-2015, 01:03 PM
  #29  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Originally Posted by Reverant
The issue you are having with 0% is not a hardware issue, it's a firmware issue. DIY should have known this.
How so? I'm running there latest firmware.
patsmx5 is offline  
Old 07-02-2015, 01:18 PM
  #30  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

Well let me ask a question. Are you willing to advance spark and induce knock in order to adjust these settings?
arghx7 is offline  
Old 07-02-2015, 01:21 PM
  #31  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Originally Posted by arghx7
Well let me ask a question. Are you willing to advance spark and induce knock in order to adjust these settings?
Yes I'll do it, but not at full boost. But at light-moderate loads I'd do it. I'd prefer to wear some type of det cans while I can hear it in my ear, and see the response from the knock sensor.
patsmx5 is offline  
Old 07-02-2015, 04:50 PM
  #32  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

Your options are limited without a loading dyno, or any dyno really. When you start banging through gears on the street the drive train movement can affect the noise curve, especially if you don't have a nice even road surface.

You can hold it in some higher gear, give it part throttle, and take some logs as it runs up in engine speed. Then try to repeat it but it with more spark and see if you notice something.

What I would personally do is try to induce knock at low speed lugging where the noise is naturally lower, the engine likes to knock, and cylinder pressure is lower so the risk of damage isn't so high. Floor it at 1000 rpm in 5th, or maybe 1200 or 1500 at most.

You should hear more of a faint chirping sound when it knocks, especially at 1000. The background noise from combustion is very low at such low speeds, but there's still potential for other noise.
arghx7 is offline  
Old 07-02-2015, 05:05 PM
  #33  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Originally Posted by arghx7
Your options are limited without a loading dyno, or any dyno really. When you start banging through gears on the street the drive train movement can affect the noise curve, especially if you don't have a nice even road surface.

You can hold it in some higher gear, give it part throttle, and take some logs as it runs up in engine speed. Then try to repeat it but it with more spark and see if you notice something.

What I would personally do is try to induce knock at low speed lugging where the noise is naturally lower, the engine likes to knock, and cylinder pressure is lower so the risk of damage isn't so high. Floor it at 1000 rpm in 5th, or maybe 1200 or 1500 at most.

You should hear more of a faint chirping sound when it knocks, especially at 1000. The background noise from combustion is very low at such low speeds, but there's still potential for other noise.
Ok thanks for the info. I can do that. I can run about 10 PSI boost a 1,000 RPMs. Should I stay out of boost for this test or let it boost?

Also what specifically would I be looking for? I'm guessing to determine what real knock looks like so I can set my thresholds accordingly?
patsmx5 is offline  
Old 07-02-2015, 05:14 PM
  #34  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

Originally Posted by patsmx5
Ok thanks for the info.

But hear me out. I don't have a lab, dyno, or a million dollars to do this to the OEM level. So what can I actually do to make the most of this? That's the question I need answered.

For example:

1. To set knock threshold, I've read people do this by reving in Neutral. This seems odd. I think pull say 5* and do a pull to redline, and use that as a baseline of no-knock. Agreed?

2. Once I know what the baseline threshold is, how much "higher" should I set the real knock threshold? I would think some % higher than the baseline. Say, 10%? Or should this vary with RPM? Perhaps more sensitive at low RPMs (because less noise) but a higher threshold at higher RPMs (since more noise)?

3. How much authority should I assign to the knock sensor? I've read some setups only pull up to 4*, but I believe Subaru does a lot more than this. I think the norm is something higher than 4*, likely more like 8*?

Answers to these questions would help me a lot.
Ok im coming back to this now.

1. There's no easy answer to this without a lot of risky testing. Pull 5 degrees method is closer to what I'd do, but you've got transient and drive train effects from doing pulls on the street.

Running in neutral unfortunately doesn't load the engine down so much, but we don't know the sensitivity of background noise to load. That's the kind of thing you study when you configure a knock sensor in a lab.

You could do both and see if any of the numbers make any sense.

2. If you're not willing to beat the **** out of the engine to find out (who could blame you), 10% is as good as any. It's kind of arbitrary as nobody can seem to agree on where the line is first crossed and how much knock is too much.

3. Ok so if you had a modern model based ecu you would have a minimum spark curve map that's tuned in the combustion portion of the engine torque model. This tells the ecu how much spark it can pull without misfiring. It's used for cat lightoff, knock retard, and torque reduction requests on gear shift. That's done by sweeping spark and looking at combustion and torque fluctuation.

I don't have any kind of cylinder pressure data or misfire data. So we go off rules of thumb, past experience, educated guesses. I'd go with 4 because I'm concerned that more than that could overheat exhaust and melt something or cause a misfire. But you can always increase it later.
arghx7 is offline  
Old 07-02-2015, 05:15 PM
  #35  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

Can you really make 10 psi boost at 1000rpm? Is that with vvt maxed out?
arghx7 is offline  
Old 07-02-2015, 05:24 PM
  #36  
Junior Member
 
arghx7's Avatar
 
Join Date: May 2015
Posts: 86
Total Cats: 11
Default MS3 PRO Knock Detection Thread

Stick it in 5th at 1000rpm. Floor it up to 2000rpm. Save log. Advance 1 or 2 degrees, do it again. Compare knock sensor activity. Keep advancing until you hear audible knock. Shouldn't be too loud. See if you have some kind of trend of spark vs knock sensor activity. Be mindful of air intake temps changing knock limit.

There's a small risk of preignition but I think it probably won't be an issue. That will make a louder sound and be more unpredictable than spark knock.

If you can't get any knock sensor activity but you can hear it audibly, or its just way too low, I would wonder about the gain and the frequency settings.
arghx7 is offline  
Old 07-02-2015, 05:29 PM
  #37  
Elite Member
Thread Starter
iTrader: (16)
 
patsmx5's Avatar
 
Join Date: Aug 2007
Location: Houston, TX
Posts: 9,298
Total Cats: 477
Default

Originally Posted by arghx7
Ok im coming back to this now.

1. There's no easy answer to this without a lot of risky testing. Pull 5 degrees method is closer to what I'd do, but you've got transient and drive train effects from doing pulls on the street.

Running in neutral unfortunately doesn't load the engine down so much, but we don't know the sensitivity of background noise to load. That's the kind of thing you study when you configure a knock sensor in a lab.

You could do both and see if any of the numbers make any sense.

2. If you're not willing to beat the **** out of the engine to find out (who could blame you), 10% is as good as any. It's kind of arbitrary as nobody can seem to agree on where the line is first crossed and how much knock is too much.

3. Ok so if you had a modern model based ecu you would have a minimum spark curve map that's tuned in the combustion portion of the engine torque model. This tells the ecu how much spark it can pull without misfiring. It's used for cat lightoff, knock retard, and torque reduction requests on gear shift. That's done by sweeping spark and looking at combustion and torque fluctuation.

I don't have any kind of cylinder pressure data or misfire data. So we go off rules of thumb, past experience, educated guesses. I'd go with 4 because I'm concerned that more than that could overheat exhaust and melt something or cause a misfire. But you can always increase it later.
Originally Posted by arghx7
Can you really make 10 psi boost at 1000rpm? Is that with vvt maxed out?
Thanks for the reply sir!

Here is my current VVT map:


1.- Alright I think I'll do the pull 5 degrees approach. I am 99.9% sure my current map does not knock, as I already pulled 3* from it when I know it knocked on that map at some point. I believe it was knocking in the 2000-2500 RPM, 150+kpa range with very high AITs, but at the time I just pulled from all the boosted cells to be safe.

So I think I'll do a baseline the way it is now (minus 3) and another baseline at minus 5, and another at minus 7, etc. Just to "see" what changes. For my knowledge, more data will be useful and help me see what's normal.

2. If I break this engine, I'm tempted to build a cheaper one and use it for testing. There's a lot of things I want to test, and knock control is for sure one of them. But for the question 2, I'm thinking once I have the data from the test in point 1, it should be easier to establish a knock threshold.




Originally Posted by arghx7
Stick it in 5th at 1000rpm. Floor it up to 2000rpm. Save log. Advance 1 or 2 degrees, do it again. Compare knock sensor activity. Keep advancing until you hear audible knock. Shouldn't be too loud. See if you have some kind of trend of spark vs knock sensor activity. Be mindful of air intake temps changing knock limit.

There's a small risk of preignition but I think it probably won't be an issue. That will make a louder sound and be more unpredictable than spark knock.

If you can't get any knock sensor activity but you can hear it audibly, or its just way too low, I would wonder about the gain and the frequency settings.
I'll do that once I get everything back together and on the road again. I've tuned my fuel at low speeds doing 500-2500 RPM pulls in 5th, and I noticed then that I needed 11.0:1 AFRs at low RPMs to prevent detonation in boost. It was audible no doubt.

I'm doing a pulley upgrade too so new boost level will be around 30 PSI at 7,700, it was 23 PSI at 8,500 before. 30% more pulley now.
Attached Thumbnails MS3 PRO Knock Detection Thread-vvt_zpsxwya1pcz.png   MS3 PRO Knock Detection Thread-vvt_zpsxwya1pcz.png  
patsmx5 is offline  
Old 04-25-2020, 12:35 AM
  #38  
Newb
 
Djovani_jr's Avatar
 
Join Date: Apr 2020
Location: Sakhalin Island
Posts: 8
Total Cats: 0
Default

Hi to all!

How to tune integrator time constant?
Djovani_jr is offline  
Old 04-25-2020, 10:44 AM
  #39  
Tweaking Enginerd
iTrader: (2)
 
Ted75zcar's Avatar
 
Join Date: Mar 2013
Location: Boulder, CO
Posts: 1,778
Total Cats: 358
Default

Originally Posted by Djovani_jr
Hi to all!

How to tune integrator time constant?
The MS3PRO module uses the TPIC8101. The datasheet and application notes do a pretty good job of speaking to the integrator time constant. I ~think~ I remember the integration time being determined by the knock window, but it has been a long time since I looked at this stuff.

Ted75zcar is offline  
Old 04-25-2020, 06:23 PM
  #40  
Newb
 
Djovani_jr's Avatar
 
Join Date: Apr 2020
Location: Sakhalin Island
Posts: 8
Total Cats: 0
Default

Originally Posted by Ted75zcar
The MS3PRO module uses the TPIC8101. The datasheet and application notes do a pretty good job of speaking to the integrator time constant. I ~think~ I remember the integration time being determined by the knock window, but it has been a long time since I looked at this stuff.
changing the knock window integrator time constant changing itself?
you manually set the integrator time constant under the bandpass filter. Initial setting 150 ms
Djovani_jr is offline  


Quick Reply: MS3 PRO Knock Detection Thread



All times are GMT -4. The time now is 01:36 PM.