Knock detection for 2CV

Support forum for the Knock Shield designed to connect knock sensors to Arduino projects.
Post Reply
Lex
Posts: 2
Joined: 06 Jan 2021 11:08

Knock detection for 2CV

Post by Lex » 06 Jan 2021 11:11

I have a Lomax, a kitcar based on a 2CV. Recently I installed fuel injection with a Speeduino.
For the tuning of the Ignition Advance Table I’d like to implement knock-detection.

Has the Bylund knock-shield successfully been used on a 2CV?
Where should the detector best be mounted? On the cylinder? On the cylinder head?

User avatar
Christian_Bylund
Posts: 148
Joined: 07 Mar 2015 18:09

Re: Knock detection for 2CV

Post by Christian_Bylund » 06 Jan 2021 14:38

Lex wrote:
06 Jan 2021 11:11
I have a Lomax, a kitcar based on a 2CV. Recently I installed fuel injection with a Speeduino.
For the tuning of the Ignition Advance Table I’d like to implement knock-detection.
Hi Lex, cool car!
Lex wrote:
06 Jan 2021 11:11
Has the Bylund knock-shield successfully been used on a 2CV?
To my knowledge this would be a first on a 2CV engine.
Lex wrote:
06 Jan 2021 11:11
Where should the detector best be mounted? On the cylinder? On the cylinder head?
Knock detection can be a complicated matter, it is a substitute to combustion analysis using pressure sensors. Instead of measuring the actual pressure peaks generated when knocking occurs we instead try to detect the sound generated from it. The sound is distinct in character with a frequency as a function of the bore diameter which is why the sensor signal filtering for example the knock shield uses a low pass and high pass filter to only listen to that exact frequency. To measure the signal a wideband piezoelectric sensor need to be used like the Bosch KS4-P, typically mounted on the engine block close to the cylinder heads.

There is a good rule of thumb:
"Four cylinder in-line engines are usually fitted with one or two knock sensors, while 5 and 6 cylinder engines are fitted with two, and 8 and 12 cylinder engines with four knock sensors."

Is the 2CV engine a flat twin engine, like a BMW motorcycle engine? - In that case you would probably need two sensors.

The Knock Shield for Arduino is not the easiest tool available to implement knock detection, but it is the most customizable one. It uses the same hardware as used in original and aftermarket equipment but we actually tell you how it works to let you configure and adopt it to your needs. For example in your case, optimize it for the 2CV engine and interface it with the speeduino. The choice is yours we give you the option.

Another challenge is when to measure, have a look at our DIY Knock Monitor video on YouTube.

So to sum up the challenges you will be facing setting up your knock detection:
- Knock sensor location(s).
- Knock sensor measurement timing.
- Knock sensor amplification and gain.
- Knock sensor frequency filtering.
- Interfacing the Knock Shield with Speeduino.

Last but not least, I also recommend the Knock Sensor Training from Texas Instruments in combination with our own Technical Manual for the Knock Shield.

Hope it helps!
Best Regards,
Christian Bylund
Bylund Automotive AB

DonP
Posts: 4
Joined: 04 May 2020 17:08

Re: Knock detection for 2CV

Post by DonP » 12 Jan 2021 10:24

Hi Christian,

Not intending to highjack this thread, but when reading through the task list it came to my mind that maybe some basic software interface to adjust these values would very much lower the entry level:
- Knock sensor measurement timing.
- Knock sensor amplification and gain.
- Knock sensor frequency filtering.

Maybe even displaying the result?

There is a TI reference design, the respective user guide shows screen shots of a very simple GUI (on pages 3 and 4).

And thank you for sharing the training document!

BR,
DonP

User avatar
Christian_Bylund
Posts: 148
Joined: 07 Mar 2015 18:09

Re: Knock detection for 2CV

Post by Christian_Bylund » 12 Jan 2021 18:22

Hi DonP,
DonP wrote:
12 Jan 2021 10:24
Not intending to highjack this thread, but when reading through the task list it came to my mind that maybe some basic software interface to adjust these values would very much lower the entry level:
- Knock sensor measurement timing.
- Knock sensor amplification and gain.
- Knock sensor frequency filtering.

Maybe even displaying the result?
You might be right, how about a Knock Shield App for Windows / iOS / Android?
Best Regards,
Christian Bylund
Bylund Automotive AB

Lex
Posts: 2
Joined: 06 Jan 2021 11:08

Re: Knock detection for 2CV

Post by Lex » 13 Jan 2021 20:09

Christian_Bylund wrote:
06 Jan 2021 14:38
So to sum up the challenges you will be facing setting up your knock detection:
- Knock sensor location(s).
- Knock sensor measurement timing.
- Knock sensor amplification and gain.
- Knock sensor frequency filtering.
- Interfacing the Knock Shield with Speeduino.
Thank you for your kind and elaborate answer.

Actually, I don't mind a time consuming challenge in these boring Covid times. It would be interesting to get it working.
The car is running now on a very restrained and safe advance angle tabel, based on a diagram i found for the timing of the Citroen Visa (similar engine). I think it can be done better. :-)

I'll order one.

Kind regards

DonP
Posts: 4
Joined: 04 May 2020 17:08

Re: Knock detection for 2CV

Post by DonP » 13 Jan 2021 21:44

Christian_Bylund wrote:
12 Jan 2021 18:22
You might be right, how about a Knock Shield App for Windows / iOS / Android?
Hi Christian,

A Knock Shield App, no matter how basic, would be fantastic.

Maybe being able to chose between channel 1 and 2, set frequency and gain (drop down or sliders?), set the number of cylinders and have a single send or apply button?

Not sure about the time integrator constant though. If I understand your YT video on the Knock Shield correctly, the interrupt based code calculates this constant based on engine speed / rpm. But there might be different needs. So maybe allow for a min and max constant at two specific rpm points and interpolate in between?

If the knock level was sent to serial as standard, it would be nice to see it in an app as well.

As the Knock Shield is designed to work with the Arduino Uno, iOS or Android don't seem to be easily connectable, but I might be wrong.

But this is really more thinking out loud than anything else.

BR,
DonP

User avatar
Christian_Bylund
Posts: 148
Joined: 07 Mar 2015 18:09

Re: Knock detection for 2CV

Post by Christian_Bylund » 14 Jan 2021 11:19

Lex wrote:
13 Jan 2021 20:09
Actually, I don't mind a time consuming challenge in these boring Covid times. It would be interesting to get it working.
The car is running now on a very restrained and safe advance angle tabel, based on a diagram i found for the timing of the Citroen Visa (similar engine). I think it can be done better. :-)
I trust you will find it useful and please share your progress!
Best Regards,
Christian Bylund
Bylund Automotive AB

User avatar
Christian_Bylund
Posts: 148
Joined: 07 Mar 2015 18:09

Re: Knock detection for 2CV

Post by Christian_Bylund » 14 Jan 2021 11:30

DonP wrote:
13 Jan 2021 21:44
A Knock Shield App, no matter how basic, would be fantastic.

Maybe being able to chose between channel 1 and 2, set frequency and gain (drop down or sliders?), set the number of cylinders and have a single send or apply button?
We have a positive user experience from the Lambda Shield App.
DonP wrote:
13 Jan 2021 21:44
Not sure about the time integrator constant though. If I understand your YT video on the Knock Shield correctly, the interrupt based code calculates this constant based on engine speed / rpm. But there might be different needs. So maybe allow for a min and max constant at two specific rpm points and interpolate in between?

If the knock level was sent to serial as standard, it would be nice to see it in an app as well.

As the Knock Shield is designed to work with the Arduino Uno, iOS or Android don't seem to be easily connectable, but I might be wrong.

But this is really more thinking out loud than anything else.
You are right, to better control the time constant is to adjust it based on the engine speed like we do in the interrupt version of the example code.

The problem with the Knock Shield is that it is only compatible with the Arduino Uno which makes it quite limited. For a wider compatibility with the Arduino Mega and the Arduino Uno WiFi for connectivity with an app it would require an update.

I am happy to share some information on the upcoming Knock Shield 2, featuring a 12V tachometer input, as well as compatibility with Arduino Mega and Arduino Uno WiFi. So far there is no app planned but it can definitely be the case in the future, at least now it is possible. Right now it is planned to be released with display and data logging support in the code using Arduino Mega.
Image
Best Regards,
Christian Bylund
Bylund Automotive AB

Post Reply