Hello All, I am not sure if my problem has a hardware or software solution but any help will be appreciated.
I am experimenting with the Modern Devices Wind Sensor: http://shop.moderndevice.com/products/wind-sensor
in the attempt to make a midi wind controller with Arduino.
The sensor is very responsive and has a nice resolution BUT, a very slow decay time. In other words, when you stop blowing, the output takes several second to reach baseline. If I take the output at face value, my instrument would keep playing for several seconds after I stop blowing.
I am attaching a graph I obtained by plotting analog read vs. time. In the upper graph I gave four quick "pulse" breaths, in the lower one I did a sudden start, steady blow for a few seconds and sudden stop. As you can see, in either case it takes up to 10-15 seconds to go back to baseline.
The topic has been discussed a few month ago @ modern devices forum but without a real solution, and my fiddling with software (since I am a total newbie when it comes to electronics) didn't carry me very far.
Since I suspect this is hardly a unique problem, I wonder if somebody can point me to a software algorithm or an hardware solution to obtain nice square waves (sharp attack, sustain and, what's missing here, a sharp release).
Thank you