Apraksts
Gaisa spiediena sensors MPS20N0040D-D
0-40kPa
Lai nolasītu ar Arduino, papildus nepieciešams:
– Operational Amplifier LM358 8pin
– Resistori 1 gab. 1K, 1gab. 2.2K. 2gab. 10K, 2gab. 47K.
Measuring medium: air
Measuring range: 0-40kPa
Operating temperature range: -40 ℃ ~ + 125 ℃
Storage Temperature: -40 ℃ ~ + 150 ℃
Humidity: (50% ± 10%) RH
Ambient temperature: (25 ± 1) ℃
Medium temperature: (25 ± 1) ℃
Output impedance: 4kΩ ~ 6kΩ
Zero output: -15mV~+15mV
Hysteresis: +-0.7%F.S.
Power supply: ≤10V DC or ≤2.0mA DC
Insulation resistance: 100MΩ, 100VDC
Size: 8 x 10 x 14 mm
Pipe diameter: 3 mm
/* Pressure Sensor */ const int analogInPin = A0; // Analog input pin that the potentiometer is attached to int sensorValue = 0; // value read from the pressure sensor via the amplifier stage float outputValue = 0; // value output to the Serial port or LCD display void setup() { // initialize serial communications at 9600bps Serial.begin(9600); } void loop() { // read the analog in value: sensorValue = analogRead(analogInPin); outputValue = map(sensorValue, 10, 1023, 0, 100); //The zero value of sensor is around 10 // print the results to the serial monitor: Serial.print("sensor = " ); Serial.print(sensorValue); Serial.print("\toutput = "); Serial.println(outputValue); // wait 500 milliseconds before the next loop // for the analog-to-digital converter to settle // after the last reading: delay(100); }