Page 1 of 1

SIMPLE RPM detector Arduino and Knock Sensor

Posted: Sat Nov 07, 2020 2:33 am
by wizard
Please Help im simply after an approximate RPM from a car knock sensor with an arduino..
the knock gives a lot of 'noise' and difficult to just get approximate RPM from.... nearest 200 Rpm is fine! for what I need.
i am trying a comparitor going to a schmitt and then using arduino (black pill M4 Processor) pulse time frequency counting.
It works perfectly with a function oscillator..... very accurate to 1Hz..... but then on a knock sensor.... eeeek! too much noise.... any ideas? without going to a TPic8101 or similar dedicated chip. any ideas? please. :)

Re: SIMPLE RPM detector Arduino and Knock Sensor

Posted: Sat Nov 07, 2020 5:49 am
by AndreyB
I guess I am just not getting it but it seems a bit impossible to read RPM based on knock sensor?! Also, WHY?!

Re: SIMPLE RPM detector Arduino and Knock Sensor

Posted: Sat Nov 07, 2020 8:09 am
by Gepro
I don't think that I can help you, but maybe your knock sensor is badly placed, if you put it on the cylinder 1, you have maybe less parasite noise that in the middle of the block.
DO you use a full band bosch sensor ? They are know to be the best.

I am using a lilknockmeter, and it detects RPM, I don't know how, but it use an atmega cpu, just like arduino. You can maybe take a look at how it does.

Re: SIMPLE RPM detector Arduino and Knock Sensor

Posted: Sat Nov 07, 2020 10:16 pm
by Fonzie
I assume that the knock sensor works as a kind of microphone and delivers an analog signal.
If so, amplifying, digitizing and then applying a FFT would give the fundamental frequency of that signal that, I think, should be related to the RPM you're looking for.