Notices
MEGAsquirt A place to collectively sort out this megasquirt gizmo

Knock control on the MS2

Old Mar 13, 2012 | 08:01 AM
  #1  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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  
Old Mar 13, 2012 | 08:06 AM
  #2  
richyvrlimited's Avatar
Elite Member
iTrader: (1)
 
Joined: Jun 2006
Posts: 2,642
Total Cats: 42
From: Warrington/Birmingham
Default



Great work Reverant
Old Mar 13, 2012 | 08:22 AM
  #3  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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  
Old Mar 13, 2012 | 08:53 AM
  #4  
hustler's Avatar
Tour de Franzia
iTrader: (6)
 
Joined: Jun 2006
Posts: 29,085
Total Cats: 375
From: Republic of Dallas
Default

You are such a bauce.
Old Mar 13, 2012 | 09:29 AM
  #5  
Zaphod's Avatar
Elite Member
 
Joined: Mar 2006
Posts: 1,574
Total Cats: 106
From: Schwarzenberg, Germany
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
Old Mar 13, 2012 | 09:35 AM
  #6  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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.
Old Mar 13, 2012 | 09:57 AM
  #7  
Zaphod's Avatar
Elite Member
 
Joined: Mar 2006
Posts: 1,574
Total Cats: 106
From: Schwarzenberg, Germany
Default

O.K. --- that is what you get for stepping up to MS3... ;-)
Old Mar 13, 2012 | 10:21 AM
  #8  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 80,552
Total Cats: 4,368
From: Chantilly, VA
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.
Old Mar 13, 2012 | 10:47 AM
  #9  
y8s's Avatar
y8s
DEI liberal femininity
iTrader: (8)
 
Joined: Jun 2005
Posts: 19,338
Total Cats: 574
From: Fake Virginia
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.
Old Mar 13, 2012 | 12:14 PM
  #10  
one-niner's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 80
Total Cats: 1
From: Denmark
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
Old Mar 13, 2012 | 12:20 PM
  #11  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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*.
Old Mar 13, 2012 | 12:29 PM
  #12  
one-niner's Avatar
Junior Member
 
Joined: Sep 2010
Posts: 80
Total Cats: 1
From: Denmark
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
Old Mar 13, 2012 | 12:44 PM
  #13  
JasonC SBB's Avatar
Elite Member
 
Joined: 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?
Old Mar 13, 2012 | 02:42 PM
  #14  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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.
Old Mar 13, 2012 | 03:11 PM
  #15  
Oscar's Avatar
Elite Member
iTrader: (2)
 
Joined: Jan 2007
Posts: 3,022
Total Cats: 120
From: Bolton, UK
Default

Will this 1) work with my knocksense MS unit and 2) be easily added to my (theoretical for now) MS3X?
Old Mar 13, 2012 | 03:16 PM
  #16  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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.
Old Mar 14, 2012 | 10:17 PM
  #17  
cardriverx's Avatar
Elite Member
iTrader: (12)
 
Joined: Jan 2007
Posts: 2,573
Total Cats: 12
From: Hermosa Beach, CA
Default

What exactly do you define the knock percentage as?
Old Mar 15, 2012 | 03:12 AM
  #18  
Reverant's Avatar
Thread Starter
Elite Member
iTrader: (10)
 
Joined: Jun 2006
Posts: 6,020
Total Cats: 369
From: Athens, Greece
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).
Old Mar 15, 2012 | 03:32 AM
  #19  
Oni's Avatar
Oni
Junior Member
iTrader: (1)
 
Joined: Jan 2009
Posts: 162
Total Cats: 3
From: Tasmania, AUS
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
Old Mar 15, 2012 | 08:00 AM
  #20  
Oscar's Avatar
Elite Member
iTrader: (2)
 
Joined: Jan 2007
Posts: 3,022
Total Cats: 120
From: Bolton, UK
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.

Thread Tools
Search this Thread

All times are GMT -4. The time now is 08:46 AM.