Pressure Sensors Forum Discussions
Hello everyone,
My name is Kirtan Soni and I am trying to interface the infineon's KP253 pressure sensor with the arduino mega. So far I have been able to get the output readings from the sensor (not what I need) and I think that I am using the correct SPI protocol as per give data sheet.
I am getting a diag1 error (As per datasheet) in my readings. I will explain what I did in depth below:
This is my circuit diagram. According to the datasheet the KP253 has a 16bit SPI transfer register the protocol is MSB first, 0.1 - 5 MHz clock speed, model 1. I have used the SPI.transfer16() to read and write to the register of the sensor, I am getting the readings and the readings are also changing with the rise and drop of temperature.
To check whether my connection and program is right I also write the identifier code and it gives me proper response as indicated in the datasheet.
This is the output I get by converting it to binary, I get - 0101000100110111 which is correct.
But when I write the temperature read command it gives me - 0101001011000110
So according to the response structure I get Diag1 error - 010
Here is my code:
#include<SPI.h> //Library for SPI
const int CS=4;
volatile int Response;
void setup (void)
{
Serial.begin(115200);
pinMode(CS,OUTPUT);
digitalWrite(CS,HIGH);
}
void loop(void)
{
digitalWrite(CS,LOW);
SPI.begin();
SPI.beginTransaction(SPISettings(4000000, MSBFIRST, SPI_MODE1));
Response = SPI.transfer16(0b0100000000000000);
SPI.end();
digitalWrite(CS,HIGH);
Serial.println(Response);
}
I tried everything that I knew but I don't know what am I doing wrong?
Thank you for your time.
I really appreciate your efforts.
To make your efforts a bit easy I am attaching the link to the datasheet as well.
我在设置气压传感器采样率寄存器设置时,发现有两个不同的设置,一个是采样次数,一个是过采样,不知道这二者有什么区别?分别需要设置成什么数值?
谢谢!
Hello,
when using this sensor, the communication between the microcomputer and the sensor cannot be realized, can you provide a solution?
Thank you,
Zhang
Show LessHello,
Please let me know about COEF.
Is COEF individual value of each pressure sensor? Is COEF written in the factory before the sensors are shipping?
Best regards,
h_nakamura
I have read this document "Infineon-SP40_Development_Kit-GettingStarted-v01_00-EN" and they said that i need download "MyICP library" but i cant find it anywhere, can you guys help me?
Show LessIs the calibrated / compenstated pressure output supposed to correct for ambient temperature changing?
the scaled raw temp value is featured in the equation for the comp pressure but if i heat the sensor without changing the pressure, the comp pressure reading drops (not expected) and the calibrated (degrees C ) temperature climbs (as expected)
i have 2 different sensors that behave the same, i can see the calibration coeffs are different but in the same ranges for each parameter so I am pretty sure I am doing all the right stuff with the numbers as the calibrated outputs are 'correct' in as much as they output believable numbers but with heat alone as a modulation to the sensor, the pressure is moving
am i missing something here?
i am hoping to use the 2 in a differential mode which seems ok so far as long as the temperatue doesn't change
thanks
Andy
Show LessHi,
Their products(https://www.bosch-sensortec.com/news/accurate-indoor-localization-can-save-thousands-of-lives-enabled-by-pressures-sensing-solution.html) seem to claim to be FCC(https://www.federalregister.gov/documents/2020/01/16/2019-28483/wireless-e911-location-accuracy-requirements) compliant, but what about the DP310?
Since the absolute accuracy of the DP310 is 1pHa (±8m), is it not possible to comply with the FCC standard ±3?
Smartphone vendors seem to want to build pressure sensors into smartphones to enhance GPS capabilities in order to comply with the FCC.
Best regards,
h_nakamura
Buenos días,
He comprobado que el sensor DPS 310, no mide bien la temperatura; si partimos de 25º como como base, a 0º aporta datos en el entorno de -2.5º ó -3º. El error es progresivo. Lo he comparado con otros sensores como TMP-117, BMP388, DC-1080 y otros, los datos difieren de todos ellos.
He utilizado diferentes librerías de ARDUINO, siempre con los mismos resultados.
¿Alguien puede ayudarme a resolver el problema?.
Gracias y un saludo.
Show Less