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 |
净重 | 4.8g |
毛重 | 10g |
产品尺寸 | 24 x 32 x 12mm |
包装尺寸 | 93 x 138mm |
//P:实际测试压力值,单位 (Kpa)
//Vout: 传感器电压输出值
P = (Vout-0.1)/3.0 x 300.0-100.0
#include <Arduino.h>
int sensorPin = 32; // 传感器信号引脚
void setup() {
Serial.begin(115200);
pinMode(sensorPin, INPUT); //Sets the specified pin to input mode. 设置指定引脚为输入模式
}
void loop() {
float raw = analogRead(sensorPin); // read the value from the sensor. 读取当前传感器的值
float Vout = raw/4095 x 3.6;
float P = (Vout-0.1)/3.0 x 300.0-100.0;
Serial.printf("pressure: %f.2 Kparn", P);
delay(100);
}