whats the best way ??

whats the best way to read frequency(0-200Hz) pulse output of a flow sensor using microcontroller???

regards, aparna

Reply to
aparna
Loading thread data ...

Carefully.

-- Fermez le Bush

Reply to
Salmon Egg

Perhaps with a separate counter. Then just read the value of the count when desired. Many micro's that I've seen include various commonly needed 'extras' such as this. If the signal is 'noisy' you may need to condition the pulses somewhat before putting them to the clock input of a counter (schmidt trigger comes to mind as one way, or a one-shot circuit to limit the upper rate of triggering).

Some 'one-wire' devices do this and store the results internally. When queried (over the serial line), they respond with a hex value.

daestrom

Reply to
daestrom

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.