Numbian
Published © CC BY-NC

Pressure Airflow Measure Device with Analog Sensor

I'm building working model of differential pressure airflow measure device with analog sensor, instrumentation amplifier and Arduino.

IntermediateFull instructions provided23,328
Pressure Airflow Measure Device with Analog Sensor

Things used in this project

Hardware components

NXP MPXM2053GS
×1
Analog Devices Instrumentation Amplifier, SO-8, 100 kHz, AD623ARZ
×1
Capacitor Ceramic 0.1uF (generic)
×1
Electrolytic Decoupling Capacitors - 10uF (generic)
×1
Standard LCD - 16x2 White on Blue
Adafruit Standard LCD - 16x2 White on Blue
×1
Arduino UNO
Arduino UNO
×1

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Schematics

Pressure to airflow speed

Code

Differential pressure to airflow speed in m/s

C#
Measuring airflow with analog pressure sensor.
#include <Wire.h>  
#include <LiquidCrystal_I2C.h> 
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); 

float CurrentReading;
float Sum;
float Average;
float MeasuresN=2500 ; // number of measures to average
float Flow;

void setup() 
{
Serial.begin(9600);
lcd.begin(16,2); 
}

void loop() 
{
for (int i=0; i<MeasuresN; i++)
{
CurrentReading = analogRead(A0);
Sum+=CurrentReading;
delay(1);
}
Average=Sum/MeasuresN;
Sum=0;

// To proper measure from 0 m/s airspeed you will need to find curve equation based on your application- I use linear equation to test on fan I had access to.

////////////////////////////
Flow=(Average-68)*0.265+2.7;   
////////////////////////////

lcd.backlight(); 
lcd.setCursor(0,0); 
lcd.print("Sensor:"); lcd.print(Average); 
lcd.setCursor(0,1); 
lcd.print("Airflow:"); lcd.print(Flow); lcd.print("m/s  ");
  
delay(5);
}

Credits

Numbian

Numbian

0 projects • 5 followers

Comments