I'm new to both this forum and electronics and would appreciate some help with getting started on a problem.
I have the waveform below coming from an anemometer that delivers pules with wind speed.
As you can see, there is a lot of noise on the pulses and it ranges from approx 1.8V to 3.2V.
I need to be able to count the swings using an ESP32.
Where should I start to clean this up and change the range from 0V - 3.3V to read and count with a GPIO input? I'm guessing some kind of filter but I'm not sure where to begin with that.
I only need to count the large pulses, not the noise pulses.
Any help will be much appreciated.