SIMPLE RPM detector Arduino and Knock Sensor

Hardware inside and outside of the ECU
Post Reply
wizard
Posts: 1
Joined: Sat Nov 07, 2020 2:19 am

SIMPLE RPM detector Arduino and Knock Sensor

Post 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. :)
User avatar
AndreyB
Site Admin
Posts: 14334
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: SIMPLE RPM detector Arduino and Knock Sensor

Post 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?!
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Gepro
Posts: 100
Joined: Sun Nov 01, 2020 2:15 pm
Location: France

Re: SIMPLE RPM detector Arduino and Knock Sensor

Post 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.
User avatar
Fonzie
Posts: 13
Joined: Sun Jan 28, 2018 3:06 pm
Location: 39000 Lons-le-Saunier, France
Github Username: duparq
Contact:

Re: SIMPLE RPM detector Arduino and Knock Sensor

Post 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.
Post Reply