Guide on flow sensor application


Results 1 to 9 of 9

Threaded View

  1. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: Guide on flow sensor application

    Hi,

    1) Sure, configure TMR1 as a counter and feed the signal to the T1CKI (Timer 1 Clock Input) pin instead of T0CKI.
    2) It's possible for sure but how to do it "the best way" depends on the frequency of the incoming pulses from the sensors and on what else the PIC needs to do. For example, use TMR0 and TMR1 to count pulses from two of the sensors and use two IOC-pins for the other two. Another option is to use four IOC-pins, one for each sensor. Another is to use four external F/V converter chips and feed the output voltage from each to the ADC of the PIC. Yet another is to use the count command on four pins in sequence.

    /Henrik.

    EDIT: OK, just saw that the output frequency is fairly low. ~45Hz at full flow, dutycycle of 40-60%. So, as long as you poll the inputs at at least ~120Hz (timer interrupt for example) you should be able to count pulses in software.
    Last edited by HenrikOlsson; - 8th March 2013 at 10:03.

Similar Threads

  1. Microchip Tips ‘N Tricks Guide
    By Heckler in forum Documentation
    Replies: 1
    Last Post: - 6th January 2015, 05:24
  2. fuel flow sensor?
    By droptail in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 20th May 2009, 04:01
  3. Mass Air Flow Sensor Data
    By jrudd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st January 2009, 09:35
  4. hot water flow sensor
    By jessey in forum Off Topic
    Replies: 16
    Last Post: - 24th January 2007, 04:05
  5. Windows XP API guide
    By mister_e in forum Off Topic
    Replies: 2
    Last Post: - 9th July 2006, 19:55

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts