Skip to content

This demo serves as guide on enabling FXLS897xxx accelerometer over I2C and light sensor over ADC readings. The ADC conversions are trigger by a hardware timer trigger. The I2C transfers make use of CMSIS-Drives. Interact application through the IoT Toolbox using a Smartphone.

License

Unknown, BSD-3-Clause licenses found

Licenses found

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

nxp-appcodehub/dm-mcxw71-accel-and-light-ble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NXP Application Code Hub

MCXW71 Accelerometer and light sensor over Wireless UART

This demo serves as guide on enabling FXLS897xxx accelerometer over I2C and light sensor over ADC readings. The ADC conversions are triggered by a hardware timer trigger. The I2C transfers make use of ISSDK. Interact application through the IoT Toolbox using a Smartphone.

The IoT Sensing Software Development Kit (ISSDK) is the embedded software framework enabling NXP’s digital and analog sensors platforms for industrial and medical IoT applications. ISSDK support models across a broad range of NXP’s Arm® Cortex®-M cores based microcontrollers including NXP’s LPC, Kinetis and i.MX RT crossover platforms. More info at IoT Sensing Software Development Kit (ISSDK).

The boar counts with a FXLS8964AF accelerometer compatible with FXLS89xxxF family driver. This demo modifies “hello world” application.

Accelerometer Sensor

Following picture shows the high-level layer architecture of the ISSDK v1.8 middleware. ISSDK is designed to provide separable layers of functionality that a customer can choose to use or ignore based on their specific needs. In addition, the ISSDK architecture is portable due to the use of open APIs (ARM Ltd. CMSIS Driver APIs).

Light Sensor

The light measured by the sensor may be a time variant signal. In order to get the DC component an average of signal is made. With 600 Hz sampling rate a 100 Hz signal can be extract easylly. Once six samples are taken and averaged a result is ready to be displayed.

Boards: FRDM-MCXW71

Categories: Wireless Connectivity, Sensor

Peripherals: ADC, I2C, PIT

Toolchains: MCUXpresso IDE, VS Code

Table of Contents

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

1. Software

This code has been implemented using MCUXpresso IDE version 11.10.0 and SDK verison 2.16.000.

Note: In order to use any wireless example in the MCXW71 you need to upload the NBU image. This image comes into the SDK version that you will use.

NBU file be found in the following SDK path:

"SDK_2_XX_FRDM-MCXW71-> middleware-> wireless-> ble_controller-> bin-> mcxw71_nbu_ble-..-.sb3"

You can load NBU image trough blhost. blhost is a command-line debug tool for sending individual commands to the bootloader.

Once blhost is downloaded the executable can be found in the following paht:

blhost_2.6.7.zip\blhost_2.6.7\bin\win

Locete NBU file and blhost excutable at in the same direcory and run the following command:

 blhost -p COMXX receive-sb-file mcxw71_nbu_ble_1_X_XX_X.sb3 

Replace XX in command by the COMXX number assigned to your board.

2. Hardware

3. Setup

  1. Build project.
  2. Connect board to your computer.
  3. Upload code to board.
  4. Push reset button.

4. Results

When powering the board it starts the advertising role, so you can connect your smartphone using the IoT Toolbox app:

Application will have multiple functionalities; wireless uart and sensors. Once you connect your phone whit the board you can interact sensors thought the followign commands:

SENS A
SENS L

You can also change sensor displaying by push SW4.

5. FAQs

No FAQs have been identified for this project.

6. Support

Project Metadata

Board badge

Category badge Category 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 August 28th 2024

About

This demo serves as guide on enabling FXLS897xxx accelerometer over I2C and light sensor over ADC readings. The ADC conversions are trigger by a hardware timer trigger. The I2C transfers make use of CMSIS-Drives. Interact application through the IoT Toolbox using a Smartphone.

Resources

License

Unknown, BSD-3-Clause licenses found

Licenses found

Unknown
License.txt
BSD-3-Clause
COPYING-BSD-3

Stars

Watchers

Forks

Packages

No packages published