MEGAsquirt A place to collectively sort out this megasquirt gizmo

Knock control on the MS2

Old 03-13-2012, 08:01 AM
  #1  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default Knock control on the MS2

Finally, after many obstacles, the latest version of my Enhanced MS2 has the foundation ready for proper knock control.

Input from the knock sensor on the processor pin. It is already filtered through the DSP stage:



What the MS2 sees:



Now, for the firmware changes...
Attached Thumbnails Knock control on the MS2-knock_input.png   Knock control on the MS2-knock_graph.png  
Reverant is offline  
Old 03-13-2012, 08:06 AM
  #2  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default



Great work Reverant
richyvrlimited is offline  
Old 03-13-2012, 08:22 AM
  #3  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Raw stock knock sensor output (pink) Vs the filtered output going to the MS2 (yellow) - you can see that the stock sensor is of the resonant type.

Sudden knock:



Reaction time of the DSP stage (~1.7ms):

Attached Thumbnails Knock control on the MS2-scope_0.png   Knock control on the MS2-scope_1.png  
Reverant is offline  
Old 03-13-2012, 08:53 AM
  #4  
Tour de Franzia
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

You are such a bauce.
hustler is offline  
Old 03-13-2012, 09:29 AM
  #5  
Elite Member
 
Zaphod's Avatar
 
Join Date: Mar 2006
Location: Schwarzenberg, Germany
Posts: 1,553
Total Cats: 101
Default

As a electronics noob, I don't know what all of the above scopes mean - but I have to ask - is it an extra board? Will it work with MS3? (Or should I really wait until James board is available again...?)

Greets
Zaphod is offline  
Old 03-13-2012, 09:35 AM
  #6  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

It is on my expansion board. I can make it work for the MS3 (or do a separate "knock-only" board) however I don't want to have a "competing" product with James. So wait for his board again.
Reverant is offline  
Old 03-13-2012, 09:57 AM
  #7  
Elite Member
 
Zaphod's Avatar
 
Join Date: Mar 2006
Location: Schwarzenberg, Germany
Posts: 1,553
Total Cats: 101
Default

O.K. --- that is what you get for stepping up to MS3... ;-)
Zaphod is offline  
Old 03-13-2012, 10:21 AM
  #8  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,484
Total Cats: 4,076
Default

Originally Posted by Zaphod
O.K. --- that is what you get for stepping up to MS3... ;-)
what's wrong with that. you can pinpoint what clyinder is knock and adjust the fuel/spark trim per clyinder.
Braineack is offline  
Old 03-13-2012, 10:47 AM
  #9  
y8s
2 Props,3 Dildos,& 1 Cat
iTrader: (8)
 
y8s's Avatar
 
Join Date: Jun 2005
Location: Fake Virginia
Posts: 19,338
Total Cats: 573
Default

the latest MS3 beta firmware (yes, I said beta) does a pretty decent job of utilizing the knock signal. it's a little hard to sift through all the noise in the logs (actually beta 19 seems to forget to log the raw per cylinder values) but the peak-decay combined value is logged.

also the windowing is pretty nice because you can see exactly what cylinder is making the most noise and retard or enrich on a per-cyl basis.
y8s is offline  
Old 03-13-2012, 12:14 PM
  #10  
Junior Member
 
one-niner's Avatar
 
Join Date: Sep 2010
Location: Denmark
Posts: 80
Total Cats: 1
Default

Subscribed.

Reverant, just to be clear:
- Will current owners need our boards' hardware updated?
- Are any other wiring/hardware changes on the car needed?
- Will the severity of the knock be detected to allow for gradual mitigation (timing/fuel adjustments in steps)?

I really appreciate your persistent work - I know this has been on the way for a long time.

Cheers,
- Tom
one-niner is offline  
Old 03-13-2012, 12:20 PM
  #11  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Originally Posted by one-niner
Subscribed.

Reverant, just to be clear:
- Will current owners need our boards' hardware updated?
- Are any other wiring/hardware changes on the car needed?
- Will the severity of the knock be detected to allow for gradual mitigation (timing/fuel adjustments in steps)?

I really appreciate your persistent work - I know this has been on the way for a long time.

Cheers,
- Tom
1) Yes. This is a totally new expansion board design. In fact, this is board version 2.0 for the MS2V3. You have a DIYPNP, which makes things even more complex (having said that, my own DIYPNP has the V1.0 of the expansion board, I need to upgrade my ECU as well).
2) No other changes needed on the car.
3) The severity of the knock is detected as you can see, the signal fed into the MS2 is analog. My plan is to give a proportional retard option - ie retard 4* if the knock is 40%, retard 7* if the knock is 70*.
Reverant is offline  
Old 03-13-2012, 12:29 PM
  #12  
