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.
SIMPLE RPM detector Arduino and Knock Sensor
- 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
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
Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Re: SIMPLE RPM detector Arduino and Knock Sensor
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.
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.
- 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
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.
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.