speed measure


Closed Thread
Results 1 to 10 of 10

Thread: speed measure

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: speed measure

    read the manual on PulseIn, and you will need some kind of Encoder on the wheels.
    Chris


    Any man who has accomplished anything in electronics at one time or another has said... " STOP! WAIT! NOOO! Dangit.... Oh Well, Time to start over..."

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


    Did you find this post helpful? Yes | No

    Default Re: speed measure

    Hi,
    I don't see the need for an encoder.... he has two sensors detecting the wheelchair, they are spaced 1m apart and he wants to measure the time it takes the wheelchair to travel that 1m, then convert that to velocity.

    However, more details are needed to come up with a suitable solution.
    At the specified top speed of 20km/h it takes 180ms to travel 1m. But at the specified minimum speed of 0.0km/h it takes forever. Obviously you can't time that no matter how many bits you have. So you're going to have to specify a minimum speed other than 0. Next question is what requirements you have when it comes to resolution, is it enough if the display shows the speed in steps of 1km/h or do you need steps of 0.001km/h - or perhaps something in between?

    Since you're using a 16F part you're limited to WORD sized variables (without resorting to the N-Bit routines or similar).
    Are the 1m distance fixed or can you move the sensors closer/further apart? Doing that could possible make the math easier and/or the result more accurate.

    /Henrik.

Similar Threads

  1. how to measure RPM and SPEED at the same time
    By teeeeee in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2012, 08:34
  2. Pic Speed / Instruction Speed etc
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 4th July 2012, 20:19
  3. Replies: 0
    Last Post: - 7th August 2008, 09:02
  4. measure the xtal
    By savnik in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 8th June 2007, 10:22
  5. Pulse measure
    By Acetronics2 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th August 2004, 06: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