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.
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).
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
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.
- Build project.
- Connect board to your computer.
- Upload code to board.
- Push reset button.
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.
No FAQs have been identified for this project.
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 | August 28th 2024 |