Knock sensor processing

For discussing how to choose sensors and create a wiring harness for all Bowling and Grippo versions of the MegaSquirt® EFI controller.
Forum rules
Read the manual to see if your question is answered there before posting. Many users will not reply if the answer is already available in the manual.

If your question is about troubleshooting, configuration, or tuning, you MUST include your processor type (MS-I or MS-II) and code version in your post. If your question is about PCB assembly or modifications, you must also include the main board version number (1.01, 2.2 or 3.0).

If you have questions about MS1/Extra or MS2/Extra code configuration or tuning, please post them at www.msextra.com Such questions posted here will be moved to: a temporary MSextra sub-forum, where they will be removed after 7 days

The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
tvrgeek
MegaSquirt Newbie
Posts: 12
Joined: Sun Aug 16, 2015 10:52 am

Knock sensor processing

Post by tvrgeek »

Just about to order a MicroSquirt and do an ignition system on one of my MGBs. I am testing a Bosch knock sensor and I should be able to do the bandpass filtering. My goal is to see what I can wring out of it with the Weber DGV still there. ( EFI is stage two) This is a street car.
Assuming I can get a reliable signal, which may be a stretch on this old lump, I have lots of questions on the software as it pertains to knock sensors.
*Does it do the time windowing? I only want to look for knock a few ms after ignition.
*If I run it into one of the ADC lines, is the software already set up for the threshold detection?
*Is there any DSP capability on the ADC inputs to implement bandpass. ( I want to see 7K above a threshold for 5 cycles kind of processing)
*If I did the threshold detection in the external filter, is there a digital input or should I just use the ADC input.
*When you detect knock, you want to back off the timing a couple degrees across some mid-RPM high load area of the maps. Any ideas on this?
*When do you let it back in? Next power cycle, when the MAP goes back up? Do I just take it out and put it back one degree at a time a sew seconds later?
* Do I make the map as close as I can and just let the sensor trim under unusual situations, or do I set the map very aggressive and rely in the sense to pull it back constantly? The age old servo question, stable and trim or unstable and control.

Is there a great big FAQ somewhere that answers these and the issues I have not thought of yet? I have not found one but there are a lot of forums dedicated to the MS. I could have missed one or two.
Matt Cramer
Super Squirter
Posts: 2951
Joined: Sat Jul 03, 2004 11:35 am

Re: Knock sensor processing

Post by Matt Cramer »

First, note that the MS3 and MS2/Extra have separate support at MSExtra.com. This forum is specifically for the B&G code.
Does it do the time windowing? I only want to look for knock a few ms after ignition.
MS2, no.

MS3, yes.
If I run it into one of the ADC lines, is the software already set up for the threshold detection?
MS2/Extra and MS3 have a threshold voltage setting; I am not sure if the B&G code does not.
Is there any DSP capability on the ADC inputs to implement bandpass.
MS3 supports an add on DSP based module; MS2 does not.
When do you let it back in? Next power cycle, when the MAP goes back up? Do I just take it out and put it back one degree at a time a sew seconds later?
You can do either one - pull timing as long as you're in that cell, or let it back in based on time.
Do I make the map as close as I can and just let the sensor trim under unusual situations, or do I set the map very aggressive and rely in the sense to pull it back constantly? The age old servo question, stable and trim or unstable and control.
The timing that makes best power is often well before the knock threshold, unless your engine has odd hot spot issues or the compression is too high for pump gas. If the engine is knock limited, running an aggressive timing map and having it pull knock all the time is only a good idea if the engine is fairly detonation resistant. Some Subarus run this strategy - apparently the turbo setup on a boxer layout produces heat issues that make these engines very knock prone.
tvrgeek
MegaSquirt Newbie
Posts: 12
Joined: Sun Aug 16, 2015 10:52 am

Re: Knock sensor processing

Post by tvrgeek »

Much thanks. Looking at either the MS-II or micro. Not "extra" or 3. There are so many derivatives of the forums, I'm not sure where to go.
This helps quite a bit with my planning.

So, I don't really want to run only a couple degrees behind knock? More bad advice previously. While I still have a carb, my AFR will not be as well controlled as optimum, so trying to put the sensor in closed loop still makes sense even if the advance is not as aggressive. Looks like I need to do most of the work in my external analog piece. At least I am pretty good with analog. :mrgreen:
Post Reply