Skip to content

Infineon/RaspberryPi_DPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check links PyPI

Introduction

Python driver for Infineon Digital Barometric Air Pressure Sensor (DPS).

Supported Products

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

Dependencies

This driver depends on:

Please ensure all dependencies are resolved before proceeding further.

Steps for Installation

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

Installing from PyPI

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

Connection diagram:

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.

About

Unified library for all the versions of DPS(310, 368, 422)

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages