Converting period to Miles Per Hour


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Oct 2011
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    Quote Originally Posted by Acetronics2 View Post
    http://sfodesigns.com/aboutsfodesigns.html

    that could match the question ... and create some ...

    Alain
    Hi,

    as always, I'm either giving too much information, or not enough....

    This is the rear wheel of a motorcycle. The bolts, 5 in all, mount the rear pulley (belt drive) to the wheel. The circumference I provided is an actual measurement with the rider mounted. I realize that tire pressure, load, and temperature all have an effect on circumference, but i'm not that worried.

    The speed can reach 100 mph in actual riding.

    Thanks,

    Roy

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


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    Quote Originally Posted by SFOdesigns View Post
    Hi,

    as always, I'm either giving too much information, or not enough....

    This is the rear wheel of a motorcycle. The bolts, 5 in all, mount the rear pulley (belt drive) to the wheel. The circumference I provided is an actual measurement with the rider mounted. I realize that tire pressure, load, and temperature all have an effect on circumference, but i'm not that worried.

    The speed can reach 100 mph in actual riding.

    Thanks,

    Roy
    mhhhhh ...

    belt driven ??? ...

    or it's one of these awful Harleys ... or it's a real vintage lovely one ! ( a steam powered one ??? )

    100mph ... a bit over 40k pulses an hour

    11, ... Hertz @ Maximum ... then, the pulse duration method is to use.
    i'd use some soft dividers switching for the basetime choice vs speed.

    the 46K22's Timer 0 looks fine for that purpose ...

    But do not ask too much to a Kawa H1 owner ( yesss ... the 3 smoking cylinders !!! ) to do for a ... Harley ...

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  3. #3
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    I think Alain has digressed to thoughts of wind in his hair and horsepower under his seat... "Write when you find work!" - is an old expression used by my instructors to recall attention when a student's mind drifted away.

    More to your concern, Roy: I think that you will want to pick a sample time that yields results near full scale as at high rotations per hour (RPH), small errors will compound quickly. Perhaps you will consider changing the calculation period over different speed ranges as 0 - 10 MPH, 11 - 25, 25 - 50, 50+ (or some such) so that your results don't follow Alain down the path to fantasy .

    Oh, belatedly I see this is Alain's suggestion as well. At least he has not yet disappeared over the horizon.

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


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    Quote Originally Posted by Amoque View Post
    Oh, belatedly I see this is Alain's suggestion as well. At least he has not yet disappeared over the horizon.
    you're a newbee here ... so, you're forgiven !!!

    How sad is life without a touch of Humour ...

    Alain
    ************************************************** ***********************
    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
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    Write a small program to count pulses, and give yourself a reset button,
    go drive a mile. Some places have markers on the road to do this to check speedometer accuracy.
    Then you will know in the real world.

  6. #6
    Join Date
    Oct 2011
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    Ok, here's my thoughts, after reviewing all of your (mostly) thoughtful replies:

    First of all, I don't want to tie up my processor while a count takes place.
    Second, here's what I came up with. Please poke the required number of holes in it.

    My tire circumference is 78.4" and I have 5 rotor bolts. so between any two pulses, the tire travels 15.68". If I measure the time it takes to travel 15.68" and multiply it by 4040.82, I should have the mph. I divided 15.68 into 63360, which is the number of inches in a mile.

    Does that make sense?

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: Converting period to Miles Per Hour

    One thing you might consider, look at mounting your sensor before the rear tire. You will get better resolution. Or make a reluctor wheel attached to the rear tire. For example, when I was doing data acq on race cars, it was normal to detect drive shaft rpm with a four count reluctor wheel on the driveshaft. I mounted the hall effect sensor on the housing of the rear end and counted ring gear teeth to determine drive shaft rpm. I would get 20 pulses per rev compared to 4.

Similar Threads

  1. Measuring Period of a pulse
    By c_moore in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th February 2012, 05:15
  2. DS1307 12-hour mode with AM/PM divisor
    By JNOR07 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 30th August 2007, 13:26
  3. MILES TAG 2xx code problems
    By sphinxifm in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th June 2007, 15:22
  4. Time Period of Timer1
    By arnol34 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 4th May 2007, 00:31
  5. Hour and minutes
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th February 2007, 03:50

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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