Here in figure, we can see two waveforms.
Below one is waveform of raw RPM signal. I want to find square waveform which based on that LOW INTERVAL of RPM signal and length must vary according our requirement. So for that purpose, I just made inverter circuit using 74HC14 and Low pass filter(for removing noise).
As a result of that circuit, I got Upper one waveform means square wave signal. Now, you can see it has also one spike beside square wave(I don't want that). And I can't vary length because inverter circuit gives only perfect inverting signal.
Is it possible to make square wave like this and also vary the length of that square wave with help of Arduino?
Here, I want to use Arduino because I have to vary the length of square wave with help of programming. For example, if I want 10ms square wave then just enter value 10 in programming then generate 10ms square waveform. Rising edge must be same. And right now, I have no clue or idea how to do this.
If possible then please give me some suggestion how to do this.