Knock module for MS3 (beta test)

Testing and development of Megasquirt 3

Moderators: daxtojeiro, muythaibxr, jsmcortina

Re: Knock module for MS3 (beta test)

Postby savagerocco » Thu Jan 26, 2012 6:04 pm

So, are we gonna get anymore info about this? What kind of sensors will it support? I can't wait for this upgrade!
Brent Savage
life behind the zion curtain
90 audi RS2 20VTQ 6sp MS3, MSX COP and Sequential and now MAF
87 Scirocco 2.0 ABA 16v EIP tubular cast MSII COP
86 Audi 4K20VTQ MSII
90 Audi 90 sedan 3.6l DOHC V8TT (project car)
89 VW cabbie (bitch basket) 2.0 ABA Turbo MSII
savagerocco
Master MS/Extra'er
 
Posts: 615
Joined: Thu Oct 20, 2005 11:09 am
Location: Ogden UT USA

Re: Knock module for MS3 (beta test)

Postby y8s » Fri Jan 27, 2012 7:47 am

savagerocco wrote:So, are we gonna get anymore info about this? What kind of sensors will it support? I can't wait for this upgrade!


In retrospect, I should have asked this question prior to sending my paypal!
y8s
Master MS/Extra'er
 
Posts: 478
Joined: Wed Jan 07, 2009 3:21 pm

Re: Knock module for MS3 (beta test)

Postby elaw » Fri Jan 27, 2012 7:55 am

There are really only two general types of knock sensors... resonant (less common) and nonresonant (more common). Depending on the component values James selected, I'd expect nonresonant ones to connect directly. Resonant ones tend to have higher output and might require a series resistor. Or might not. :)

The types of sensor can often be distinguished by appearance. Most nonresonant sensors look like this:
Image
...although the conector might vary or there could be a wire incorporated.

Resonant sensors usually have metal bodies and look more like an oil-pressure switch.
Eric Law
1990 Audi 80 Quattro: happily running on MS3
1997 Saab 9000 Aero: self-tweaked stock engine management
1986 Audi 4000 Quattro: R.I.P.

Be alert! America needs more lerts.
User avatar
elaw
Super MS/Extra'er
 
Posts: 1853
Joined: Fri Oct 16, 2009 6:20 am
Location: Wilmington, MA

Re: Knock module for MS3 (beta test)

Postby savagerocco » Fri Jan 27, 2012 8:16 am

Well, Eric an I both have two of those hagning out on our blocks just waiting for something like this to hook them up to... I guess I have a third resonant one too.....
Brent Savage
life behind the zion curtain
90 audi RS2 20VTQ 6sp MS3, MSX COP and Sequential and now MAF
87 Scirocco 2.0 ABA 16v EIP tubular cast MSII COP
86 Audi 4K20VTQ MSII
90 Audi 90 sedan 3.6l DOHC V8TT (project car)
89 VW cabbie (bitch basket) 2.0 ABA Turbo MSII
savagerocco
Master MS/Extra'er
 
Posts: 615
Joined: Thu Oct 20, 2005 11:09 am
Location: Ogden UT USA

Re: Knock module for MS3 (beta test)

Postby masterx81 » Fri Jan 27, 2012 8:58 am

The readout is via an analog pin or via spi communication? On the pdf of the tpic seem that the adc output can be read via i2c (so a pin can be freed)
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
masterx81
Master MS/Extra'er
 
Posts: 545
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: Knock module for MS3 (beta test)

Postby jsmcortina » Fri Jan 27, 2012 9:20 am

masterx81 wrote:The readout is via an analog pin or via spi communication? On the pdf of the tpic seem that the adc output can be read via i2c (so a pin can be freed)

It uses SPI already, an earlier iteration had the analogue pin too, but I deleted that. The module is using +5V,0V, SCLK, MISO, MOSI, CS, window. Which is the bare minimum.

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 22885
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Knock module for MS3 (beta test)

Postby masterx81 » Fri Jan 27, 2012 9:25 am

That's so nice & clean! Thanks!
The pin used for CS can bee freed up on the cpu if there is only one device in the spi 'chain', leaving pulled up the cs pin on the knock board?
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
masterx81
Master MS/Extra'er
 
Posts: 545
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: Knock module for MS3 (beta test)

Postby jsmcortina » Fri Jan 27, 2012 9:49 am

masterx81 wrote:That's so nice & clean! Thanks!
The pin used for CS can bee freed up on the cpu if there is only one device in the spi 'chain', leaving pulled up the cs pin on the knock board?

From memory the chip needs it as part of the command sequence.

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 22885
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Knock module for MS3 (beta test)

Postby masterx81 » Fri Jan 27, 2012 10:03 am

Some spi chips work also with the cs always active (pulled down), but on the pdf of the tpic on the timing charts it's always present... worth a try to see if it work wothout it?
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
masterx81
Master MS/Extra'er
 
Posts: 545
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: Knock module for MS3 (beta test)

Postby AbatelliCristian » Fri Jan 27, 2012 10:25 am

Hi James,
why you don't use port "inj2" for windows? frequently is unused...
AbatelliCristian
Experienced MS/Extra'er
 
Posts: 240
Joined: Sun Oct 10, 2010 6:33 am

Re: Knock module for MS3 (beta test)

Postby jsmcortina » Fri Jan 27, 2012 10:43 am

The way it is designed only one single jumper wire is required to interface with the MS3. (In addition to the two knock sensor inputs.)

James
I can supply, repair or upgrade Megasquirts in UK.

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 22885
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK

Re: Knock module for MS3 (beta test)

