You are reading a single comment by @Nic and its replies. Click here to read the full conversation.
  • Not quite sure I understood? You mean it's too sensitive?

    Sorry, let me clarify. My implementation is:

    • If acc.z passes -6000 and flap state is not out then he's exited the house.
    • If acc.z passes 6000 and flap state is not in then he's entered the house.
    • If acc.z is between +/- 2000 and flap state is not closed then the flap has swung close.

    This accounts for reverse swing when the flap shuts, and for us tapping the flap and realising we haven't locked it correctly (4 way locking mechanism).

    By adding your power saving example just gently tapping the puck gives excessive z axis readings. Opening the cat flap just a cm and letting it swing back shows him as: leaving, entering, leaving, entering because the z-axis readings are that extreme.

    I haven't quite got my head around all the options so I'm not quite sure the impact they're having to cause this.

About

Avatar for Nic @Nic started