Project tutorial
Pressure Airflow Measure Device with Analog Sensor

Pressure Airflow Measure Device with Analog Sensor © CC BY-NC

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

  • 15,823 views
  • 4 comments
  • 18 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

About this project

Code

Differential pressure to airflow speed in m/sC#
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);
}

Schematics

Pressure to airflow speed
Pressure jjvhpdzucl

Comments

Similar projects you might like

Arduino Temperature - Humidity - Rain Sensor

Project showcase by Rick_Findus

  • 15,391 views
  • 6 comments
  • 19 respects

Color Sensor Prototype: Detect Color Name from Objects

Project tutorial by moretticb

  • 7,344 views
  • 7 comments
  • 32 respects

Soil Moisture Sensor With LCD Display

Project tutorial by Patel Darshil

  • 37,804 views
  • 10 comments
  • 56 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 28,418 views
  • 6 comments
  • 44 respects

Temperature sensor

Project tutorial by Grant

  • 26,352 views
  • 6 comments
  • 44 respects

Beautifully Finished Humidity and Temperature Sensor

Project tutorial by Wicked Makers

  • 20,939 views
  • 22 comments
  • 150 respects
Add projectSign up / Login