SunSpot: MovementDetection

Problem:
Method "thresholdExceeded" always works even though we didn't move the spot or move the spot when it is in deepsleep.

Cause:
I suppose that the events occurred when we do move and wait for sending the messages when the receiver is available.

Solution:
Disable ThresholdEvent before starting in deepsleep mode -- accel.enableThresholdEvents(IAccelerometer3D.ALL_AXES, false);

Comments

Popular posts from this blog

Pretest62_2

Sometime, Sometimes ใช้ยังไง

verbs of perception/sense กริยาที่บอกประสาทสังผัสทั้งห้า