ST STEVAL-BFA001V1B Getting Started Manual

Page 1
Getting started Guide
STEVAL-BFA001V1B
Predictive maintenance kit with sensors and IO-Link capability
System Research and Applications
July 2018
Page 2
Contents
Setup and programming
STEVAL-BFA001V1B Kit Overview
Data Monitoring/Logging
How to enable Predictive Maintenance
Page 3
STEVAL-BFA001V1B Kit Overview
Page 4
STEVAL-BFA001V1B Kit
What is inside
The STEVAL-BFA001V1B includes:
1. STEVAL-IDP005V1- industrial sensor board
2. STEVAL-UKI001V1 - Adapter board for ST-LINK/V2-1
3. 0.050” 10-pin flat cable
4. 4-pole cable mount connector plug, with male contacts
5. M12 female connector with 2m cable
Designed for:
Condition Monitoring (CM)
Predictive Maintenance (PdM)
The STEVAL-BFA001V1B is based on 3D digital accelerometer, environmental and acoustic MEMS sensors
What is inside?
1
2
3
4
5
Page 5
STEVAL-IDP005V1
Hardware Overview
Main supply voltage: 18..32V Main components:
32-bit ARM® Cortex®-M4 core for signal processing and analysis (STM32F469AI)
Sensors:
iNEMO6DoF (ISM330DLC- accelerometer and gyroscope)
Absolute Digital Pressure (LPS22HB)
Relative Humidity and temperature sensors (HTS221)
Digital Microphone sensor (MP34DT05-A)
IO-Link PHY Device (L6362A)
EEPROM (M95M01-DF) for data Storage
Step-down switching regulator and LDO regulator (L6984 and LDK220)
M12 industrial connector
SWD connector for debugging and programming capability
Reset button
Expansion connector with GPIO, ADC, I2C bus
The STEVAL-BFA001V1B kit is designed around the STEVAL-IDP005V1
Page 6
STEVAL-IDP005V1
Software Overview
Hardware
STEVAL – IDP005V1
ISM330DLC, HTS221, LPS22HB, MP34DT05-A, M95M01-DF
Vibration
Signal Processing
Audio LibMiddleware
STM32Cube Hardware
Abstraction Layer (HAL)
Hardware Abstraction
Board Support
Package
Condition
Monitoring
Demonstrations
Predictive
Maintenance
Acoustic Analysis
Applications
Environmental
monitoring
Vibration
Analysis
Software Description
Set of firmware examples for CM and PdM based on 3D digital accelerometer (only accelerometer is supported in fwpackage), environmental and acoustic MEMS sensors.
Key features
Developed for STM32F469AI with easy portability across different
MCU families
Middleware including algorithms for advanced time and frequency domain signal processing for vibration analysis:
Programmable FFT size (256, 512, 1024, 2048 points)
Programmable FFT overlapping
Programmable acquisition time window
FFT averaging during acquisition time
Programmable windowing (Flat Top, Hanning, Hamming)
Speed RMS moving average, acceleration max peak.
Middleware integrating microphone algorithms for:
PDM to PCM
Sound pressure
Audio FFT
Environmental, acoustic and vibration data monitoring through freely available
terminal emulator.
Example firmware to communicate with STEVAL-IDP004V1 (IO-Link master
capable, multi-port evaluation board) and dedicated PC GUI.
STSW-BFA001V1 architecture
STSW-BFA001V1 is the software package for the STEVAL-IDP005V1
Page 7
Setup and Programming
7
Page 8
8
What do you need more? – not included in the kit
STEVAL-IDP005V1
STEVAL-UKI001V1
M12 female connector with 2m cable
10-pin flat cable
4-pole male connector
1
2
3
4
5
Generic power supply
(range 18..32V)
Any STM32 nucleo-64 to program
debug and interface with PC
USB cable Type-A to Mini B
STEVAL-IDP004V1 Master board and
generic RS-485/422 USB adapter
(required only to use the GUI)
Laptop
Unpack the STEVAL-BFA001V1B ...
Setup
Hardware prerequisities
Page 9
STEVAL-IDP005V1 Demo Setup
Software prerequisities
9
STSW-LINK009
ST-LINK/V2-1 USB driver
STSW-LINK007
ST-LINK/V2-1 firmware upgrade
Common freely Serial line terminal (i.e. TeraTerm)
ST IDP005V1-GUI (setup included in .\STSW-BFA001V1\Utilities folder)
Microsoft.net version 4.5 or higher (this is only to run the GUI)
RS-485/USB adapter driver (this only to use STEVAL-IDP005V1 connected to IO-Link
master capable multi port board)
Page 10
STEVAL-IDP005V1
Power-on
10
or
Plug the M12 cable onto the STEVAL-IDP005V1
and connect the other end to a power supply
18..32V
If available, use the STEVAL-IDP004V1 to supply
the STEVAL-IDP005V1 through the M12 cable
The STEVAL-IDP005V1 can be powered in two ways
STEVAL-IDP005V1
STEVAL-IDP004V1
Supply voltage
18..32 V
Supply voltage
9..32 V
STEVAL-IDP005V1
Page 11
Programming the STEVAL-IDP005V1 1/2
STEVAL-UKI001V1 and ST-LINK/V2-1 overview
11
STM32 NUCLEO-64 comes with ST-LINK/V2-1
Make sure that SB12 is open
STEVAL-UKI001V1 (top view) has two SWD sockets:
20-pin (100 mils)
10-pin (50mils)
STEVAL-UKI001V1 (bottom view)
1
2
3
4
Page 12
Programming the STEVAL-IDP005V1 2/2
Setup
12
Remove all short cap jumpers from the STM32-NUCLEO
Plug the STEVAL-UKI001V1 on the STM32-NUCLEO respecting the CNx ref.
Programming steps:
a. Connect the application
board to the ST-LINK/V2-1 via the 10-pin flat cable plugged on J2 (on the STEVAL-UKI001V1), then
power-on it.
b. Connect the ST-LINK/V2-1
with a PC via an USB cable plugged on CN1.
c. The ST-LINK/V2-1 will be
recognized as a removable storage.
d. To download the firmware
simply copy the .bin file on it.
.bin
1
2
3
4
Page 13
Data Monitoring / Logging
13
Page 14
STSW-BFA001V1
Firmware architecture
14
The STEVAL-IDP005V1 offers applications and examples as detailed below. All projects allow data monitoring through serial terminal with board connected to PC.
Can work also with the
STEVAL-IDP004V1 and a
dedicated GUI
Page 15
STEVAL-IDP005V1 Data Monitoring
15
STEVAL-IDP005V1 sensor and analysis data can be displayed on PC in two ways
or
Terminal emulator (TeraTerm or others freely available)
GUI to be used through the STEVAL-IDP004V1 (multiport Master board)
Page 16
STEVAL-IDP005V1 Data Monitoring
Setup the terminal emulator
16
1
2
3
5
4
STM32-Nucleo
STEVAL-UKI001V1
STEVAL-IDP005V1
Open the terminal
emulator
Plug the STEVAL-UKI001V1 on the
STM32-NUCLEO, then connect to the
STEVAL-IDP005V1
CN15: closed
CN14: 2-3 position
Push the Reset button on the STEVAL-UKI001V1
(or STEVAL-IDP005V1)
Terminal emulator settings
Name: COM Port name
Baud Rate: 230400
Data:8
Parity: None
Stop Bit: One
Flow Control: None
Press Y to start
monitoring
Insert the new parameters
or press ENTER
Page 17
STEVAL-IDP005V1 Data Monitoring
Parameters Configuration Details
17
Odr -> Accelerometer ODR in Hz fs-> accelerometer full scale in g Hpf -> accelerometer high pass filter
0 - HPF_ODR_DIV_4:
1 - HPF_ODR_DIV_100: 2 - HPF_ODR_DIV_9: 3 - HPF_ODR_DIV_400:
Size -> FFT size (256, 512, 1024, 2048) ovl -> fft overlapping in % (5 ÷ 95) Tacq -> acquisition time in ms (0.5 ÷60000) Tau -> time constant for RMS in ms
(25,50,100,150,250,500,1000,1500,2000)
Subrng-> 8, 16, 32, 64 number of spectral subrange Wind-> 0 (Hanning)
1 (Hamming) 2 (Flat Top)
Tdtype -> 0 Speed RMS
1 Acc RMS
2 Acc RMS and Speed RMS
STEVAL-IDP005V1 allows data
monitoring using the service UART
The CM application allows data plot and
vibration parameters setting (only
selected parameters can be changed)
Page 18
STEVAL-IDP005V1 Data Monitoring
Data Details (1/3)
18
RMS for Acc and/or speed
Accelerometer FFT
P, T, rH data
Accelerometer Spectral frequency subrange and related amplitude
Frequency and time domain vibration data
Page 19
STEVAL-IDP005V1 Data Monitoring
Data Details 2/3
19
FFT Averaging number. it is fuction of overlapping and acquisition time
Frequency and max
amplitude in subrange on
3 Accelerometer axis
Acc peak on 3 axis
Max amplitude at related frequency
Page 20
STEVAL-IDP005V1 Data Monitoring
Data Details 3/3
20
The displayed data can be saved and plotted on external program (i.e. Excel) Such as the FFT spectral analysis.
plot on .xls format
One axis accelerometer FFT
Save log and
Page 21
Dedicated GUI trought STEVAL-IDP004V1
STEVAL-IDP005V1 communication based on Master Board
STEVAL-IDP004V1
STEVAL-IDP005V1
Axel spectrum
Speed RMS
Axel Peak
P, T, H parameters
Adapter RS-485 / USB Optional USB
STSW-IO-LINK Firmware package
Download the condition monitoring_iol firmware from the STSW-BFA001V1 Demonstration folder
Page 22
STEVAL-IDP005V1 GUI
How to connect one or more nodes
22
1
2
3
The GUI is included in the STSW-BFA001V1 utilities folder.
Once installed please follow:
1. Select the right COM
2. Select the port (more nodes can be
connected)
3. Click on connect and wait for connection
Install the GUI from setup included in .\STSW-BFA001V1\Utilities folder
Page 23
STEVAL-IDP005V1 GUI
Vibration Analysis
23
Time domain parameters
Frequency
domain
parameters
Plot related to nodes 2 and 3
in this example
Page 24
STEVAL-IDP005V1 GUI
Environmental Monitoring
24
Pressure
Relative Humidity
Temperature
Nodes 2 and 3 in this example
Page 25
STEVAL-IDP005V1 GUI
Save data log
25
1. Check the box “ Enable Saving
To File Sensor X Measures
2. Click the related square blue
button
3. Select the folder path where
store the file, and choose the file name
1
2
3
Page 26
How to enable Predictive Maintenance
26
Page 27
Predictive Maintenance Demonstration FW
The Predictive Maintenance demonstration project (PredMaint_SVR), inside STSW-BFA001V1\Projects\Demonstrations\ Predictive_Maintenance folder, allows programmable vibration thresholds and give, in output, motor status details coming from time and frequency vibration analysis. The motor status are:
- Good
- Warning
- Alarm
Fix STEVAL-IDP005V1 very close to equipment. It is recommended not use cantilever board fixing.
Supply voltage
18..32 V
PC connection through service UART
General motor status
27
Frequency domain
Time domain
Page 28
Predictive Maintenance Demonstration FW
Threshold settings
28
User can modify the alarm and warning thresholds for Speed RMS, Acc peak and spectral band. It is done in precompiling
phase on MotionSP_Threshold.h file. Spectral band can be subdivided in 8, 16, 32 or 64 subrange.
Threshold values for Warning
Threshold values for Alarm
Open the PredMaint_SVR project fromSTSW-BFA001V1\Projects\Demonstrations\Predictive_Maintenance folder*
(*) to change thresholds and recompile firmware it is necessary install one of the supported IDEs
Page 29
Predictive Maintenance Demonstration FW
Terminal Emulator Data Output
29
General Motor Status in Time and in Frequency domain
Status on spectral band for each axes in 8 subranges
Time domain Motor Status details for each axes
PC Data output displayed are detailed below:
Page 30
Thank you
Loading...