/efr32mg12-mpl3115a2-driver

This is a basic driver for periodic measurements with the MPL3115A2 sensor connected to a Thunderboard Sense 2 ( BRD4166A, EFR32MG12) board.

Primary LanguageC

efr32mg12-mpl3115a2-driver

This is a basic driver for periodic measurements with the MPL3115A2 sensor connected to a Thunderboard Sense 2 (BRD4166A, EFR32MG12) board.

Development environment

Software

Hardware

Embedded software project

I developed and tested in the Simplicity Studio IDE. I started with the soc-thunderboard project, then I removed the unnecessary parts and modified it for the MPL3115A2 sensor.

Serial logging

I logged some useful debug information and the measurements to the VCOM:

Altitude mode

In the Altitude mode I can read the altitude in meter and the temperature in Celsius degree from the sensor: Altitude mode

Barometer mode

In the Barometer mode I can read the pressure in Pascal and the temperature in Celsius degree from the sensor: Barometer mode

Useful links