Fall Detection and Step Count using FRDM-KL25Z

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Fall Detection and Step Count using FRDM-KL25Z

1,588 次查看
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,243 次查看
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 项奖励
回复