Look at the images.
The PIC is going to meassure the time between the two "trig pulses" but i have a "crap" that is disturbing. I suppose i could get rid of it with a RC Filter, but I am so terribly bad at analog electronics.
I suppose that the 2ms pulse will look like the pulse in signal2.jpg when using a RC filter.
But that's no problem. So i just want to get rid of the crap so there is just free space between the two trig pulses!
How do i figure out what values i need for this on the resistor and on the capacitor.
And what kind of capacitor should I use? A electrolyt or something else?
Please tell me if you see something else in the scematic that is not needed or used wrong.
I can also tell that this signal comes from a motorcycle tachometer, and this circuit will be used as a shiftlight.
The time between the two pulses differs so much so i can't just set a minimum time(in software) to ignore the "crap pulse", because at high RPM the time between the 2ms pulses will be very small!
The PIC is going to meassure the time between the two "trig pulses" but i have a "crap" that is disturbing. I suppose i could get rid of it with a RC Filter, but I am so terribly bad at analog electronics.
I suppose that the 2ms pulse will look like the pulse in signal2.jpg when using a RC filter.
But that's no problem. So i just want to get rid of the crap so there is just free space between the two trig pulses!
How do i figure out what values i need for this on the resistor and on the capacitor.
And what kind of capacitor should I use? A electrolyt or something else?
Please tell me if you see something else in the scematic that is not needed or used wrong.
I can also tell that this signal comes from a motorcycle tachometer, and this circuit will be used as a shiftlight.
The time between the two pulses differs so much so i can't just set a minimum time(in software) to ignore the "crap pulse", because at high RPM the time between the 2ms pulses will be very small!