The sensor connected to the A/D normally produces a constant , fixed output. The A/D output is therefore also fixed at this point in time. When a flow is present, the sensor produces a sin wave output whose frequency is dependant on the flow rate. The A/D output produces a series of varying numerical values if plotted against time would look like a sin wave. I have a program that will detect the numerical peak of each sin wave and I can count these peaks. Right now, I am using a timer (TMR0) with interrupts to generate the time base. This timer is activated when flow starts. The count /time will give me the frequency. The program will have a variable trip value i.e. when f >= trip then alarm. My program is almost operational with a few bugs remaining to be worked out.
I have built this circuit using Op Amps etc., and now I would like to keep up with the times and reduce the number of components using a PIC.
I wish to thank all those who have contributed and still might contribute to this thread.
R.W.S.
Bookmarks