Skip to content

nxp-appcodehub/dm-qwiic-accelerometer-frdm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NXP Application Code Hub

Qwiic Accelerometer on FRDM MCU's

This demo showcases basic integration of the Qwiic Accelerometer KX13X with an NXP FRDM development board using the I²C interface. The objective is to demonstrate how to initialize the accelerometer, read real-time motion data, and display it through a serial terminal.

The FRDM MCU acts as the I²C master and communicates with the KX13X accelerometer over the Qwiic connector. MCU configures the accelerometer and continuously reads acceleration data along the three axes.

Boards:

  • FRDM-MCXA153
  • FRDM-MCXA156
  • FRDM-MCXA174
  • FRDM-MCXA266
  • FRDM-MCXA344
  • FRDM-MCXA346
  • FRDM-MCXA366
  • FRDM-MCXC242
  • FRDM-MCXC444
  • FRDM-MCXN236
  • FRDM-MCXN947
  • FRDM-MCXW72
  • FRDM-RW612

Categories: Sensor

Peripherals: I2C, UART

Toolchains: VS Code

Table of Contents

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

1. Software

2. Hardware

3. Setup

3.1 Prepare before import code

  1. Install VSCode.
  2. Install MCUXpresso for VSCode extension.

3.2 Import example from Application Code Hub

  1. Open MCUXpresso for VSCode extension.
  2. In Quick Start Panel window click in Application Code Hub.
  3. In Search text field, type the name of this example "Qwiic Accelerometer on FRDM MCU's".
  4. Select the example, update the name and select the directory where the example will be saved.
  5. Click on the import project and wait some minutes.
  6. If window appears on the top side of VSCode select projects that will be imported and wait.
  7. Now, the projects of demo should be in projects panel.

3.3 Prepare Qwiic Shield

  1. Solder the headers in Qwiic shield.

  2. Cut A4 and A5 pins of Qwiic shield.

  3. Connect these pins with jumpers or solder a wire.

3.4 Plug Qwiic Shield into FRDM board

3.5 Connect Accelerometer with Shield using I²C ports

3.6 Flash your FRDM board Application

  1. Connect FRDM board to computer with USB-C cable at MCU-Link port of FRDM.
  2. Open MCUXpresso extension in VSCode.
  3. Select the project "dm-qwiic-accelerometer-frdm-(mcu)".
  4. Do right click on project and select pristine build and wait about one minute.
  5. Click run (play icon).
  6. Please wait a few seconds.
  7. Now click stop in center upper button.

3.7 Open Serial Monitor with these parameters

  • 115200 bps
  • 8 bits
  • 1 stop bit
  • No parity
  • No flow control

4. Results

Project Metadata

Board badge Board badge Board badge Board badge Board badge Board badge Board badge Board badge

Category 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

5. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub May 19th 2026

Licensing

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, TriImages, 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

Qwiic Accelerometer FRDM

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors