How to use the STEVAL-STWINKT1B SensorTile Wireless Industrial Node for
condition monitoring and predictive maintenance applications
Introduction
The STWIN SensorT
simplifies prototyping and testing of advanced industrial IoT applications such as condition monitoring and predictive
maintenance.
It is the updated version of STEVAL-STWINKIT1, now including STSAFE-A110 populated, BlueNRG-M2SA module and
IMP23ABSU MEMS microphone.
The kit features a core system board with a range of embedded industrial-grade sensors and an ultra-low-power microcontroller
for vibration analysis of 9-DoF motion sensing data across a wide range of vibration frequencies, including very high frequency
audio and ultrasound spectra, and high precision local temperature and environmental monitoring.
The development kit is complemented with a rich set of software packages and optimized firmware libraries, as well as a cloud
dashboard application, all provided to help speed up design cycles for end-to-end solutions.
The kit supports Bluetooth® low energy wireless connectivity through an on-board module, and Wi-Fi connectivity through
a special plugin expansion board (STEVAL-STWINWFV1). Wired connectivity is also supported via an on-board RS485
transceiver. The core system board also includes an STMod+ connector for compatible, low cost, small form factor daughter
boards associated with the STM32 family, such as the LTE Cell pack.
Apart from the core system board, the kit is provided complete with a 480 mAh Li-Po battery, an STLINK-V3MINI debugger and
a plastic box.
ile wireless industrial node (STEVAL-STWINKT1B) is a development kit and reference design that
The core system board offers a comprehensive range of sensors specifically designed to support and enable the
Industry 4.0 applications.
Figure 8. STEVAL-STWINKT1B functional block diagram of sensing elements and STM32L4R9ZIJ6
UM2777 - Rev 2
DFSDM1
page 4/45
UM2777
Sensing
The motion sensors communicate with the STM32L4R9ZIJ6 microcontroller via SPI in order to accommodate the
high data rates, while the magnetometer and environmental sensors communicate via I2C.
The suitably filtered signal from the IMP23ABSU
and then sampled by the internal 12-bit ADC in the MCU, while the signal from digital microphone is directly
managed by the digital filter for Sigma-Delta modulators (DFSDM) interface in the MCU.
Figure 9. Core system board sensor locations
U2: HTS221 relative humidity and temperature sensor
U3: LPS22HH digital absolute pressure sensor
U6: STTS751 low-voltage digital local temperature sensor
U8: TS922 rail-to-rail, high output current, dual operational amplifier
U9: ISM330DHCX 3D acc. + 3D gyro iNEMO IMU with machine learning core
U11: IIS3DWB ultra-wide bandwidth (up to 6 kHz), low-noise, 3-axis digital vibration sensor
U12: IIS2DH ultra-low-power high performance MEMS motion sensor
U13: IIS2MDC ultra-low-power 3-axis magnetometer
M1: IMP23ABSU analog MEMS microphone
M2: IMP34DT05 industrial grade digital MEMS microphone
analog microphone is amplified by a TS922 low noise op-amp
2.1.1HTS221 humidity and temperature sensor
The HTS221
signal ASIC to provide measurement information through digital serial interfaces.
The sensing element consists of a polymer dielectric planar capacitor structure capable of detecting relative
humidity variations and is manufactured using a dedicated ST process.
The HTS221 is available in a small top-holed cap land grid array (HLGA) package guaranteed to operate over a
temperature range from -40 °C to +120 °C.
is an ultra-compact relative humidity and temperature sensor with a sensing element and a mixed
RELATED LINKS
Visit the product web page for the HTS221 relative humidity and temperature sensor
2.1.2LPS22HH MEMS pressure sensor
The LPS22HH is an ultra-compact piezoresistive absolute pressure sensor which functions as a digital output
barometer
I3CSM or SPI from the sensing element to the application.
The sensing element, which detects absolute pressure, consists of a suspended membrane manufactured using a
dedicated process developed by ST.
The LPS22HH is available in a full-mold, holed LGA package (HLGA). It is guaranteed to operate over a
temperature range extending from -40 °C to +85 °C.
. The device consists of a sensing element and an IC interface which communicates through I²C, MIPI
UM2777 - Rev 2
page 5/45
RELATED LINKS
Visit the product web page for the LPS22HH MEMS pressure sensor
2.1.3STTS751 digital temperature sensor
The STTS751
The temperature is measured with a user-configurable resolution between 9 and 12 bits. At 9 bits, the smallest
step size is 0.5 °C, and at 12 bits, it is 0.0625 °C. At the default resolution (10 bits, 0.25 °C/LSB), the nominal
conversion time is 21 milliseconds.
Up to eight devices can share the same 2-wire SMBus without ambiguity, allowing a single application to monitor
multiple temperature zones.
is a digital temperature sensor which communicates over a 2-wire SMBus 2.0 compatible bus.
RELATED LINKS
Visit the product web page for the STTS751 digital temperature sensor
2.1.4TS922 rail-to-rail, high output current, dual operational amplifier
The TS922 is a rail-to-rail dual BiCMOS operational amplifier optimized and fully specified for 3 V and 5 V
operation. The very low noise, low distortion, low of
highly suitable for high quality, low voltage, or battery operated audio systems.
fset, and high output current capability render this device
UM2777
Sensing
RELATED LINKS
Visit the product web page for the TS922 rail-to-rail, high output current, dual operational amplifier
2.1.5ISM330DHCX iNEMO IMU 3D Acc + 3D Gyro
The ISM330DHCX is a system-in-package featuring a high-performance 3D digital accelerometer and +3D digital
gyroscope tailored for Industry 4.0 applications.
The sensing elements of the accelerometer and of the gyroscope are implemented on the same silicon die, which
ensures superior stability and robustness.
Several embedded features such as programmable FSM, FIFO, sensor hub, event decoding and interrupts allow
the implementation of smart and complex sensor nodes able to deliver high performance at very low power
RELATED LINKS
Visit the product web page for the ISM330DHCX iNEMO IMU 3D Acc + 3D Gyro
2.1.6IIS3DWB ultra-wide bandwidth (up to 6 kHz), low-noise, 3-axis digital vibration sensor
The IIS3DWB is a system-in-package featuring a 3-axis digital accelerometer with low noise over an ultra-wide
and flat frequency range. The wide bandwidth, low noise, very stable and repeatable sensitivity
the capability of operating over an extended temperature range (up to +105 °C), render the device particularly
suitable for vibration monitoring in industrial applications.
The high performance delivered at low power consumption, together with the digital output and embedded digital
features like FIFO and interrupts are of primary importance in battery-operated industrial wireless sensor nodes.
, together with
.
RELATED LINKS
Visit the product web page for the IIS3DWB ultra-wide bandwidth (up to 6 kHz), low-noise, 3-axis digital vibration sensor
2.1.7IIS2DH ultra-low power 3-axis high-performance accelerometer
The IIS2DH
interface standard output.
The device may be configured to generate interrupt signals from two independent inertial wake-up/free-fall events,
as well as from the position of the device itself.
UM2777 - Rev 2
is an ultra-low-power high-performance three-axis linear accelerometer with digital I2C/SPI serial
page 6/45
UM2777
Processing and connectivity
RELATED LINKS
Visit the product web page for the IIS2DH ultra-low power 3-axis high-performance accelerometer
2.1.8IIS2MDC 3-axis magnetometer
The IIS2MDC is a high-accuracy
range up to ±50 gauss, and includes an I²C serial bus interface that supports 100 kHz, 400 kHz, 1 MHz, and
3.4 MHz rates and an SPI serial standard interface.
The device can be configured to generate an interrupt signal from magnetic field detection.
RELATED LINKS
Visit the product web page for the IIS2MDC 3-axis magnetometer
2.1.9IMP23ABSU analog MEMS microphone with extended frequency response up to 80 kHz for
ultrasound applications
The IMP23ABSU is a compact, low-power microphone based on a capacitive sensing element and an IC
interface.
The sensing element can detect acoustic waves and is manufactured using a special silicon micro-machining
process to produce audio sensors.
The IMP23ABSU has an acoustic overload point of 130 dBSPL with a typical 64 dB signal-to-noise ratio.
The IMP23ABSU sensitivity is -38 dBV ±1 dB at 94 dBSPL, 1 kHz.
The IMP23ABSU is available in a package compliant with re-flow soldering and is guaranteed to operate over an
extended temperature range (-40 to +85 °C).
, ultra-low-power 3-axis digital magnetic sensor. It has a magnetic field dynamic
RELATED LINKS
Visit the product web page for the IMP23ABSU analog MEMS microphone
2.1.10IMP34DT05 digital MEMS microphone
The IMP34DT05 is an ultra-compact, low-power
sensing element and an IC interface; the device features 64 dB signal-to-noise ratio and -26 dBFS ±3 dB
sensitivity.
The IC interface includes a dedicated circuit able to provide a digital signal externally in PDM format.
RELATED LINKS
Visit the product web page for the IMP34DT05 digital MEMS microphone
2.2Processing and connectivity
The STWIN core system board features several wired and wireless connectivity options and the STM32L4R9ZI
ultra-low-power microcontroller
Cortex-M4 32-bit RISC core, operating at up to 120 MHz and equipped with 640 Kb SRAM and 2 MB Flash
memory.
, which is part of the STM32L4+ series MCUs based on the high-performance Arm
, omnidirectional, digital MEMS microphone built with a capacitive
UM2777 - Rev 2
page 7/45
USART2
STM32L4R9ZIJ6
Microcontroller
Ultra Low Power
Cortex M4F@120MHz
32 kHz
Crystal
16 MHz
Crystal
BlueNRG-M2SA
Bluetooth low energy
Application Processor Module
STR485LV
RS485 Interface
SPI2
SPI1
Secure
Processing
Connectivity
STEVAL-STWINWFV1
12-pin male com.
connector
STSAFE
Secure Element*
I2C2
Processing and connectivity
Figure 10. Main connectivity components and the STM32L4R9ZI processing unit
UM2777
Each connectivity component is connected to an independent bus on the STM32L4R9ZI MCU, so they can all be
configured individually.
ery low power application processor module for Bluetooth® low energy v5.0
UM2777
Processing and connectivity
2.2.1STM32L4R9ZI Cortex-M4F 120MHz 640Kb RAM
The STM32L4R9ZI devices is an ultra-low-power microcontroller (STM32L4+ Series MCU) based on the highperformance Arm Cortex-M4 32-bit RISC core, which operates at a frequency of up to 120 MHz.
The Cortex-M4 core features a single-precision floating-point unit (FPU), which supports all the Arm singleprecision data-processing instructions and all the data types. The Cortex-M4 core also implements a full set of
DSP (digital signal processing) instructions and a memory protection unit (MPU) which enhances application
security.
These devices embed high-speed memories (2 Mbytes of Flash memory and 640 Kbytes of SRAM), a flexible
external memory controller (FSMC) for static memories (for devices with packages of 100 pins and more), two
OctoSPI Flash memory interfaces and an extensive range of enhanced I/Os and peripherals connected to two
APB buses, two AHB buses and a 32-bit multi-AHB bus matrix.
The MCU embeds several protection mechanisms for embedded Flash memory and SRAM: readout protection,
write protection, proprietary code readout protection and a firewall.
These devices offer a fast 12-bit ADC (5 Msps), two comparators, two operational amplifiers, two DAC channels,
an internal voltage reference buffer, a low-power RTC, two general-purpose 32-bit timer, two 16-bit PWM timers
for motor control, seven general-purpose 16-bit timers, and two 16-bit low-power timers. The devices support four
digital filters for external sigma delta modulators (DFSDM). In addition, up to 24 capacitive sensing channels are
available.
They also feature standard and advanced communication interfaces such as:
•Four I2Cs
•Three SPIs
•Three USARTs, two UARTs and one low-power UART
•Two SAIs
•One SDMMC
UM2777 - Rev 2
page 9/45
UM2777
Processing and connectivity
•One CAN
One USB OTG full-speed
•
•Camera interface
•DMA2D controller
The device operates in the -40 to +85 °C (+105 °C junction) and -40 to +125 °C (+130 °C junction) temperature
ranges from a 1.71 to 3.6 V for VDD power supply when using internal LDO regulator and a 1.05 to 1.32 V V
power supply when using external SMPS supply. A comprehensive set of power-saving modes allows the design
of low-power applications.
Some independent power supplies are supported, such as an analog independent supply input for ADC, DAC,
OPAMPs and comparators, a 3.3 V dedicated supply input for USB and up to 14 I/Os, which can be supplied
independently down to 1.08 V. A VBAT input allows backup of the RTC and the registers. Dedicated V
supplies can be used to bypass the internal LDO regulator when connected to an external SMPS.
RELATED LINKS
Visit the product web page for the STM32L4R9ZI micrcontroller
2.2.2BlueNRG-M2 very low power application processor module for Bluetooth® low energy v5.0
The BlueNRG-M2 is a Bluetooth®
with BT specifications v5.0 and BQE qualified. The module simultaneously supports multiple roles and can act at
the same time as Bluetooth master and slave device.
The BlueNRG-M2 is based on the BlueNRG-2 system-on-chip and provides a complete RF platform in a tiny
form factor, integrating radio, embedded antenna and high frequency oscillators to offer a certified solution that
optimizes the final application time-to-market.
The BlueNRG-M2 can be directly powered by a pair of AAA batteries or any power source from 1.7 to 3.6 V.
low energy system-on-chip application processor certified module compliant
DD12
power
DD12
RELATED LINKS
Visit the product web page for the BlueNRG-M2SA application module for Bluetooth® low energy v5.0 wireless technology
2.2.3STEVAL-STWINWFV1 Wi-Fi expansion (not included in the kit) for the SensorTile wireless
industrial node (STWIN) kit
The STEV
Wireless Industrial Node (STWIN) kit.
Through the CN3 connectivity expansion connector, the STEVAL-STWINWFV1 can be plugged into the STWIN
core system board.
It is based on the ISM43362-M3G-L44-E Wi-Fi module and its main features are:
•802.11 b/g/n compatible
•based on Broadcom MAC/Baseband/Radio device
•fully contained TCP/IP stack
•host interface: SPI up to 25 MHz
The RF power emitted is +9 dBm (limited by firmware).
The module operating band is 2400 MHz ~ 2483.5 MHz (2.4 GHz ISM Band).
AL-STWINWFV1 expansion board (sold separately) adds 2.4 GHz Wi-Fi connectivity to the SensorTile
RELATED LINKS
Visit the product web page for further details on the STEVAL-STWINWFV1
2.2.4STR485LV 3.3V RS485 up to 20Mbps
The STR485 is a low power dif
half-duplex mode. Data and enable signals are compatible with 1.8 V or 3.3 V supplies.
ferential line transceiver for RS485 data transmission standard applications in
UM2777 - Rev 2
page 10/45
Power management
Two speeds are selectable via the SLR pin: fast data rate up to 20 Mbps or slow data rate up to 250 kbps for
extended cables.
Excessive power dissipation caused by bus contention or faults is prevented by a thermal shutdown circuit that
forces the driver outputs into a high impedance state. The receiver has a fail-safe feature that guarantees a high
output state when the inputs are left open, shorted or idle.
RELATED LINKS
Visit the product web page for the STR485LV 3.3V RS485 up to 20Mbps
2.2.5USB connector
The Micro-USB connector on the board can be used for both power supply and data transfer (USB Device only).
Dif
ferent examples of USB class implementation can be found in STSW-STWINKT01 software package.
2.2.6STSAFE-A110 authentication, state-of-the-art security for peripherals and IoT devices
The STSAFE-A1
data management services to a local or remote host. It consists of a full turnkey solution with a secure operating
system running on the latest generation of secure microcontrollers.
The STSAFE-A110 can be integrated in IoT devices, smart-home, smart-city and industrial applications,
consumer electronics devices, consumables and accessories.
10 is a highly secure solution that acts as a secure element providing authentication and secure
UM2777
RELATED LINKS
Visit the product web page for the STSAFE-A110 authentication, state-of-the-art security for peripherals and IoT devices
2.2.7microSD card socket
On the bottom side of the STWIN core system board is a microSD Card socket that is accessible even when
the board is mounted in the plastic box. The card is accessed through a 4-bit wide SDIO port for maximum
performance.
A couple of firmware examples involving high speed data logging on the SD card are available in the STSW
STWINKT01 software package.
2.2.8Clock sources
There are two external clock sources on the STWIN core system board:
•
X1: 16 MHz high speed external (HSE) oscillator for the MCU.
•X2: 32.768 kHz low speed external (LSE) oscillator for the RTC embedded in the MCU.
2.3Power management
The STWIN core system board includes a range of power management features that enable very low power
consumption in final applications.
The main supply is through a lithium ion polymer battery (3.7 V
(STBC02) with Vin [4.8 -5.5 V].
-
, 480 mAh) and the integrated battery charger
UM2777 - Rev 2
page 11/45
Figure 12. Power and protection components
STM32L4R9ZIJ6
Microcontroller
Ultra Low Power
Cortex M4F@120MHz
LDK130
Low Noise LDO
ESDALC6V1-1U2
Single Line ESD
protection
USBLC6-2P6
USB ESD protection
EMIF06-MSD02N16
EMI filter and ESD
protection
ST1PS01EJR
step-down
switching regulator
STBC02
Li-Ion linerar
battery charger
UM2777
Power management
Figure 13. Power and protection component locations
U1: EMIF06-MSD02N16
U10: LDK130 300 mA very low noise LDO
U14, U16: ST1PS01 400 mA Synchronous step-down converter
U15: STBC02 Li-Ion linear battery charger
U18: USBLC6-2 low capacitance ESD protection for USB
D1, D2, D3: Single-line low capacitance Transil for ESD protection
D4: Power Schottky rectifier (1A)
BATT: Battery connector
J4: Battery pins
J5: 5V Ext power supply connector
J6, J7, J9, J10: Current monitoring SMD jumper
PWR: Power button
6-line EMI filter and ESD protection for T-Flash and microSD card interfaces
UM2777 - Rev 2
page 12/45
2.3.1Battery connectors
321
2
1
VBAT
BAT_NTC
GND
VBAT
GND
STWIN core system board
USB
3V3 DCDC
U14
CN3 (Wi-Fi)
STSAFE
5V
SYS (5V or VBAT)
CN2
(AMicArray)
CN2
CN1
VBAT
J5
STBC02
Battery
Charger
Analog Mic
OpAmp
U10
2.7 LDO
DCDC_1
DCDC_2
3V3_Ext
U16
3V3 DCDC
VEXT
J3
µSDCard
RS485
SYS
V_USB
5V
STM32L4+
Sensors
Bluetooth
low
energy
The battery supply voltage (VBAT) may be provided by connecting the 480 mA LiPo battery included in the
STWIN kit to the dedicated battery connector
UM2777
Power management
, or by supplying an external voltage through the J4 connector.
Figure 14. Battery and J4 connectors for VBAT supply
2.3.2Power supply
The STWIN core system board can receive power from different sources:
•
•Vin: through J5 connector [4.8-5.5 V]. The current on this port needs to be limited to 2 A
•VBAT: lithium ion polymer battery (3.7 V, 480 mAh), STBC02 battery charger integrated in the board
The battery is always optional. The STBC02 battery charger automatically checks the available power inputs and
selects one to power the system. When the battery is connected as well as one of the other sources, the STBC02
automatically charges the battery.
When battery-powered, the equipment is intended to work properly with an operating temperature of 35°C.
Without the battery, the equipment is intended to work properly with an operating temperature of 45°C.
V_USB: through micro USB connector [5 V]
Figure 15. Power circuits
UM2777 - Rev 2
page 13/45
2.3.3Power ON/OFF procedure
If the STWIN core system board is not powered via battery, then the board will turn on and off when you connect
and disconnect an external supply
, respectively.
Follow the steps below to power the board on and off when it is powered by a LiPo battery.
Step 1.Push the PWR button for about a second to power the board on.
Power on is managed by the STBC02 battery charger WAKE-UP hardware feature.
Step 2.Push the PWR button again to turn the board off.
In the application code examples provided with the software, the microcontroller detects the push
action and activates the battery charger SHUTDOWN command to switch the power supply off.
2.3.4Power consumption evaluation
There are several test points and jumpers on the STWIN core system board available to monitor the electrical
performance of running applications. In particular
in each of the four main power supply domains on the board.
The best way to evaluate general power consumption is to remove both the battery and the USB cable and
provide 5 V directly on the J5 connector.
J6: Sensor current monitoring
J4: Battery supply
J7: STM32 digital power supply current monitoring
J9: BlueNRG-M2SA Bluetooth® low energy module current monitoring
J10: STEVAL-STWINWFV1 (Wi-Fi expansion) and STSAFE-A110 current monitoring
TP1, TP2: GND
TP3: DCDC_1 (3.3V)
UM2777
Power management
, there are four jumpers for monitoring the current consumption
Figure 16. Power monitoring points
UM2777 - Rev 2
page 14/45
2.4Buttons, LEDs and connectors
140
Figure 17. Buttons, LEDs and connectors
USR: User button
PWR: connected to the STBC02 for integrated W
RESET: connected to STM32 MCU reset pin (BLACK)
LED_C: Red LED connected to STBC02 and used for battery status feedback
LED1: Green LED connected to STM32
LED2: Orange LED connected to STM32
CN1: 40-pin flex general purpose expansion
CN2: STMod+ connector
CN3: 12-pin male connectivity expansion connector, suitable for the STEVAL-STWINWFV1 expansion board
CN4: 12-pin female sensor expansion connector, suitable for the STEVAL-STWINMAV1 analog microphone array expansion
board
Batt
UM2777
Buttons, LEDs and connectors
AKE-UP function and the STM32L4R9ZI MCU as generic USR button
2.4.1Flex expansion connector
This is a general purpose expansion connector.
Pin No.DescriptionSTM32 pinDefault Signal
1USART3_CTSPB13-
2STMOD2PD8/ PC3USART3_TX/ SPI2_MOSI
3STMOD3PD9/ PD3USART3_RX/ SPI2_MISO
4STMOD4PD1/ PB1SPI2_CLK/ USART3_RTS
5GND--
6VEXT--
Figure 18. CN1 Flex connector top view
able 1. CN1 pin descriptions
T
UM2777 - Rev 2
page 15/45
Pin No.DescriptionSTM32 pinDefault Signal
7I2C4_SCLPD12-
8SPI2_MOSI_p2PB15-
9SPI2_MISO_p2PC2-
10I2C4_SDAPD13-
11PC5/WKUP5PC5WKUP5
12EX_RESETPD11-
13EX_ADCPA5-
14EX_PWMPA15-
15VEXT--
16GND--
17PG12PG12EX_CN (ex tint)
18PG10PG10TIM
19PG9PG9TIM
20PB14PB14TIM, DSFDMD2
21PA9PA9-
22PA10PA10-
23PB11PB11DSI_TE,TIM,LPUART_TX
24PC13PC13TAMP, WKUP
25PB9PB9
26PB8PB8
27PE9PE9TIM, DSFDMCLK
283V3_Ext--
29DSI_D1_N-
30DSI_D1_P-
31GND--
32DSI_D0_N-
33DSI_D0_P-
34SYS--
35DSI_CLK_N-
36DSI_CLK_P-
373V3_Ext--
38PA0PA0ADC_IN5
39PA1PA1ADC_IN6
40SYS--
CAN, TIM, DSFDM,I2C1
STM32 Display Serial Interface (DSI) Host
STM32 Display Serial Interface (DSI) Host
STM32 Display Serial Interface (DSI) Host
UM2777
Buttons, LEDs and connectors
SAI2
UM2777 - Rev 2
RELATED LINKS
View the vendor documentation on handling FH34SRJ series connectors
page 16/45
2.4.2STMod+ connector
UM2777
Buttons, LEDs and connectors
Figure 19. STMod+ connector top views
DaughterboardHost board
Male connectorFemale connector
STMod+ Pin number
10
9
8
7
6
5
4
3
2
1
20
19
18
17
16
15
14
13
12
11
PCB
Edge
Border
PCB
Edge
Border
7.62 mm2.77 mm
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
Table 2. STMod+ connector pin assignments and descriptions
1. If two functions are provided on a STMod+ connector pin, you can connect two different I/O ports from STM32: the firmware
manages the conflicts that may arise. MOSIs means used in Serial Daisy Chained-SPI mode and MOSIp means used in
Parallel SPI mode. More alternate functions may be available from STM32, refer to the User manual of the host board and
the corresponding STM32 datasheet available on www
.st.com.
2. Instead of SPIx_NSS, a GPIO can be used as SPI Chip Select.
3. Pins 2 and 8 are the same SPIx_MOSI signals, but they must come from two different I/O ports.
page 17/45
4. Pins 3 and 9 are the same SPIx_MISO signals, but they must come from two different I/O ports.
b6b1
a6a1
b6b1
a6a1
5. Power Supply is Output or Input, depending on host / daughterboard configuration.
INT is an interrupt line.
6.
7. GPIO ports with many alternate functions (like UART, I²C, SPI and analog inputs/outputs) are privileged to offer optimum
flexibility.
RELATED LINKS
Read TN1238: STMod+ interface specification available on the ST website for more information
2.4.3Connectivity expansion connector
Figure 20. CN3 connectivity connector top view
UM2777
Buttons, LEDs and connectors
This connector is suitable for the STEVAL-STWINWFV1 Wi-Fi expansion board.
PinDescriptionSTM32 pinPinDefault SignalSTM32 pin
a1GND-b1WIFI_DRDYPE11
a2CS/USART3_CTSPB13b2WIFI_WAKEUPPD7
a3SPI1_CLK/USART3_RTSPB1b3WIFI_BOOT0PF12
a4SPI1_MISO/USART3_RXPD9b4WIFI_RSTPC6
a5SPI1_MOSI/USART3_TXPD8b5I2C3_SDAPG8
a63V3 Output (VDD_WIFI)-b6I2C3_SCLPG9
2.4.4Sensor expansion connector
able 3. CN3 pin descriptions
T
Figure 21. CN4 sensor connector top view
This connector is suitable for the STEVAL-STWINMA
UM2777 - Rev 2
V1 analog microphone expansion board.
page 18/45
PinDescriptionSTM32 pinPinDefault SignalSTM32 pin
a15V/Batt Output-b1DFSDM1_D7PB10
a23V3 Output-b2DFSDM1_CKOUTPE9
a3SAI1_FS_A - DFSDM_D3PE4b3I2C2_SCLPF1
a4GND-b4I2C2_SDAPF0
a5SAI1_SD_A/ SAI1_SD_B/DFSDM_D2PE6b5SAI1_SCK_APE5
a6GND-b6SAI1_MCLK_A/DFSDM_D5PE2
2.5Protective plastic box
The plastic case is designed to protect and hold the STWIN core system board and the LiPo battery together.
The case can also house two magnets (not included in the STEV
wireless industrial node on appropriate metallic areas in the monitored equipment.
RELATED LINKS
The system was tested with the following 25x8x3mm magnets
UM2777
Protective plastic box
Table 4. CN4 pin descriptions
AL-STWINKT1B kit), allowing you to stick the
2.6STLINK-V3MINI debugger and programmer for STM32
The STLINK-V3MINI is a standalone debugging and programming mini probe for STM32 microcontrollers, with
JT
AG/SWD interfaces for communication with any STM32 microcontroller located on an application board.
It provides a Virtual COM port interface for host PCs to communication with target MCUs via UART.
The STLINK-V3MINI is supplied with an STDC14 to STDC14 flat cable.
Figure 22. STLINK-V3MINI and STDC14 cable
UM2777 - Rev 2
page 19/45
3How to program the board
3.1How to program STWIN with STLINK-V3MINI
Follow the procedure below to program the STWIN core system board.
Step 1.Connect the STWIN core system board to the STLINK-V3MINI programmer using the 14-pin flat cable.
The programmer and the cable are included in the STEV
Step 2.Connect both the boards to a PC using micro USB cables.
Figure 23. STLINK-V3MINI connected to STWIN core system board
UM2777
How to program the board
AL-STWINKT1B hardware kit.
Step 3.Download the firmware onto the core system board; you can either:
–
download one of the sample application binaries provided using STM32CubeProgrammer or
ST-LINK Utility
–recompile one of the projects with your preferred IDE (EWARM, Keil, STM32CubeIDE)
3.2How to program STWIN without STLINK-V3MINI using STM32CubeProgrammer
"USB mode"
The STEV
To enter "Firmware upgrade" mode you must follow the procedure below:
Step 1.Unplug the STWIN core system board.
Step 2.Press the USR button.
Step 3.While keeping the button pressed, connect the USB cable to the PC.
AL-STWINKT1B can also be reprogrammed via USB using the STM32CubeProgrammer "USB mode".
Now the board is in DFU mode.
UM2777 - Rev 2
page 20/45
UM2777
How to program STWIN without STLINK-V3MINI using STM32CubeProgrammer "USB mode"
Step 4.Y
ou can upgrade the firmware by following the steps below:
Step 4a. Open STM32CubeProgrammer.
Step 4b. Select [USB] on the top-right corner.
Figure 24. STM32CubeProgrammer - USB mode selection
Step 4c. Click on
[Connect].
UM2777 - Rev 2
page 21/45
UM2777
How to program STWIN without STLINK-V3MINI using STM32CubeProgrammer "USB mode"
Figure 25. STM32CubeProgrammer - connection
Step 4d. Go to the [Erasing & Programming] tab.
Step 4e. Search for the new .bin or .hex binary file to be flashed into the board.
Step 4f.Click on
[Start Programming].
Figure 26. STM32CubeProgrammer - programming
UM2777 - Rev 2
page 22/45
4STWIN assembly steps
To assemble your SensorTile Wireless Industrial Node, you need the following components:
STWIN core system board
•
•4x M3 bolts and nuts
•Plastic box (2 parts)
•Battery
•2x Magnets (optional - not included in the kit):
–RS Stock No. 177-4040 Brand Eclipse Mfr Part No.N859
Figure 27. Exploded cad drawing of STWIN node components
UM2777
STWIN assembly steps
UM2777 - Rev 2
page 23/45
STWIN assembly steps
Step 1.(Optional) Insert the magnets in the rectangular recesses in the bottom of the main case.
Figure 28. Optional magnets inserted in main case
UM2777
Step 2.Slide the U-shaped bracket into the main case.
This will secure the magnets if they are present.
Step 3.Insert the STWIN core system board with the correct orientation.
Figure 29. Core system board inserted in main case
UM2777 - Rev 2
page 24/45
STWIN assembly steps
Step 4.Fasten the core system board to the case using the nuts and bolts provided with the kit.
Figure 30. Core system board fastened with bolts
UM2777
UM2777 - Rev 2
page 25/45
5How to run the HSDatalog application
IDLE
SDCard inserted and
JSON config found
USB cmd
START
POWER ON
LOAD CUSTOM
CONFIG
LOG TO
SDCARD
LOG VIA USB
USB cmd
STOP
NO SD Card or
JSON config
not found
USER Button or
BLE Command
Bluetooth low energy
UM2777
How to run the HSDatalog application
The HSDatalog (High-Speed Datalog) application is part of the FP-SNS-DA
TALOG1STM32ODE function pack.
It allows you to save data from any combination of sensors and microphones configured up to their maximum
sampling rate. Sensor data are stored on a micro SD Card, SDHC (Secure Digital High Capacity) formatted with
the FAT32 file system, or can be streamed to a PC via USB.
At startup, the application tries to load the device configuration from the SD card (if any) and then goes to Idle
state, waiting for the start command either via USB, push button or Bluetooth® low energy.
Figure 31. HSDatalog data flow
UM2777 - Rev 2
Together with HSDatalog application, inside the Utilities folder, MATLAB and Python scripts are available to
automatically read and plot the data saved by the application.
The script has been successfully tested with MA
The 'ReadSensorDataApp.mlapp' MATLAB app is also available, developed and tested using the App Designer
tool available in MATLAB v2019a.
TLAB v2019a and Python 3.7.
page 26/45
Figure 32. Folder structure in the SD card
UM2777
How to run the HSDatalog application
The script performs the following actions:
•
Reads and decodes the JSON file
•Reads the raw data and uses the information from the JSON to translate them into readable data (data +
timestamp)
•Plots the data
Note:The handling of JSON scripts requires MATLAB v2019a or above.
STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, enhancements, modifications, and improvements to ST
products and/or to this document at any time without notice. Purchasers should obtain the latest relevant information on ST products before placing orders. ST
products are sold pursuant to ST’
Purchasers are solely responsible for the choice, selection, and use of ST products and ST assumes no liability for application assistance or the design of
Purchasers’ products.
No license, express or implied, to any intellectual property right is granted by ST herein.
Resale of ST products with provisions different from the information set forth herein shall void any warranty granted by ST for such product.
ST and the ST logo are trademarks of ST. For additional information about ST trademarks, please refer to www
names are the property of their respective owners.
Information in this document supersedes and replaces information previously supplied in any prior versions of this document.
s terms and conditions of sale in place at the time of order acknowledgement.