Accelerometer Sensor


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Skimask what bandwith should I use ,between 1Hz to 2Khz ?

    I use this for the moment:

    Main:

    ADCIN 0, adval[0]
    Pause 1
    ADCIN 1, adval[1]
    pause 1
    hserout ["A",DEC3 Adval[0],"B",DEC3 Adval[1],13,10]
    Pause 50
    Goto Main

    Maybe I can use this

    Main:

    ADCIN 0, adval[0]
    ADCIN 1, adval[1]

    hserout ["A",DEC3 Adval[0],"B",DEC3 Adval[1],13,10]
    Pause 30
    Goto Main

    Regards Pesti
    Last edited by Pesticida; - 21st August 2008 at 21:28.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Ok,

    Now when I correct understand I must the first Acceleration Change to measure How long the Acceleration is during then I know the distance for that Time for ex. 1 Seconds.
    And I can now found the distance for one second,when the speed is constant then is the Acceleration = 0 and after 10 Seconds I can found the final Distance!

    I hope is my thinking correct!

    Regards

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hello,

    Ok I'm coming now to the conclusion that the G sensor is not the really thing for measure if a Elevator is moving and how fast is moving ! :-)

    Maybe have some one another better Ideas,I'm using for the moment current measurement to see if the Elevator is moving,but I'm searching for a Modern Solution that give me more Information like ~speed,Movement,Vibration and so on.

    Thanks

    Regards Pesti

  4. #4
    Join Date
    May 2007
    Location
    Area 71
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    You can add optical encoder to the main motor shaft for speed, acceleration measurement . Vibration can be measured with accelerometer

  5. #5


    Did you find this post helpful? Yes | No

    Default

    An accelerometer will just measure the time is takes to go from one speed to another speed, not the distance. It has no way of knowing how far it has traveled unless it is constantly accelerating and decelerating.

  6. #6
    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

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by CocaColaKid View Post
    An accelerometer will just measure the time is takes to go from one speed to another speed, not the distance. It has no way of knowing how far it has traveled unless it is constantly accelerating and decelerating.
    Hi, KKKid

    Not really true ...

    if you integrate accel*time, starting from zero ... you will be stopped for integrated result = 0 ...

    But, as in real life, there are always calc. roundings and little sensor errors ... you never get a true detection.

    The Proof : Model planes Heading Lock Gyros ... Yess !!! The Heading is good ( or considered good ) for a Zero integration sum ...

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

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Ok, I stand corrected. You could use one to do the calculations but it would have to work perfect. I talked to an aviation engineer about this and he laughed. It is possible, but the calculations would be nasty. For example, what happens when the elevator is going up or down and some kid jumps in the elevator? Unless the math is done precisely and the event cancels itself out then you'll end up with and error in you distance.

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 : 1

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