AW: [basicstamps] pulse in/windspeed meter
Archiver
Posts: 46,084
Hi there,
for applications like this I prefer the COUNT command. If you dont't have to
measure in very small intervals, which I guess is not so when you are
measuring wind, the COUNT results are much more reliable then the PULSIN
ones because you do not only measure one incident.
Try:
EXAMPLE:
count 0,100,sample 'count the incoming pulses on pin 0 for 100ms
debug? sample
goto example 'once again
Let me know what you find out. Have a nice day, Uli
Urspr
for applications like this I prefer the COUNT command. If you dont't have to
measure in very small intervals, which I guess is not so when you are
measuring wind, the COUNT results are much more reliable then the PULSIN
ones because you do not only measure one incident.
Try:
EXAMPLE:
count 0,100,sample 'count the incoming pulses on pin 0 for 100ms
debug? sample
goto example 'once again
Let me know what you find out. Have a nice day, Uli
Urspr