Patent ID: 8121808

Claim:
A motion module for incorporation in a portable device, comprising: a processor module, including a processor and a processor readable memory disposed to store data and instructions for execution by said processor; a motion sensing module in electrical communication with the processor module, said motion sensing module including: an accelerometer disposed to provide an analog acceleration signal associated with one or more axes of motion of said portable electronic device; an analog to digital (A/D) converter disposed to receive said analog acceleration signal and generate a plurality of digital acceleration values; and a signal processing module disposed to: generate, from said plurality of digital acceleration values, a plurality of relative velocity values and a plurality of relative position values, and store, in said memory, said plurality of relative velocity values and said plurality of relative position values, wherein the signal processing module further comprises a matched filter configured to correlate at least one of said acceleration values, velocity values and position values with prestored target values thereof, whereby to detect a preconfigured motion or location of the portable device, the matched filter being capable of operating in a plurality of operating modes, at least one said operating mode comprising a training mode in which the matched filter is configured to store acceleration values generated by the A/D convertor and/or velocity or position values generated therefrom as target values.