MIKROE-2293

Pressure 3 click
Pressure 3 click
IC/Module Microchip Infineon DPS310
(http://www.infineon.com/dgdl/Infineon-
DPS310+Pressure+Sensor-PB-v01_00-
EN.pdf?
fileId=5546d462525dbac40152b0a05ad74d56)
Interface SPI, I2C, INT
Power
supply
3.3V
Website www.mikroe.com/click/pressure-3
(http://www.mikroe.com/click/pressure-3)
Schematic also available in PDF (http://cdn-
docs.mikroe.com/images/9/9c/Pressure_3_click_sche
1
2
3
4
5
6
7
8
9
1
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
2
0
2
1
2
2
2
3
2
4
2
5
2
6
2
7
2
8
2
9
3
0
Pressure 3 click
From MikroElektonika Documentation
Pressure 3 click carries an Infineon DPS310 digital barometric pressure sensor.
Features and usage notes
Pressure 3 click has an operating range from 300 to
1200 hPa with a relative accuracy of 0.06 hPa and
absolute accuracy of 1 hPa. DPS310 is a fast sensor
with typical measurement time of 27.6 ms for
standard mode, down to 3.6 ms in low precision
mode.
DPS310 integrates a FIFO (First In First Out) buffer
that can store the last 32 measurumenets. Using the
buffer saves power because the target MCU doesn't
have to constantly poll for resources.
The sensor is callibrated. Callibration coefficients
are used to compensate the measurement results.
The data sheet contains detailed instructions on how
to convert compensated results to pressure and
temperature values.
The digital measurements are in 24-bit resolution.
Pressure 3 click has both I2C and SPI outputs. The four interface configuration buttons are soldered to
mikroBUS™ I2C pins by default. Additionally, there is an Interrupt pin that can be triggered whenever
a new measurement is available or if a FIFO buffer is full.
The click uses a 3.3V power supply.
Programming
This snippet initializes all necessary pins and functions for using Pressure 3 Click, and performs a test by writing test values to the click, and then reading them
back to the user through UART communication.
void main() {
Display_Init();
I2C1_Init_Advanced(400000, &_GPIO_MODULE_I2C1_PB67);
delay_ms(300);
Pressure_3_hal_init(0x76, MODE_I2C);
Set_Status(0x07);
while (1)
{
pressure3_calculate_coefficients();
calculate_temperature_pressure();
FloatToStr(Pressure, txt);
FloatToStr(Temperature, txt1);
TFT_Set_Font(TFT_defaultFont, CL_WHITE, FO_HORIZONTAL);
TFT_Write_Text("Pressure:", 30, 70);
TFT_Write_Text(txt, 100, 70);
TFT_Write_Text("Temperature:", 30, 100);
TFT_Write_Text(txt1, 120, 100);
Delay_ms(500);
TFT_Set_Font(TFT_defaultFont, CL_TEAL, FO_HORIZONTAL);
TFT_Write_Text("Pressure:", 30, 70);
TFT_Write_Text(txt, 100, 70);
TFT_Write_Text("Temperature:", 30, 100);
TFT_Write_Text(txt1, 120, 100);
}
}
Code examples that demonstrate the usage of Pressure 3 click with MikroElektronika hardware, written for mikroC for ARM, AVR, dsPIC, FT90x, PIC and
PIC32 are available on Libstock (http://libstock.mikroe.com/projects/view/1897/pressure-3-click-example).
Resources
- data sheet (http://www.infineon.com/dgdl/Infineon-DPS310+Pressure+Sensor-PB-v01_00-EN.pdf?fileId=5546d462525dbac40152b0a05ad74d56)
Page 1 of 2
- Pressure 3 click examples on Libstock (http://libstock.mikroe.com/projects/view/1897/pressure-3-click-example)
- mikroBUS standard specifications (http://download.mikroe.com/documents/standards/mikrobus/mikrobus-standard-specification-v200.pdf)
Page 2 of 2
9
/
15
/
201
6
http://docs.mikroe.com/Pressure_3_clic
k

MIKROE-2293

Mfr. #:
Manufacturer:
Mikroe
Description:
Pressure Sensor Development Tools Pressure 3 click
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet