Skip to content

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.

License

Notifications You must be signed in to change notification settings

nxp-appcodehub/dm-mcxc444-lcd-and-fxls8974cf-motion-detection

Repository files navigation

NXP Application Code Hub

MCXC444 LCD display and FXLS8974CF accelerometer motion detection

  • 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.

Boards: FRDM-MCXC444

Categories: Sensor

Peripherals: DISPLAY, I2C, SENSOR, UART

Toolchains: MCUXpresso IDE, VS Code

Table of Contents

  1. Software
  2. Hardware
  3. Setup
    3.1 Hardware Setup
    3.2 Software Setup
  4. Run Demo
  5. Results
  6. Support
  7. Release Notes

1. Software

2. Hardware

  • FRDM-MCXC444 MCU board with on-board FXLS8974CF accelerometer and LCD dislpay
  • Personal Computer
  • USB Type C Cable

3. Setup

3.1 Hardware Setup

3.1.1 Step 1: Flashing FRDM

  • 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.

3.1.2 Step 2: Connect to host computer

  • 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

3.2 Software Setup

3.2.1 Step 1: Download and Install required Software(s)

4 Run Demo

4.1 Step 1: Flash the demo firmware on FRDM-MCXC444 board

  • 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.

4.2 Step 2: Set the board on a flat surface for calibration

  • 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.

5. Results

  • 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.

6. Support

  • 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

Project Metadata

Board badge

Category badge

Peripheral badge Peripheral badge Peripheral badge Peripheral badge

Toolchain badge Toolchain badge

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

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

7. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub November 19th 2024
Trademarks and Service Marks: There are a number of proprietary logos, service marks, trademarks, slogans and product designations ("Marks") found on this Site. By making the Marks available on this Site, NXP is not granting you a license to use them in any fashion. Access to this Site does not confer upon you any license to the Marks under any of NXP or any third party's intellectual property rights. While NXP encourages others to link to our URL, no NXP trademark or service mark may be used as a hyperlink without NXP’s prior written permission. The following Marks are the property of NXP. This list is not comprehensive; the absence of a Mark from the list does not constitute a waiver of intellectual property rights established by NXP in a Mark.
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.

About

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages