Unit Tube Pressure is a positive and negative pressure gauge that supports a wide measurement range of -100 ~ 200Kpa. When in use, it is connected via a tube, with the other end connected to the gas measurement environment. The sensor maps the range -100 ~ 200Kpa to output a voltage of 0.1 ~ 3.1V. It comes with a fully enclosed protective shell, effectively ensuring the stability of the sensor, making it very suitable for applications such as gas pressure detection in industrial equipment.
Specification | Parameter |
---|---|
Sensor Model | MCP-H10-B200KPPN |
Measurement Medium | Gas |
Positive/Negative Range | -100 ~ 200Kpa |
Proportional Output | 0.1 ~ 3.1V |
Accuracy | ±1.5Kpa (0 ~ 85°C) |
Supply Voltage | 5V |
Product Size | 32.0 x 24.0 x 12.5mm |
Product Weight | 4.6g |
Package Size | 138.0 x 93.0 x 13.5mm |
Gross Weight | 10.0g |
float K = 100.0;
float B = 110.0;
float P = analogVolts * K - B;
HY2.0-4P | Black | Red | Yellow | White |
---|---|---|---|---|
PORT.B | GND | 5V | NC | Analog Input |
#include <Arduino.h>
int sensorPin = 36;
void setup()
{
Serial.begin(115200);
pinMode(sensorPin, INPUT);
analogReadResolution(12);
analogSetAttenuation(ADC_11db);
}
void loop()
{
// read the analog / millivolts value:
int analogValue = analogRead(sensorPin);
int analogVolts = analogReadMilliVolts(sensorPin);
// print out the values you read:
Serial.printf("ADC analog value = %d\n", analogValue);
Serial.printf("ADC millivolts value = %d\n", analogVolts);
float K = 100.0;
float B = 110.0;
float P = analogVolts / 1000.0 * K - B;
Serial.printf("Pressure: %f.2 Kpa \n", P);
delay(100); // delay in between reads for clear read from serial
}