Skip to main content
Visitor II
December 18, 2020
Question

IIS328DQ Threshold Settings

  • December 18, 2020
  • 2 replies
  • 2313 views

For IIS328DQ, if the threshold is set to 0.25g, does this mean that it will interrupt if either X, Y, or Z changes more than 0.25g? Our application is to detect a vehicle is moving or not. What is the best threshold to set for this application?

    This topic has been closed for replies.

    2 replies

    ST Employee
    December 18, 2020

    Hi @KTeng.1​ ,

    you can set the direction of the threshold crossing by selecting the desired axis (x, y, z or a combination of them) in the INT1_CFG (30h) register (datasheet, p. 30).

    For example, setting the INT1_CFG = 22h, you will receive an interrupt whenever the x axis data or the z axis data exceed the chosen threshold (that you can configure in the INT1_THS (32h) register).

    A proper way to detect whether a vehicle is moving or not would be use 2 axis on INT1 and 1 on INT2: supposing the chip is planar, the x and y axis will detect the horizontal movement of the vehicle, and a reasonable threshold could be 200 or 250 mg as you suggested, while the z axis for monitoring the out-of-plane vibrations, and in this case the threshold could be a little higher, 300 or 350mg.

    Please let me know if these suggestions can help you.

    -Eleon

    KTeng.1Author
    Visitor II
    December 20, 2020

    So if I set the threshold for z-axis to 300 or 350mg, any difference of forces between time at t1 and at t2 more than 300 or 350mg, the interrupt event will occur?

    ST Employee
    December 21, 2020

    Hi @KTeng.1​ ,

    not exactly... I mean, along Z axis you have the 1g (=1000mg) gravity value, so you have to take it into account. The interrupt occurs when the absolute (and not the t2-t1 relative) value of the acceleration exceeds the defined threshold: for this reason, it is maybe better to configure the high pass filter in the CTRL_REG2 (21h) register (HPM1, HPM0 bits), specifically for the INT1 or the INT2 (HPen1 or HPen2 bits), depending where you have configured the z axis interrupt.

    -Eleon

    Visitor II
    December 24, 2020

    Hi...On auto, the overview time is dictated by the heater controls. This indoor regulator gives you the alternative to supersede the heater controls by choosing a once-over time rather than the default esteem modified into the heater controls. I have dig set on auto for both warmth and cool. Additionally, in the hardware design - fan, you can choose indoor regulator or HVAC where HVAC implies the heater will control how the fan works when there is an interest for warmth or cool.

    https://www.7pcb.com/