Measuring pulse accurately
muttvac
Posts: 14
in Propeller 1
Hi All,
I would like to measure a rotating disk accurately. I will use a photo-transistor to trigger counter. Should I use two counters?
I would like to measure a rotating disk accurately. I will use a photo-transistor to trigger counter. Should I use two counters?
Comments
Depends on what you are measuring, the programming language, and how fast the disk is turning. Two counters would work for any of those choices.
Good point.
The OP can connect a GPS 1pps to another COG, and measure that too, then calibrate the XO to well under 1ppm.
Should do for most disk measurements, maybe even thermal expansion ones... ?
Single counter to count pulses and waitcnt for timing. Spin is fast enough for this so C or pasm would be more than fast enough.
You also need to extract phase info, as well as speed, but maybe a skewed-cup design plus a variant of single-track-gray-code, can give velocity wobble with enough phase information to get wind direction ?
Elevates the timing from fairly trivial, to something more Prop like
It looks for a positive edge to trigger counter b, just change it if you need too.