Fall Detection and Step Count using FRDM-KL25Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Fall Detection and Step Count using FRDM-KL25Z

1,597件の閲覧回数
meghanarao
Contributor I

Okay so I'm working on the Freescale FRDM-KL25Z development platform and I'm unable to get any sample codes on the following: 

- how to blink an LED when it falls (fall detection basically),

- how to count the steps a person takes, with it on the human body.

Can someone please help me out with this? Its really urgent... 

Thanks

ラベル(1)
0 件の賞賛
返信
1 返信

1,252件の閲覧回数
shubhadippaul-b
NXP Employee
NXP Employee

Hi Meghana,

FRDM-KL25Z is a Microcontroller Board which has a MMA8451 Accelerometer onboard.

  • In order to capture an event like free fall, you will have to program the Accelerometer over I2C by writing configuration to its registers to detect free fall and generate an interrupt which will notify the MCU of the event. Subsequently, the MCU can turn on an onboard LED for indication. Follow the steps below to build your example.
  • Now, for detecting steps, you would need a pedometer algorithm which can read accelerometer data and compute steps. You may use the example indicated below for steps detection.

Visit https://mcuxpresso.nxp.com/ --> Select Board --> Boards --> Kinetis --> FRDM-KL25Z --> Build MCUXpresso SDK --> Add Software Component ISSDK and then Build and download the SDK Archive.

  • For Free-Fall detection, use the example boards\frdmkl25z\issdk_examples\sensors\mma8451q\mma845x_interrupt as your starting point and follow application note AN4070.pdf to create a free fall detection example.
  • For the Pedometer, the example boards\frdmkl25z\issdk_examples\algorithms\pedometer\pedometer_mma8451 should serve your purpose.
0 件の賞賛
返信