Python driver for Infineon Digital Barometric Air Pressure Sensor (DPS).
| Products | ![]() |
![]() |
| XENSIV™ DPS310 *(deprecated)* | XENSIV™ DPS368 | |
| Shield2Go | ![]() |
![]() |
| XENSIV™ DPS310 Shield2Go *(deprecated)* | XENSIV™ DPS368 Shield2Go *(deprecated)* | |
| Kit 2Go | ![]() |
![]() |
| XENSIV™ DPS310 Kit 2Go *(deprecated)* | XENSIV™ DPS368 Kit 2Go |
This driver depends on:
- python >= 3.0
- SMBus
Please ensure all dependencies are resolved before proceeding further.
Supported hardware --> Raspberry pi Zero/3/3B+/4B
- Update apt
sudo apt update
- Enable I2C (Interfacing options menu and then I2C enable).
sudo raspi-config
- Install pip3
sudo apt install python3-pip
- Install smbus
pip3 install smbus
sudo apt-get install -y python-smbus i2c-tools
On supported GNU/Linux systems like Raspberry Pi OS, you can install the driver from PyPI
For current user:
pip3 install DigitalPressureSensor
To install system-wide (this may be required in some cases):
sudo pip3 install DigitalPressureSensor
| Raspberry Pi | DPS |
|---|---|
| 3.3V | 3V3 |
| GND | GND |
| BCM 2 (pin3) | SDA |
| BCM 3 (pin 5) | SCL |
Note- Connection diagram given with DPS310 and Raspberry Pi is just for reference, all the three versions of DPS will be connected in the same way with any of the Raspberry Pi.
- Clone the Github repository or download the .zip, unzip it, go to examples folder and run the sample code.





