Barometric Pressure / Altitude

The DPS310 sensor from Infineon a high-precision barometric sensor, perfect for measuring altitude changes with a up to ±0.002 hPa (or ±0.02 m) precision high precision mode and ± 1 hPa absolute accuracy. That means you can know your absolute altitude with 1=meter accuracy when you set the sea-level pressure, and measure changes in altitude with up to 2 cm precision. This makes it a great sensor for use in drones or other altitude-sensitive robots. This sensor would also do well in any environmental sensing kit, you can use it to predict weather system changes.

It also has a temperature sensor built in, with ± 0.5°C accuracy. For the lowest noise readings, set it up to take multiple measurements and perform a low-pass filter, that capability is built in! You can use it from 300 to 1200 hPa and in ambient temperature ranges from -40 to 85 °C.

Pinout

GND

Common ground for power and logic.

3V3

The power pin. The chip accpets 1.7 - 3.6 V for power.

SCL

I2C clock line. A 10k external pull-up resistor to VCC is required.

SDA

I2C data line. A 10k external pull-up resistor to VCC is required.

The default I2C address is 0x77 and can be changed to 0x76 by switching the toggle switch.

Getting Started

Quick Reference

Create object

Rath::DPS310 sensor = Rath::DPS310();

Initialize

sensor.init(0x77);

The 0x77 is the I2C address that the sensor is set to. If the address selection switch is turn to 0x76, then put 0x76 as the function argument.

Read temperature

sensor.getTemperature();

Returns the temperature in °C.

Read Pressure

sensor.getPressure();

Returns the pressure in kPa.

Precision and Rate Control

sensor.configPressure();
sensor.configTemperature();

Resources

Last updated

Was this helpful?