1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Request (Feature) Collision/crash filter activation

Discussion in 'SimTools DIY Version' started by Hocky, Jan 28, 2020.

  1. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,347
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,699Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    The new Spike Filter works by detecting spikes in position data larger that the defined level (most likely crashes) and it will automatically activates the Force Offline mode, that places the actuators in seek position mode until all motors catch up with live motion data. So for the duration of the crash the motors will avoid doing any intense jolts and most likely the motion will come back on when the vehicle is standing still or the motion levels are below the spike level. It should work wonders in long duration crashes like when you have rollover down a bank for example...


  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,897
    Location:
    London
    Balance:
    11,610Coins
    Ratings:
    +458 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    How does the maths work for a spike remover ? Do you track moving average and if you get a large gain you cap the value ?

    What does the maths look like ?
  3. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,897
    Location:
    London
    Balance:
    11,610Coins
    Ratings:
    +458 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Thinking about this is may be easy to filter the data

    Use a circuit board that has 2x serial ports

    One for data in and one for data out.

    Use 6x knobs as a cut off filter

    It reads the input and caps it if it exceeds the value for that axis

    Then the cleaned data is passed on to the serial port

    With some programming should work with any protocol
  4. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,347
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,699Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    Its a rolling window of values that is tracking the distance difference of the current position of the actuator and the real time positions from the motion software.

    If the level of difference (spike) is larger than the defined window on ANY of the actuators, it will throw the system in offline mode. Under offline mode the actuators move slower with injected artificial pulses following the real time data. When the levels of spike fall on ALL actuators and all actuators current positions match the real time positions, the system switch back to online, allowing the servos to run full speed vibrations and motion again.

    Its more complicated than it sounds... I know... I hope it makes sense... I just got the idea how this will work, and decided to make it. about 2000 additional lines of code later, its better than I hoped.

    See example graphic of rolling window of allowable motion, that will activate the spike filter if distance between two consecutive positions is above 8000 positions (total range is 65535 positions).


    IMG_20200301_081259.jpg
    • Like Like x 2
  5. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,347
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,699Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    I wish it would be so easy... my post explains why its more that just a "low pass" filter...

    Seriously, without the double control streams running in the AMC to easily switch between online and offline motion data (artificially generated), I would never be able to get the spike filter right. Also you have to be able to read the real time data while tracking the absolute current position of the actuator, while its moving with capped speed to seek the online data... everything has to be combed carefully together for this to work seamlessly !
    • Like Like x 2
  6. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,347
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,699Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    • Like Like x 1
  7. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,347
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,699Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF
    And a longer version from CV (PT Motion Owners Club group):

  8. djbart82

    djbart82 New Member

    Joined:
    Nov 6, 2019
    Messages:
    21
    Occupation:
    Operador
    Location:
    28029, Madrid
    Balance:
    210Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    3DOF, Motion platform
    each step how much mm equals?
  9. Thanos

    Thanos Building the Future one AC Servo at a time... or 6

    Joined:
    Jul 6, 2017
    Messages:
    1,347
    Occupation:
    Electronics Engineer
    Location:
    United States
    Balance:
    2,699Coins
    Ratings:
    +1,043 / 9 / -0
    My Motion Simulator:
    AC motor, Motion platform, 4DOF, 6DOF