How to read Speedo at low speed


Closed Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    The problem I have is the pic has to act quickly, the engine revs very quickly, and if it spends 1 second counting pulses, it will probably be over-revving by then.
    Of course, at 1 kph, the pulse period is 2.2 seconds, and that's how often you can update the display. But at 1kph, you don't need a faster refresh.
    Hi, folks ...

    Problem is Here, not a display problem ...

    You need quasi " real-time updated speed " ( Cf Post # 2 ) ...

    Alain

    PS, Don't tell " Davewanna" , BUT

    "Dave would have liked to" ... Humour !
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Problem is Here, not a display problem ...

    You need quasi " real-time updated speed " ( Cf Post # 2 ) ...
    I've tried ... but I don't understand what you mean Alain.

    He's reading the Speedo.

    If the engine revs fast, then so will the speed sensor.
    And you'll no longer be going 1kph.

    BTW, where'd he go.
    <br>
    DT

  3. #3
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default sorry

    Sorry all! Something unexpected has come up over the last 2 days. I didn't realise I had this many replies! I haven't even had a chance to read over everyone's suggestions yet... I will go through it all and post again.

    Very thankful for all the assistance!

    Cheers
    Dave

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Wink The problem terms problem ....

    Quote Originally Posted by Darrel Taylor View Post
    I've tried ... but I don't understand what you mean Alain.

    <br>
    Hi, Darrel

    At school, I just learnt to carefully read the Problem terms :

    sampling every 100ms
    The unit is based on a 16F877a running at 4mhz (I can run it faster if I have to) It also controls the air-conditioning & thermo fans in a climate control kind of way, aswell as having a 20x4 display that gives me info on engine stats and temperatures.
    I do know forumers are not so clear in what they look for ... but I do whith what I have under the eyes ...

    Regards

    Alain
    Last edited by Acetronics2; - 4th October 2009 at 12:29.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default

    Darrel,

    From your advice I guess my quickest easiest way of making this work is with pulsein (seeings I have very little interrupt knowledge yet)

    My reference to 21kph was if I use COUNT to count pulses over a 100ms period.

    I will try this in the next few days, with a pulsein timeout period of about 200ms (to prevent all the other functions from slowing down too much.)

    I still haven't had enough time to go over what everyone has posted. But rest-assured it is appreciated.


    Thanks!

Similar Threads

  1. Cleaning up code
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2009, 08:14
  2. SEROUT WORD variable problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th April 2009, 12:20
  3. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 16:23
  4. Replies: 14
    Last Post: - 26th September 2007, 06:41
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 04:14

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