Junior Member
 
one-niner's Avatar
 
Join Date: Sep 2010
Location: Denmark
Posts: 80
Total Cats: 1
Default

Ok, thanks for the swift response.

I guess I'll see how things progress from here and then perhaps we can discuss options once I go F/I - I really have my fingers crossed that CCR Racing will get their '99 kit approved soon

- Tom
one-niner is offline  
Old 03-13-2012, 12:44 PM
  #13  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Great much-needed work!

Will you share with us how you discriminate knock from background noise? Do you:

- Compare noise levels during the valid knock crank-angle window against outside-the-knock-window?
- Just compare noise levels during the valid knock window against a background-noise-vs-RPM plot?
- Don't do any crank angle windowing?
- listen for the telltale "descending bell" note?
JasonC SBB is offline  
Old 03-13-2012, 02:42 PM
  #14  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Right now there is no knock windowing, although I have provisions on my current board for it. If my free time permits, I will see if I can actually make it work.

The method to be used will be simple:

- Only look for knock inside the knock window
- Noise outside the knock window will not be used at all (this is a limitation of the MS2, I would use it if I could)
- Display the knock percentage. User decides the knock percentage threshold which triggers the knock reaction system. The threshold is the noise profile of the engine at various RPMs. Probably an 8-point table.
- May add a sensitivity adjustment (factor) based on MAP, IAT (higher MAP or IAT = more likely to knock, so make it more sensitive)
- Once the knock threshold has been crossed either remove a given amount of timing until no knock is there, then gradually restore the timing back (current MS2 strategy), or, given that we have an analog signal in now, reduce timing proportionally to the knock intensity, and gradually restore it.
Reverant is offline  
Old 03-13-2012, 03:11 PM
  #15  
Elite Member
iTrader: (2)
 
Oscar's Avatar
 
Join Date: Jan 2007
Location: Bolton, UK
Posts: 3,022
Total Cats: 120
Default

Will this 1) work with my knocksense MS unit and 2) be easily added to my (theoretical for now) MS3X?
Oscar is offline  
Old 03-13-2012, 03:16 PM
  #16  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

This is for the Enhanced MS2 that I build only. It is an integrated solution, there is an expansion board inside the case, much like the MS3X board, that has the knock solution on it. For the MS3, you need to get Jame's (jsmcortina on msextra.com) knock board. I would get this and install it for you, however he does not have any at the moment to sell.
Reverant is offline  
Old 03-14-2012, 10:17 PM
  #17  
Elite Member
iTrader: (12)
 
cardriverx's Avatar
 
Join Date: Jan 2007
Location: Hermosa Beach, CA
Posts: 2,573
Total Cats: 12
Default

What exactly do you define the knock percentage as?
cardriverx is offline  
Old 03-15-2012, 03:12 AM
  #18  
Elite Member
Thread Starter
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

The knock input is a 0-5V analog signal. Currently, 100% is a full 5V. I can however, set the knock levels (0 and 100%) as configurable levels (ie 0%=0.5V, 100%=4.5V).
Reverant is offline  
Old 03-15-2012, 03:32 AM
  #19  
Oni
Junior Member
iTrader: (1)
 
Oni's Avatar
 
Join Date: Jan 2009
Location: Tasmania, AUS
Posts: 162
Total Cats: 3
Default

amazing . Cant wait till you have it sorted, the ony thing that worries me about MS2 was no real knock control. I realise that its at minimum a required hardware upgrade but im sure the benifit and piece of mind will outweight the cost.

Congrats on the progress so far
Oni is offline  
Old 03-15-2012, 08:00 AM
  #20  
Elite Member
iTrader: (2)
 
Oscar's Avatar
 
Join Date: Jan 2007
Location: Bolton, UK
Posts: 3,022
Total Cats: 120
Default

Originally Posted by Reverant
This is for the Enhanced MS2 that I build only. It is an integrated solution, there is an expansion board inside the case, much like the MS3X board, that has the knock solution on it. For the MS3, you need to get Jame's (jsmcortina on msextra.com) knock board. I would get this and install it for you, however he does not have any at the moment to sell.
Thanks. Does he have an ETA on them? Will he have them by the time you start my MS3X? I wouldn't mind waiting a bit longer for that.
Oscar is offline  

Thread Tools
Search this Thread
Quick Reply: Knock control on the MS2



All times are GMT -4. The time now is 04:54 PM.