16F877@4Mhz calculate Pulsin to RPM


Results 1 to 25 of 25

Threaded View

  1. #17
    lwindridge's Avatar
    lwindridge Guest


    Did you find this post helpful? Yes | No

    Default

    Yet another question.

    I've been using a variation on ccpx2.bas to find the pulse length in uS and working the math back from there.
    BUT, I don't seem to get a very reliable figure from this (eg. I have a 29hz input which is roughly 870rpm but it seems to equate to something wildly out eg. 255??).

    I've attached my current code and if someone can suggest a better way of taking the rpm reading, processing it, reading the 2 adc ports and telling a timer to delay the incoming signal on an output port (eg. 44us for a 2 degree delay at 7500rpm) and display some values on an LCD then I'd be more than welcome for the additional input.

    Fingers crossed it's just my maths playing up!!

    Leigh
    Attached Files Attached Files

Similar Threads

  1. Interrupt RPM and Taylors Elapsed time on 18F4620
    By Tobias in forum mel PIC BASIC Pro
    Replies: 70
    Last Post: - 3rd February 2010, 16:12
  2. Slow code needs a tune up
    By Tobias in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th January 2010, 15:05
  3. Pulsin vs. Interrupt RPM measurement
    By Tobias in forum General
    Replies: 1
    Last Post: - 31st December 2009, 01:29
  4. 16f877A and tmr1 external crystal question
    By comwarrior in forum General
    Replies: 3
    Last Post: - 13th July 2009, 00:40
  5. RPM - DIV32 Problem
    By davewanna in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 11th April 2008, 04:33

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