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.

  • 4,425 views
  • 2 comments
  • 11 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

Soil Moisture Sensor With LCD Display

Project tutorial by Patel Darshil

  • 19,351 views
  • 4 comments
  • 37 respects

Arduino Temperature - Humidity - Rain Sensor

Project showcase by Rick_Findus

  • 7,411 views
  • 6 comments
  • 13 respects

Ultrasonic Sensor with Alarm, LCD and Temperature

Project tutorial by MichDragstar

  • 4,645 views
  • 7 comments
  • 19 respects

Arduino Powered CPR Feedback Device

Project showcase by David Escobar

  • 3,790 views
  • 8 comments
  • 25 respects

Color Sensor Prototype: Detect Color Name from Objects

Project tutorial by moretticb

  • 3,023 views
  • 4 comments
  • 23 respects

Beautifully Finished Humidity and Temperature Sensor

Project tutorial by Wicked Makers

  • 16,865 views
  • 21 comments
  • 135 respects
Add projectSign up / Login