P1J Differential Sensor

Hi there,

I am working with this sensor P1J rev E (sensata.com), and I am trying to use the i2c communication. I understand I need to have the register of the ID device and also the registers where the information is. However, I cannot see the register clearly (sorry, this is my first working with this protocol) , has someone used this sensor before? i will appreciate any recommendation and information from your side.

What is the sensor model code exactly?
For example - P1J-2-A X 16 P A

The model for this sensor is PIJ-5MB-AX-16PA. Have you worked with it before?

sorry, no
I only checked that your model can be used with i2c bus.
According to datasheet, your sensor should be available at i2c address 0x28

Yes, I have checked this. Thanks

Did you try to connect it to arduino?
Was the sensor founded by i2c scanner?

This is the code that I am playing. Not sure if they are correct or not.

#include<Wire.h>
#define i2caddress 0x28

void setup()
{
Wire.begin();
Serial.begin(9600);
}

void loop(){
Wire.requestFrom(i2caddress ,2); (this is basically the registers where the pressure is)
byte *LSB = Wire.read(); //first byte received here
byte *MSB = Wire.read(); //second byte received here

Serial.print("byte 1: ");Serial.println(*LSB,DEC);
Serial.print("byte 2 ");Serial.println(*MSB ,DEC);

delay(1000);

}

I suppose that will be better test the sensor with i2c scanner first.
The "i2c scanner" code is a one of the standard Arduino IDE examples.

Awesome!. I did not know about this tool. I will check. However, I should expect the same i2c address as it was mentioned in the datasheet.

Yes, but the result confirms that the sensor is connected properly and not damaged.

I just ran, and this is what I got
Scanning...

I2C device found at address 0x28 !

done

Scanning...

I2C device found at address 0x28 !

done

This confirms the sensor is okay, and the address is correct. Thanks for your help

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.