Output of pressure sensor

hi. i connected my pressure sensor with Arduino so when I put pressure on it the resistance will increase. However, when I open my serial output it shows around 950 instead of 0.


give more details of the hardware, e.g. part numbers etc?
upload the code using code tags </>
upload a schematic of the wiring?

@horace me and my lecturer made this pressure sensor and no i don't have a schematic. this is the code though
int currentValue = A0;

void setup() {
pinMode(currentValue, INPUT);
Serial.begin(9600);
}

void loop() {
Serial.println(analogRead(currentValue));
delay(50);
}

can you check the voltage output of the pressure sensor using a multimeter
does it work as expected? e.g. as you apply pressure it changes?
is the value 4 to 5volts to give a reading A0 of 955?

@horace yup i tested it first and it does work :sweat_smile:

can you check it while connected to the UNO? does it still work? does A0 change?

@horace actually it does haha but the value decreases. idk why it doesnt start at 0

without details of the hardware impossible to say
as the voltage changes does the A0 reading on the serial monitor change?
if you test the sensor by itself does it start at 0?

@horace on a multimeter it does not exactly start at 0, without pressure it is around 7 ohms but the resistance will drastically increase when i put more pressure

sounds like you need to measure changes in resistance - what is the range?
have a look at Arduino-Resistance-Measurement it may give you some ideas

1 Like

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