Im trying to wire up and code a Honeywell gauge pressure sensor to an uno as part of my final year collage project. Does anybody have any experience with using such a pressure sensor? I have attached an image of the sensor and datasheet. Any replies would be greatly appreciated
Im trying to wire up and code a Honeywell gauge pressure sensor to an uno as part of my final year collage project. Does anybody have any experience with using such a pressure sensor? I have attached an image of the sensor and datasheet. Any replies would be greatly appreciated
Looks pretty simple to use with an arduino. Just wire the devices ground to arduino ground pin, device +5vdc pin to arduino 5v pin, and devices signal output to a arduino analog input pin. Then you can use analogRead() commands to convert the reading to a digital value you can use in your sketch.
Im using the arduino for just a small aspect of my project so I would only be a novice when it comes to programming so please bear with me.
Ive used the following code but seem to be getting very fluctuating readings:
int analogPin = 2; // connected to analog pin 2
// outside leads to ground and +5V
int samples[8];
int i;
int pressure=analogRead(analogPin);
void setup()
{
Serial.begin(9600); // setup serial
}
void loop()
{
for (i=0;i<=7;i++){ // gets 8 samples of pressure
pressure = analogRead(analogPin); // read the input pin
long pressure = 950 + pressure / 8.5; //convert it to milli bars
Serial.print("\t pressure = ");
Serial.print(pressure); // print the pressure
Serial.println(" mb");
delay(5000); // wait 5 second before next sample
}
An example of my reading would be it would start at a value of say 750mb, then go 0mb..0mb then when I apply pressure using a syringe it would jump up to 1bar,But then go 0mb..0mb then 1bar etc.
I'll let more knowlegable software types comment on your sketch. However it doesn't seem correct to have two variables used both named pressure, one a int and global in scope and the other defined as a automatic variable inside loop() as a long variable and then both used in the same expression:
long pressure = 950 + pressure / 8.5; //convert it to milli bars
I'm suprized that doesn't generate some kind of compiler error, but again I'd rather a software guru type comment on that.
http://www.fullgauge.com/PDF/PCT-400.pdf
This is a controller + pressure transducer
for him don`t have datasheet
But have SCHEMATIC FOR TRANSDUCER
Brown: 5Vdc
Green: Ground
White: Output
Arizanov: http://www.fullgauge.com/PDF/PCT-400.pdf
This is a controller + pressure transducer
for him don`t have datasheet
But have SCHEMATIC FOR TRANSDUCER
Brown: 5Vdc
Green: Ground
White: Output
Again, given what you have shown it should be OK. I would suggest you first power up the sensor independently and apply pressure tests to the sensor while measuring the output signal with a digital multimeter. If you see no signal higher then +5vdc then you should be good to go.