I'm working on a project using an MPX2010DP pressure differential sensor, and just trying to wrap my head around how it works. I've hooked it up to a basic circuit - seen below - but unfortunately the serial monitor is giving me a stagnant reading. I'm new to hardware and arduino, so I'm sure I'm doing something wrong, but I have no clue what. Would really appreciate any help!
Can't believe ground fungus didn't catch that. He must be tired tonight.
Here, looks like this..
void loop(){
int reading; // Somewhere to store the reading..
reading = analogRead(sensorPin); // Get the reading from the pin.
Serial.println(reading); // Then output the reading.
}
What is your sensor hooked up to? Code errors aside, I'd expect a differential sensor to give the same value with nothing connected to it, since there would be no difference in pressure.
Thanks for all the help and advice guys. Going to take a look at sensor suggested and work on correcting the code issues.
@Jiggy-Ninja by what's it hooked up to, do you mean the Arduino Uno? Otherwise, it's connected to silicone tubing and a short length of pvc pipe. From the research I've done into pressure differential sensors, I gather that it should be able to detect air flow when blowing on it, or at least give a different reading when moving it between rooms/places with different air flow. Is that correct?