-
This example use FRDM-MCXC444 and on-board FXLS8974CF accelerometer to demonstrate autonomous motion detection of motion and direction, also this demo shows the board direction on the on board LCD display.
-
FXLS8974CF is 3-axis accelerometer targeted for application requiring low-power motion wake up. This sensor has SDCD embedded block which implements an efficient and flexible inertial event detection function to detect various inertial events like no-motion/motion detecting tamper/theft/abuse on an asset. This ultra-low power wake-up on motion can trigger host MCU to wake-up or go back to deep sleep mode when no motion detected autonomously.
-
There are many applications where user would like to detect unwanted, intentional touch or movement on their high value/secure assets at home and/or workplace environment. These sensors can be configured to detect physical disturbances, such as changes in the device’s enclosure or unauthorized opening.
-
As systems become more advanced and complex, the need for sophisticated security measures like tamper detection using wake-up sensors becomes increasingly important. These sensors offer a low-cost, low-power, proactive and effective solution for ensuring the integrity and safety of devices.
-
This example demonstrates ease-of-enablement using NXP's FRDM-MCXC444 and development ecosystem to accelerate prototyping for your such applications.
- Software
- Hardware
- Setup
3.1 Hardware Setup
3.2 Software Setup - Run Demo
- Results
- Support
- Release Notes
- MCUXpresso SDKv2.16.0 for FRDM-MCXC444 or newer
- MCUXpresso IDE v11.10.0
- FRDM-MCXC444 MCU board with on-board FXLS8974CF accelerometer and LCD dislpay
- Personal Computer
- USB Type C Cable
- Flash your FRDM-MCXC444 with its corresponding demo image.
- Information regarding flashing FRDM board with an example can be found on the getting started page for FRDM-MCXC444.
- Connect the USB cable from connector MCU-LINK to a host computer.
- Open a serial terminal with this configuration
- 115200 Baud Rate
- 8 data bits
- No parity
- One stop bit
- No flow control
- Download & Install MCUXpresso IDE v11.10.0 oe newer
- Download and Install MCUXpresso SDKv2.16.0 or newer for FRDM-MCXC444
- Connect a USB-C cable between the host PC and the MCU-Link USB port on the target FRDM-MCXC444 board.
- Use the tool to flash the program into the board, it's located in the "Firmware_Downloader" folder.
- The demo uses a few acceleromteter readings in order to calibrate and start running correctly.
- Just set the board (Unplugged) on a flat surfaces and connect the USB cable from the PC to the board.
- Wait until some text is displayed on the LCD, after this the demo is ready to be used.
-
After connecting with the FRDM-MCXC444 device, the serial UART terminal will show this message:
-
After this the board will dislpay text on the LCD screen and now you are able to move the board forward, backward, to the sides, up or down and the LCD will display the direction in wich the board was moving.
- Also the Terminal will display a message with the Axis in wich the board was moving X,Y or Z.
-
Reach out to NXP Sensors Community page for more support - NXP Community
-
For more details on FXLS8974CF SDCD block, refer to the application note - AN12004
-
Learn more about FXLS8974CF 3-axis accelerometer, refer to - FXLS8974CF DS
-
Accelerate your sensors development using Sensor ToolBox, refer to - Sensors Development Ecosystem
Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.
Warning: For more general technical questions regarding NXP Microcontrollers and the difference in expected functionality, enter your questions on the NXP Community Forum
Version | Description / Update | Date |
---|---|---|
1.0 | Initial release on Application Code Hub | November 19th 2024 |
NXP, the NXP logo, NXP SECURE CONNECTIONS FOR A SMARTER WORLD, Airfast, Altivec, ByLink, CodeWarrior, ColdFire, ColdFire+, CoolFlux, CoolFlux DSP, DESFire, EdgeLock, EdgeScale, EdgeVerse, elQ, Embrace, Freescale, GreenChip, HITAG, ICODE and I-CODE, Immersiv3D, I2C-bus logo , JCOP, Kinetis, Layerscape, MagniV, Mantis, MCCI, MIFARE, MIFARE Classic, MIFARE FleX, MIFARE4Mobile, MIFARE Plus, MIFARE Ultralight, MiGLO, MOBILEGT, NTAG, PEG, Plus X, POR, PowerQUICC, Processor Expert, QorIQ, QorIQ Qonverge, RoadLink wordmark and logo, SafeAssure, SafeAssure logo , SmartLX, SmartMX, StarCore, Symphony, Tower, TriMedia, Trimension, UCODE, VortiQa, Vybrid are trademarks of NXP B.V. All other product or service names are the property of their respective owners. © 2021 NXP B.V.