on 2021-07-19 01:40 AM
MLC is a highly configurable and power-efficient hardware logic offered on ST sensors, supporting multiple Decision Tree classifiers. ISM330DHCX is a 6-axis iNemo inertial module that features MLC and can be found in the STWIN.
This example explains the following steps:
For more details on the software tools:
Hardware Tools
In this example we will be using the ISM330DHCX inertial measurement unit (IMU), with an accelerometer and a gyroscope sensor. This sensor is one of the several sensors that are included with STWIN. The same procedure shown in this tutorial also applies to other ST sensors with MLC support.
For more details on the hardware:
In this example the MLC will be configured to recognize three different classes or scenarios of the fan rack working mode:
Each class to be classified by the decision tree must be characterized by one or more data logs.
Hardware required:
Software required:
The first step of this tutorial will show how to interact with STBLESensor app to log the training data for the decision tree that we will implement in the ISM330DHCX MLC.
Before proceeding with the app, it is necessary to upload the logging firmware on STWIN. To do so, one has to navigate to the FP-SNS-DATALOG1 webpage and download the full package, which also contains the latest firmware version for logging data with STWIN .
To flash the board, one has to launch the STM32CubeProgrammer software, connect the board to the PC and enable the DFU mode.
To enable the DFU mode, the user has to push both USR and RESET button found on STWIN board, then has to release only the RESET button while keeping the USR button pushed. After 5 seconds, the user can also release the USR button and the board will be initialized in DFU mode.
The user can now open STM32CubeProgrammer, select USB in the top right dropdown list and can click on the "refresh" icon. If a device appears in the "Port" dropdown list then the DFU mode entry has been performed correctly.
Proceed by clicking "Connect". The software will read the device memory.
Now the user can click on the "Open file" tab, next to device memory, and will select the firmware downloaded in the previous step (default path .../FP-SNS-DATALOG1_V1.0.0/Projects/HSDatalog/Binary/HSDatalog.bin).
When the correct file is selected, one has to click on "Download" to upgrade the board firmware.
The user can now click the RESET button. The board will boot with the newly installed firmware running.
The user can now connect to STWIN using STBLESensor App (which can be downloaded from Google Play or Apple store). The app uses Bluetooth protocol to interact with the board, so make sure to enable Bluetooth on the phone before starting the app.
Once the app is loaded, the user can click on "Connect to a device" and a device named DTLG100 (default name of the board, it may differ) will show up. The user can select the active board by clicking and the app loads the board configuration.
In this tab the user can check all the sensors available on STWIN. For the application shown in this readme, any sensor needs to be selected but ISM330DHCX.
Once the user open the ISM330DHCX settings, it is able to select the full scale and the Output Data Rate of both Accelerometer and Gyroscope (referred as XL and Gyro from now-on). Since the goal is to use this data to train the MLC embedded in ISM330DHCX, and the MLC can't run to a frequency higher than 104Hz, the user needs to set both the ODRs to 104Hz. Regarding the full scale, the intensity of the movement that the sensor will acquire is limited so, selecting the lower full scale for both XL and Gyro (thus, 2g and 125dps) the user achieve the best performance.
By clicking on the play button in bottom right corner, the user will move to a different tab of the app. Here it is possible to specify the name of the acquisition and add a brief description of the test. The user can skip the SW_TAG settings. The user is now ready to start three different acquisitions of the sensor, one for every scenario of the fan rack.
Before clicking Start it is necessary to place the STWIN on top of the fan rack and let the fan rack work in three different scenarios. To achieve the best performance, STWIN needs to be double side taped to the fan rack and placed at the center of one of the fans. Once it is placed, we can differentiate the three scenarios as below:
i am also want to know about monitor. i hope this is helpful for me , thanks for sharing this with us. click here to check more about it.