0

I am using this sensor Bosch Pressure Sensor Combined PST-F 1 in combination with a arduino uno.

The data sheet for the sensor : Data Sheet

I have it connected like this

enter image description here

The code i am using is the

int oilPressurePin = A1;
int oilTempPin = A0;

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

void loop() {
  int oilPressureSignal = analogRead(oilPressurePin);
  int oilTempSignal = analogRead(oilTempPin);
  delay(100);
  Serial.print(oilPressureSignal);
 Serial.print(oilTempSignal);
}

But the output of both oilPressureSignal and oilTempSignal is always 0. I have tried connecting a 4.6k resistor between 5V and and A0 than i get a value of around 80. But it doesn't change with the temp of the sensor.

Is my sensor broken or am i doing something wrong?

Edit:

So i bought a new one and now I get valid signals, after adding a pull-up resistor

3
  • how big temperature change do you test?
    – Juraj
    May 27 at 12:34
  • @juraj i tested the sensor by heating it up with a lighter, but even at ambient temperature is should nor be null. and i tested the pressure by blowing into the sensor. May 27 at 13:06
  • 1
    Without the pull-up resistor A0 would be expected to be zero. The easiest way to determine if the thermistor is functional would be with a standard voltmeter to check resistance at room temperature and cold (put it in your freezer). You may have damaged it with the lighter. With the pressure measurement range of the sensor (0-10 bar) no human is going to be able to produce sufficient force to change the pressure measurement. Even at 0 psig/ kPa there should be 0.5v at A1, so from that standpoint there may be something wrong with the sensor.
    – RudyB
    May 30 at 19:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.