This repository contains some examples that demonstrate how to use the following sensors on the STEVAL board:
- LIS2DU12 (inertial)
- LSM6DSV16X (inertial)
- LPS22DF (pressure)
- LIS2MDL (megnetic field)
- STTS22H (temperature)
- MP23DB01HP (digital audio)
- ST25DV04K (NFC)
The STEVAL_Python_Wave_Serial_Encoder
sketch can be used together with the Python-Wave-Serial-Encoder GUI application to record PCM audio to a WAV file on desktop, by using serial connection to the board.
-
Install STEVAL-Audio library (if you haven't done yet)
-
Compile and Flash the
STEVAL_Python_Wave_Serial_Encoder
sketch you find inexamples/
folder (using Arduino IDE, for instance) -
Connect the STEVAL board to serial port
-
Select the serial port and click Connect
-
Click Save and select the WAV file where you're going to record the audio
-
Click Start to start capturing audio
-
Click Stop when you finished
-
Listen the WAV file with your preferred audio player
The STEVAL_MEMS_HelloWorld
sketch shows how to get data from LIS2DU12, LSM6DSV16X, LPS22DF, LIS2MDL and STTS22H. Just open the sketch, compile and run. Remember to install the relative sensors libraries.
The STEVAL_ST25DV_HelloWorld
sketch shows how to setup the ST25DV04K NFC to serve the URL http://www.st.com/st25. In order to use it, just open the sketch, install the ST25DV04K library (if not present), then compile and flash it.
The examples in this repository requires the following STM32duino libraries:
-
STM32duino LIS2DU12: https://github.com/stm32duino/LIS2DU12
-
STM32duino LSM6DSV16X: https://github.com/stm32duino/LSM6DSV16X
-
STM32duino LPS22DF: https://github.com/stm32duino/LPS22DF
-
STM32duino LIS2MDL: https://github.com/stm32duino/LIS2MDL
-
STM32duino STTS22H: https://github.com/stm32duino/STTS22H
-
STM32duino MP23DB01HP: https://github.com/stm32duino/STEVAL-Audio
-
STM32duino ST25DV: https://github.com/stm32duino/ST25DV