Accelerometer Sensor


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Actually, there are ways of calculating the distance using accelerometer data.

    The only important point is that you should not turn the device ON/OFF while it is moving.

    1. The user must make sure that the device is first powered up when its speed is zero.
    2. Then, you can log the data until it tells you that the device is no longer speeding up.
    3. Then you know the formula to calculate the speed with the last data you received. Start a timer here.
    a. If the subject hits somewhere, and stops suddenly you should time its speed to understand that it hit something and stopped.
    4. Stop the timer when the device tells you that device speed is decelerating.
    5. When the device tells you that device is no longer decelerating then
    a. the subject is either stopped or
    b. the subject speed is constant.

    You can use basic math to distinguish between a and b.


    ____________________________________
    Last edited by sayzer; - 25th August 2008 at 16:24.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Need a cheap touch sensor idea.. here it is
    By mister_e in forum Code Examples
    Replies: 20
    Last Post: - 16th April 2016, 22:42
  2. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  3. PICBASIC PRO-coding for wireless sensor node
    By syazila in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th February 2009, 00:05
  4. Replies: 6
    Last Post: - 18th January 2008, 08:17
  5. RH/Temp Sensor Example Code
    By Bruce in forum Code Examples
    Replies: 7
    Last Post: - 15th June 2006, 15: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