This demo shows how to integrate the NXP sensors FXLS8971CF (3-axis accelerometer) with FRDM-MCXN947 platform. In this application the FXLS8971CF is hosted and an I2C peripheral on an “Inclinometer 4 Click” board from Mikroe.
The FXLS8971CF is 3-axis accelerometer that is designed to serve inclinometer (and accelerometer) applications. Offset and Sensitivity response across the temperature band (-40°C to 105°C) is near zero, and is best in class.
The demo uses the LVGL graphics framework and a TFT Display (LCD-PAR-S035) to show sensor data. The GUI was designed using GUI Guider (NXP).
For this demo you will need the next hardware.
- Check that the switch SW1 In the LCD is set to 010 (16bits 8080) and plug-in the LCD in the board (use the next image like reference) you should connect the LCD in the J8 header with two pins free in the top of the header.
- Plug-in the Inclinometer click board (Mikroe) atop the native mikroe slot of the FRDM board.
- Then plug-in the USB cable between the host PC and the FRDM-MCXN947.
See the figure below for reference.
- Download MCUXpresso IDE 11.9.0 or newer and Install following the installer instructions.
- Download MCXUpresso SDK 2.14.0 for FRDM-MCXN947. Make sure to select ISSDK middleware while building SDK. Make sure to change version to 2.14.00 and build SDK for MCUXpresso IDE.
- Install Git v2.39.0 (for cloning and running west commands)
- Open MCUXpresso IDE and select a directory to create your workspace.
- Install "MCXUpresso SDK 2.14.0 for FRDM-MCXN947" (drag and drop SDK zip into "Installed SDK" view) into MCUXpresso IDE.
- Go to "Quickstart Panel" and click on "Import from Application Code Hub".
- Enter "bubble-level-demo" in search bar. Select project card.
- Click "GitHub link" within wizard to copy GITHUB information into IDE wizard.
- Continue to follow the default steps of the Wizard. Click Next, Click Next for "main" branch.
- Select the desired destination to store the imported project. Initial branch = main. Click Next.
- Click next to select the discovered Eclipse projects.
- Click Finish to complete the import into workspace.
- Right click on project and select build to start building the project.
-
Download and install Visual Studio Code v1.95.2 or latest version.
-
In VS code, select the 'MCUXpresso For VScode' plugin, and click 'Application Code Hub' in the QUICKSTART PANEL.
-
Search "bubble-level-demo" example, clone to local workspace.
-
After a while, the project is shown in the 'Projects'.
- Build the project, after compile complete flash the board.
The demo will start running immediately after the FW is downloaded to the target as shown below.
- Reach out to NXP Sensors Community page for more support - NXP Community
- Learn more about FXLS8971CF 3-axis precision accelerometer, refer to - FXLS8971CF 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 5th 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.