Skip to content

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.

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
LICENSE
BSD-3-Clause
COPYING-BSD-3
Notifications You must be signed in to change notification settings

nxp-appcodehub/dm-mcxn-bubble-level-demo

Repository files navigation

NXP Application Code Hub

Precision Inclinometer (Bubble Level) with FXLS8971

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

Boards: FRDM-MCXN947

Accessories: Mikroe_Inclinometer_4_Click, NXP_LCD_PAR_S035

Categories: Sensor, Graphics, RTOS

Peripherals: I2C, SENSOR, UART, VIDEO, DISPLAY

Toolchains: MCUXpresso IDE, VS Code

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. Support
  6. Release Notes

1. Software

2. Hardware

For this demo you will need the next hardware.

3. Setup

3.1 Step 1: Connect Display to FRDM-MCXN947

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

Alt text

3.2 Step 2: Connect the Inclinometer click board atop FRDM-MCXN947

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

Alt text

3.3 Step 3: Download and Install required Software(s)

3.4 Step 4: Build demo project

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

    Alt text

  • Enter "bubble-level-demo" in search bar. Select project card.
  • Click "GitHub link" within wizard to copy GITHUB information into IDE wizard.

    Alt text

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

    Alt text

  • Right click on project and select build to start building the project.

3.5 Develop in VS code

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

4. Results

The demo will start running immediately after the FW is downloaded to the target as shown below.

5. Support

Project Metadata

Board badge

Category badge Category badge Category badge

Peripheral badge Peripheral badge Peripheral badge Peripheral 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

6. Release Notes

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.

About

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.

Resources

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
LICENSE
BSD-3-Clause
COPYING-BSD-3

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages