This library is deprecated and will not be maintained any longer. Please use the XENSIV™ Digital Pressure Sensor Arduino Library
Library of Infineon's highly sensitive DPS368 sensor for Arduino. The DPS368 is an ultra small waterproof pressure sensor, environmentally protected against water (IPx8), dust & humidity.
The DPS368 is a miniaturized digital barometric air pressure sensor with ultra-high precision (±2 cm) and a low current consumption, capable of measuring both pressure and temperature. Due to its robust package, it can withstand 50 m under water for one hour (IPx8). The pressure sensor element is based on a capacitive sensing principle which guarantees high precision during temperature changes. The small package (2.0 x 2.5 x 1.1 mm³) makes the DPS368 ideal for mobile applications and wearable devices.
- Package dimensions: 8-pin LGA, 2.0 x 2.5 x 1.1 mm³
- Operation range:
- Pressure: 300–1200 hPa
- Temperature: -40–85°C
- Precision: ± 0.002 hPa (or ±0.02 m)
- Rel. accuracy: ± 0.06 hPa (or ±0.5 m)
- Abs. accuracy: ± 1 hPa (or ±8 m)
- Temperature accuracy: ± 0.5°C
- Avg. current consumption: 1.7 µA (pressure measurement@1 Hz sampling rate, standby: 0.5 µA)
- Integrated FIFO
- Interface: I2C and SPI (both with optional interrupt)
- Fast, ultra-low noise read-out allows for precise measurement of altitude, air flow and body movements
- Small package size ideal for wearable devices & mobile applications
- Sensor can be used in harsh environment (water, dust & humidity)
- Environmentally resistant package facilitates handling in assembly line
- Smart watches & wearables (e.g. fitness tracking)
- Smart phone (e.g. navigation)
- Home appliances (e.g. air flow control)
- Drones (e.g. flight stability)
The master branch is always release ready; therefore, you can just download this library by downloading it from GitHub directly:
Please download this repository from GitHub by clicking on the above button Clone or download
of this repository:
To install the DPS368 pressure sensor library in the Arduino IDE, please go now to Sketch > Include Library > Add .ZIP Library... in the Arduino IDE and navigate to the downloaded .ZIP file of this repository. The library will be installed in your Arduino sketch folder in libraries and you can select as well as include this one to your project under Sketch > Include Library > DPS368 Barometric Pressure Sensor.
Please see the example sketches in the /examples
directory in this library to learn more about the usage of the library. Especially, take care of the respective SPI and I²C configuration of the sensor.
For more information, please consult the datasheet here.
Currently, there exists the DPS368 Pressure Shield2Go evaluation board as a break out board:
The DPS368 Pressure Shield2Go is a standalone break out board with Infineon's Shield2Go formfactor and pin out. You can connect it easily to any microcontroller of your choice which is Arduino compatible and has 3.3 V logic level (please note that the Arduino UNO has 5 V logic level and cannot be used without level shifting). Please consult the wiki for additional details about the board.
Each sensor can only work either SPI or I2C. To convert from SPI to I2C, for example, you have to re-solder the resistors on the Shield2Go. Please take care that every Shield2Go for the DPS368 is shipped as I2C configuration right now.
- Link to the wiki with more information
However, every Shield2Go is directly compatible with Infineon's XMC2Go and the recommended quick start is to use an XMC2Go for evaluation. Therefore, please install (if not already done) also the XMC-for-Arduino implementation and choose afterwards XMC1100 XMC2Go from the Tools>Board menu in the Arduino IDE if working with this evaluation board. To use it, please plug the DPS368 Pressure Shield2Go onto the XMC2Go as shown below.
Please find the datasheet of the DPS368 here. It depends on the evaluation board which you are using or the respective configuration of the sensor on your PCB which communication protocol as well as addresses you need to use for communicating with the sensor.