Unit Tube Pressure 是一款 正负压力计,支持 -100 ~ 200Kpa 宽测量范围。使用时通过导管连接,另一侧接入气体测量环境。传感器将比例映射 -100 ~ 200Kpa 输出 0.1 ~ 3.1V 电压。自带全覆盖保护外壳,有效保障传感器工作稳定性,非常适合应用于工业设备 气体压力检测 等场景。
规格 | 参数 |
---|---|
传感器型号 | MCP-H10-B200KPPN |
测量介质 | 气体 |
正负量程 | -100 ~ 200Kpa |
比例输出 | 0.1 ~ 3.1V |
精度正负 | 1.5Kpa (0 ~ 85°C) |
供电电压 | 5V |
产品尺寸 | 32.0 x 24.0 x 12.5mm |
产品重量 | 4.6g |
包装尺寸 | 138.0 x 93.0 x 13.5mm |
毛重 | 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 Output |
#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
}