Postby djp0623 » Fri Jan 27, 2012 11:57 am

Can't wait! I installed one of the above style sensors on my block a while ago. I'm glad I did.
djp0623
Helpful MS/Extra'er
 
Posts: 128
Joined: Sat Nov 21, 2009 9:28 pm

Re: Knock module for MS3 (beta test)

Postby bubba2533 » Fri Jan 27, 2012 4:53 pm

What pin on the db37 connector can the knock sensor go to?

I'm just wondering if it will work with the current pins I'm using.
Last edited by bubba2533 on Sat Jan 28, 2012 3:23 am, edited 1 time in total.
97 Subaru Impreza 2.2L - MS3 w/ MS3/x
bubba2533
Experienced MS/Extra'er
 
Posts: 328
Joined: Wed Jan 28, 2009 6:12 pm

Re: Knock module for MS3 (beta test)

Postby Reverant » Sat Jan 28, 2012 2:32 am

The TPIC8101 only works with the resonant-type knock sensors. It doesn't work with flat response sensors.
2002 Mazda Miata 1.8 6sp - Microsquirt module/Extra 3.3.0bR3, sequential injection, wasted spark - Dual GM 1 bar MAP sensors - InCar PC
Telemetry Chain: LM-1 - LMA-2 - 4xLC-1 - LMA-3 - TC-4 - 4xSSI-4 - DL32
User avatar
Reverant
Master MS/Extra'er
 
Posts: 530
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: Knock module for MS3 (beta test)

Postby masterx81 » Sat Jan 28, 2012 3:13 am

Reverant wrote:The TPIC8101 only works with the resonant-type knock sensors. It doesn't work with flat response sensors.

The knock sensor is only a piezo microphone, i not see why it must not work with flat response sensors. The 3rd order bandpass filter is here to filter unwanted frequencies...
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
masterx81
Master MS/Extra'er
 
Posts: 545
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: Knock module for MS3 (beta test)

Postby elaw » Mon Jan 30, 2012 6:14 am

Hey... I just wanted to share an idea I had for anyone that's going to use this board. Where the sensors connect to the Megasquirt, I'm going to wire in a 1/8" (3.5mm) stereo audio jack in parallel so I can tap into the sensors' output either for det cans or recording.
Eric Law
1990 Audi 80 Quattro: happily running on MS3
1997 Saab 9000 Aero: self-tweaked stock engine management
1986 Audi 4000 Quattro: R.I.P.

Be alert! America needs more lerts.
User avatar
elaw
Super MS/Extra'er
 
Posts: 1853
Joined: Fri Oct 16, 2009 6:20 am
Location: Wilmington, MA

Re: Knock module for MS3 (beta test)

Postby masterx81 » Mon Jan 30, 2012 6:26 am

I always map advance with hearphones, amplifier and knock sensor (installed on any car >1990 ca)... I trust my ears more than any sensor.
IMHO this circuit is useful only as an emergency solution while driving, but it not a substitute a good map...
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
masterx81
Master MS/Extra'er
 
Posts: 545
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

Re: Knock module for MS3 (beta test)

Postby Matt Cramer » Mon Jan 30, 2012 6:52 am

masterx81 wrote:
Reverant wrote:The TPIC8101 only works with the resonant-type knock sensors. It doesn't work with flat response sensors.

The knock sensor is only a piezo microphone, i not see why it must not work with flat response sensors. The 3rd order bandpass filter is here to filter unwanted frequencies...


We used a flat response sensor in our testing.
Matt Cramer
Super MS/Extra'er
 
Posts: 5995
Joined: Thu Apr 16, 2009 8:08 pm

Re: Knock module for MS3 (beta test)

Postby Reverant » Tue Jan 31, 2012 3:32 am

masterx81 wrote:
Reverant wrote:The TPIC8101 only works with the resonant-type knock sensors. It doesn't work with flat response sensors.

The knock sensor is only a piezo microphone, i not see why it must not work with flat response sensors. The 3rd order bandpass filter is here to filter unwanted frequencies...


The TI datasheet says so. And so did a TI engineer in the TI support forums.
2002 Mazda Miata 1.8 6sp - Microsquirt module/Extra 3.3.0bR3, sequential injection, wasted spark - Dual GM 1 bar MAP sensors - InCar PC
Telemetry Chain: LM-1 - LMA-2 - 4xLC-1 - LMA-3 - TC-4 - 4xSSI-4 - DL32
User avatar
Reverant
Master MS/Extra'er
 
Posts: 530
Joined: Sat Apr 15, 2006 12:39 am
Location: Athens, Greece

Re: Knock module for MS3 (beta test)

Postby masterx81 » Tue Jan 31, 2012 3:46 am

AFAIK there are other interfaces that uses this chip with flat response piezo wothout any problem, and i'm not able to find anything about this on the datasheet. Can you point us where we can find this info on the pdf?
The only problem i can see with non-resonant knock sensors is that the amplitude of the signal is smaller than a resonant one, so gain must be high, input stage (resistor) must be chosen to not attenuate too much, and maybe use a small integrator time constant. Maybe we are a little bit on the edge, but i not see too much problems...
For sure would be nice a table where is possibile to configure gain and integrator constant depending on the rpm...
Enrico
Opel/Vauxhall Corsa GSi MS2
Subaru v4 EJ20 MS3
masterx81
Master MS/Extra'er
 
Posts: 545
Joined: Mon Oct 25, 2004 7:36 am
Location: Asti - Italy

PreviousNext

Return to MS3 Development

Who is online

Users browsing this forum: No registered users and 2 guests