You are reading a single comment by @Nic and its replies. Click here to read the full conversation.
  • I wonder whether in that mode the data reported is somehow the difference in acceleration between that and the last event?

    Ah, perhaps! How are individual events defined? The literal last movement, or a pause from a significant movement?

    I tried your code, and simply added the conditional for the z-axis and nothing more and still got similar results (so I also tried higher G, but similar results too):

    OUT: -12203
    CLOSED: 1539
    IN: 13687
    CLOSED: 3942
    

    Interestingly just opening the flap fractionally and letting it close produced results like:

    OUT: -32750
    CLOSED: 361
    IN: 32536
    CLOSED: -2171
    

    With the existing power saving configuration I tried my approach of adding a 5 second lock once an IN/OUT action has triggered. I only ever pushed the flap out and got this:

    OUT: -6809
    CLOSED: -1454
    OUT: -7337
    CLOSED: -1391
    OUT: -9631
    CLOSED: -97
    OUT: -6141
    CLOSED: -433
    OUT: -17430 -> Hugely inflated reading.
    CLOSED: -324
    IN: 7935 -> WHAT!? It has registered an OUT as IN, following the last hugely inflated reading.
    CLOSED: 548
    OUT: -7828
    CLOSED: -1584
    
    SOME MORE
    
    OUT: -7297
    CLOSED: -441
    IN: 7833 -> In registered again, normal out reading previously.
    CLOSED: -1446
    
About

Avatar for Nic @Nic started