Skip to content

This demo uses the on board FXL8974 3-axis Low G accelerometer to obtain real time acceleration data, the on board RGB LED to indicate the orientation, and the SLCD interface to print out the y acceleration data.

License

Notifications You must be signed in to change notification settings

nxp-appcodehub/dm-slcd-and-fxls8974-on-mcxc444

Repository files navigation

NXP Application Code Hub

SLCD and FXLS8974 Accelerometer Demo on MCXC444

This demo uses the on board FXL8974 3-axis Low G accelerometer to obtain real time acceleration data, the on board RGB LED to indicate the orientation, and the SLCD interface prints out the y acceleration data.

Boards: FRDM-MCXC444

Categories: HMI, Sensor

Peripherals: I2C

Toolchains: MCUXpresso IDE

Table of Contents

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

1. Software

This software was developed in MCUXpresso IDE, this demo is in baremetal. The application starts when the user powers on the board or starts a debugging session, after that you can see the Red and Blue LEDs will change their brightness depending on the orientation of the FRDM-MCXC444 board. The SLCD interface will also enumerate https://nxp.com/mcuxpresso.

2. Hardware

For this demo you will need the FRDM-MCXC444 board linked below.

3. Setup

After cloning the repository and importing it to the workspace connect the board to the pc using a USB cable in the J13 header.

Alt text

Build and compile the project, debug, then select the target and push play to run the application.

Open a serial terminal (RealTerm) with the following settings:

  • 115200 baud rate
  • 8 data bits
  • No parity
  • One stop bit
  • No flow control

4. Results

When the X-axis acceleration is close to 1G, the blue LED will be full brightness. When the Y-Axis acceleration is close to 1G the Red LED will be full brightness. When X and Y axes are at 45 degrees respectively, you will see a pink/purple color, corresponding to both LEDs being on at the same time.

The SLCD interface will display the Y axis acceleration in terms of G. When the board is tilted horizontally the SLCD interface will display a value close to 1G. When the board is tilted vertically this number should be close to zero.

A serial terminal will additionally print out the values of the X, Y, and Z acceleration data.

5. FAQs

No FAQs have been identified for this project.

6. Support

Project Metadata

Board badge

Category 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 funcionality, 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 Oct 10 th 2024

About

This demo uses the on board FXL8974 3-axis Low G accelerometer to obtain real time acceleration data, the on board RGB LED to indicate the orientation, and the SLCD interface to print out the y acceleration data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages