Please explain the thing
-
- Posts: 3
- Joined: 02 Jan 2021 12:39
Please explain the thing
Hi,
i dont really get the idea behind this. Could you please answer a few questions?
- When does this integration window start and when does it end and what is it for?
- is the value thats integrated (the gradient of the integration) depending on the sound level thats heard by the sensor?
- what does the arduino do with the analog voltage thats given by the knock shield?
Could you please explain how it is intended to work and how i can use it as an input to my ECU. Whats the idea behind this?
Thanks
Diz
i dont really get the idea behind this. Could you please answer a few questions?
- When does this integration window start and when does it end and what is it for?
- is the value thats integrated (the gradient of the integration) depending on the sound level thats heard by the sensor?
- what does the arduino do with the analog voltage thats given by the knock shield?
Could you please explain how it is intended to work and how i can use it as an input to my ECU. Whats the idea behind this?
Thanks
Diz
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Please explain the thing
Hi Diz,
If you haven't already, watch our explanatory DIY video of the Knock Shield for Arduino on YouTube.
Hope it helps!
The Knock Shield for Arduino is a reference design of the most common Knock IC's - Texas Instruments TPIC8101DW and Renesas / Intersil HIP9011. It can be used to design your own knock circuit or as a highly configurable knock sensor kit.DizTheFiddler wrote: ↑02 Jan 2021 12:50Could you please explain how it is intended to work and how i can use it as an input to my ECU. Whats the idea behind this?
By your question I assume that you have already read the Technical Manual. The integration window is when the sensor is measuring, typically triggered by the position of the crankshaft in relation to ignition timing.DizTheFiddler wrote: ↑02 Jan 2021 12:50When does this integration window start and when does it end and what is it for?
The integrated value is the accumulated sound matching the high- and low-pass filters. The Knock Shield is basically a Digital Signal Processor (DSP) only listening to a certain frequency. After each measurement (time window) the shield outputs an analog signal 0-5V (0-100%) for the Arduino to read.DizTheFiddler wrote: ↑02 Jan 2021 12:50Is the value thats integrated (the gradient of the integration) depending on the sound level thats heard by the sensor?
What does the arduino do with the analog voltage thats given by the knock shield?
If you haven't already, watch our explanatory DIY video of the Knock Shield for Arduino on YouTube.
Hope it helps!
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
-
- Posts: 3
- Joined: 02 Jan 2021 12:39
Re: Please explain the thing
Thank you very much for the infos. But of course i have some more questions. ;)
- How does the crank position signal have to look like and which voltage level is allowed? Im running a rotating distributor with a magnetic pickup. My ingition box puts out a rectangle signal for the tach, so i could use the symmetric sinus of the magnetic pickup or a 0-14V rect signal (or splitted to 0-5V if needed) to start the window.
- Can knock shield start the window before the rpm signal indicates TDC (or slightly off) of each cyl or only a few degrees after?
- I guess i can use a Arduino Tiny Every for reading the 0-5V signal of the chip too, if i can hook the shield up to the power supply and ADC?!
- Is there a manual which covers all these questions?
Thanks a lot!
Dieter
- How does the crank position signal have to look like and which voltage level is allowed? Im running a rotating distributor with a magnetic pickup. My ingition box puts out a rectangle signal for the tach, so i could use the symmetric sinus of the magnetic pickup or a 0-14V rect signal (or splitted to 0-5V if needed) to start the window.
- Can knock shield start the window before the rpm signal indicates TDC (or slightly off) of each cyl or only a few degrees after?
- I guess i can use a Arduino Tiny Every for reading the 0-5V signal of the chip too, if i can hook the shield up to the power supply and ADC?!
- Is there a manual which covers all these questions?
Thanks a lot!
Dieter
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Please explain the thing
Hi Dieter,
It is no secret that I am working on the updated Knock Shield 2 that will feature signal handling for this input. The first prototype had a simple voltage divider handling 12V inputs. For my next prototype I think I will go for a comparator solution instead, allowing any signal between 3.3V and 24V. What do you think?
Hope it answers your questions.
The original Knock Shield have no additional hardware for trigger / tach inputs so it is relying on the digital pin of the Arduino which means you need a signal compatible with the microcontroller of the Arduino you are using.
It is no secret that I am working on the updated Knock Shield 2 that will feature signal handling for this input. The first prototype had a simple voltage divider handling 12V inputs. For my next prototype I think I will go for a comparator solution instead, allowing any signal between 3.3V and 24V. What do you think?
I guess this is the benefit of an Arduino based knock monitor compared to an aftermarket / tuning solution. You can interface using the sensors you have available and program it to work the way that is most suitable for what you want it to do.DizTheFiddler wrote: ↑04 Feb 2021 11:02- Can knock shield start the window before the rpm signal indicates TDC (or slightly off) of each cyl or only a few degrees after?
- I guess i can use a Arduino Tiny Every for reading the 0-5V signal of the chip too, if i can hook the shield up to the power supply and ADC?!
Hope it answers your questions.
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
Re: Please explain the thing
More of a question not related to a signal coming directly from e.g. the coil: if one is already using an EMS that outputs an angle-angle based 5V knock window, could this be used with this new interface?Christian_Bylund wrote: ↑04 Feb 2021 12:42It is no secret that I am working on the updated Knock Shield 2 that will feature signal handling for this input. The first prototype had a simple voltage divider handling 12V inputs. For my next prototype I think I will go for a comparator solution instead, allowing any signal between 3.3V and 24V. What do you think?
Or could I interface this to the Arduino Uno already now? I already have the current Knock Shield, but have too little knowledge of the electronics side...
Thank you!
BR,
Pascal
Re: Please explain the thing
Maybe answering my own second question: I suppose an angle-angle based signal would - as per the Youtube video on the interrupt example - just be connected to the TACH_INPUT_PIN (2) and then one could attach a second ISR to the falling edge of this signal.
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Please explain the thing
Hi Pascal,
I suggest you also see how commercial knock sensors are configured on safe maps before starting to rely on the knock output. There are plenty of videos on YouTube.
Good luck!
Exactly, if the Arduino you are using is happy with the signal it will work. You can configure to trigger on rising or falling edge of any signal.
It should work fine, you can program to measure between triggers or trigger and a certain time or speed configured. As you can see in the manual the DSP have many levels of configuration. The important thing is to find a reference level that is sensitive enough on a safe map.
I suggest you also see how commercial knock sensors are configured on safe maps before starting to rely on the knock output. There are plenty of videos on YouTube.
Good luck!
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB
-
- Posts: 3
- Joined: 02 Jan 2021 12:39
Re: Please explain the thing
Thank you very much Christian,
since i design a platine with a arduino nano every for my car anyway, i want to evaluate the 0-5V signal for the Knock Shield with the nano too. Which wires do i need to connect? I guess
- 5V supply
- GND
- 0-5V signal, which is TPIC8101 UA??
Anything else needed?
Regards
Dieter
since i design a platine with a arduino nano every for my car anyway, i want to evaluate the 0-5V signal for the Knock Shield with the nano too. Which wires do i need to connect? I guess
- 5V supply
- GND
- 0-5V signal, which is TPIC8101 UA??
Anything else needed?
Regards
Dieter
- Christian_Bylund
- Posts: 270
- Joined: 07 Mar 2015 18:09
Re: Please explain the thing
I think you should have a look at the schematics. What is minimum is of course supply and ground. The controller needs to be initialized after power up so you need SPI for that. Last you are going to need the hold pin to set the timing window and the UA to measure the output.DizTheFiddler wrote: ↑16 Feb 2021 21:03Since i design a platine with a arduino nano every for my car anyway, i want to evaluate the 0-5V signal for the Knock Shield with the nano too. Which wires do i need to connect?
Good luck!
Best Regards,
Christian Bylund
Bylund Automotive AB
Christian Bylund
Bylund Automotive AB