Mouser Left Banner
Mouser Left Banner
Mouser Left Banner
Mouser Right Banner
Mouser Right Banner
Mouser Right Banner
More

    STM32Cube Software Libraries: New Features for MEMS Thanks to Major Upgrades

    The software expansions STM32Cube and X-CUBE-MEMSMIC1 have recently been updated to offer new features like real-time acoustic beamforming, or to improve how data from the motion sensors are processed. ST’s obsession with software could surprise those unfamiliar with the company’s history, but offering the industry’s leading MicroElectroMechanical Systems (MEMS), the most flexible power components, or some of the best Wi-Fi modules, like the SPWF04, is not enough when you strive to augment life. Hence, ST continuously releases new and improved software so engineers can efficiently take advantage of hardware features, powerful technologies, and the latest standards, to ensure they design better products faster.

    The union of hardware and software is actually such an important part of ST’s DNA that it will hold its next Developers Conference on September 6 in Santa Clara, California. To prepare for this annual event, the Life.Augmented blog has reviewed some of the recent updates to STM32Cube software libraries. These are packages that contain Hardware Abstraction Layers (HAL), APIs, Real-Time Operating Systems, drivers, and even application examples with their source code, among many other things. This mix of low and high-level tools make a big difference in a developers’ experience. For instance, the three major ODE Function Packs we reviewed greatly optimize application creation, and X-CUBE for Bluetooth or sub-gigahertz networks facilitate the design of feature-rich devices for consumer and industrial markets. Today, we’ll look at libraries that make ST’s MEMS special.

    STM32Cube: X-CUBE-MEMS1

    RS3882_005b_X-NUCLEO-CCA02M1

    X-CUBE-MEMS1 is the ultimate package when it comes to developing an application revolving around ST’s sensors. It contains drivers and sample implementations for its thermometer-hygrometer (HTS221), barometer (LPS25HB, or LPS22HB), magnetometer (LIS3MDL, or LSM303AGR), or its system-in-package solutions combining a gyroscope, and an accelerometer (LSM6DS0, or LSM6DSL). There’s also a Unicleo application, which takes in data from the sensors and outputs it to a Graphical User Interface (GUI) that helps visualize results, to more effectively program applications. To quickly take advantage of the pre-built binaries, one can use the following stack (the first board on top):

    • Sensor board:X-NUCLEO-IKS01A1 and X-NUCLEO-IKS01A2
    • STM32 platform:NUCLEO-F401RE, or NUCLEO-L476RG

     

    New Motion Libraries

    This software expansion pack received a huge upgrade as a lot of ODE libraries have now become available as middleware in the X-CUBE-MEMS1 project. One of the most popular examples is MotionFX, which we first saw in the FP-SNS-ALLMEMS1 STM32 ODE Function Pack. The library uses the data from multiple sensors and advanced algorithms to increase accuracy and performance, a process known as “sensor fusion.”

    To help engineers master the library quicker, X-CUBE-MEMS1 also includes the application example entitled DataLogFusion (path ./Projects/Multi/Applications/), which shows how the software can estimate the device’s position by using its accelerometer, gyroscope, and magnetometer. As with all the other ST packs, source codes are freely available, and all the necessary files are already organized by toolchain, so importing them to an Integrated Development Environment (IDE) is stunningly simple. A single blog post can’t possibly delve into all the Motion libraries available in X-CUBE-MEMS1, but we strongly recommend you just download them and check them out for yourselves.

    STM32Cube: X-CUBE-MEMSMIC1

    RS3869_001b_X-NUCLEO-IKS01A1

    As smart speakers and speech recognition are on everyone’s mind, X-CUBE-MEMSMIC1 becomes the one-stop solution to tackle complex audio problems. The expansion software package has the necessary tools to quickly work with the MP34DT01-M, an omnidirectional digital microphone that uses a capacitive sensing element. It also includes special drivers so the device can automatically function as a USB microphone, to immediately start audio streaming. Engineers can finally put together the stack listed below to work with the precompiled binaries (the first board listed is at the top):

    • Digital MEMS microphone: X-NUCLEO-CCA02M1
    • STM32 Board:NUCLEO-F072RB, NUCLEO-F401RE, NUCLEO-F746ZG, NUCLEO-L053R8, or NUCLEO-L476RG. Only the NUCLEO-F401RE works with all the precompiled applications at this point.

    Beamforming and Source Localization

    X-CUBE-MEMSMIC1 just received two new libraries: Acoustic beamforming (AcousticBF), and Acoustic source localization (AcousticSL). The first one uses the sound recorded by two digital MEMS microphones and processes the signal using an algorithm, which can determine the particular direction in space of a source while rejecting the ambient noise. Such technology can ensure that the user’s voice is easily recognizable, even in a noisy environment. The library is also quite powerful because it allows engineers to tune the system to find the right balance between output quality and resource consumption. There are also numerous customizations options to adjust the output resolution to the noise level and other environmental factors.

    AcousticSL works well with the two digital MEMS microphone soldered on the X-NUCLEO-CCA02M1, but users can also add two more, such as the STEVAL-MKI129V1, to increase accuracy. The library combines three Direction of Arrival (DOA) algorithms to estimate the angle at which the audio source is coming from. Depending on the number of microphones, the application will work on a 180º or 360º plane, and a series of parameters will help designers fine tune the resolution in accordance with the needs of their application.

    To know more about STM32 Cube Expansion Software, please visit www.st.com.

    ELE Times Bureau
    ELE Times Bureauhttps://www.eletimes.com
    ELE Times provides a comprehensive global coverage of Electronics, Technology and the Market. In addition to providing in depth articles, ELE Times attracts the industry’s largest, qualified and highly engaged audiences, who appreciate our timely, relevant content and popular formats. ELE Times helps you build awareness, drive traffic, communicate your offerings to right audience, generate leads and sell your products better.

    Technology Articles

    Popular Posts

    Latest News

    Must Read

    ELE Times Top 10