I put a reed switch ( https://en.wikipedia.org/wiki/Reed_switch ) on the handle of a measuring wheel (perambulator). The reed switch will be activated up to around 20 times per second (every 50 ms). The sampling rate on my data acquisition is 200 Hz (every 5 ms). The DAQ is made with an IOIO OTG ( https://en.wikipedia.org/wiki/IOIO ) and the analog input I use can handle (0-3) V. Should I go for a Schmitt trigger or do you have a more elegant solution on how to have a long enough output signal from the reed switch to safely sample it?
I am only interested in the time between activations of the reed switch. I plan to put a LED and a beeper to get a short noise and a flash of light for each. The input level to the IOIO OTG will be the 0.7 V due to the LED. There are 9 mm diameter neodymium magnets mounted on the wheel and the wheel has a circumference of 1 m. I put 10 magnets on the wheel and the approximately highest speed I will measure is 2 m/s. Then the wheel rotates twice per second and thus I have up to around 20 activations of the reed switch per second.
Since we know the circumference of the wheel (1 m) and the 10 magnets are evenly spread out, knowledge of the time between activation of the reed switch will give a good approximation of the speed.
Edit: Changed the text regarding the placement of the reed switch. The reed switch is next to the wheel and the 10 magnets are on the wheel. I want to have 10 magnets to get a good estimation of the walking speed of the person holding the measuring wheel.
I guess I could use a digital input instead. I didn't consider it would be a better option in this case.
Maybe I should clarify what I mean about 1 m circumference and 10 magnets. Between every reed switch output the wheel has travelled 10 cm. If the wheel rotates 2 times per second at fast walking speed (2 m/s) the reed switch will close 20 times per second.