BMP 180 Atmospheric Pressure Sensor

Thanks for Visiting here

Print Friendly and PDF

BMP 180 Atmospheric Pressure Sensor


hello dosto is post me aj hmlog dekhenge ki BMP 180 sensor ka use janenge aur dekhenge ki usko arduino ke sath kaise confuger karte hai. 

BMP 180 Atmospheric Pressure Sensor


BMP 180 sensor apko atmospheric Pressure sensos kar ke dene wala hai.

Wiring of BMP 180 With Arduino Uno 

DHT11 

Arduino Uno 

GND 

GND 

VCC 

5v 

SCL 

A5 

SDA 

A4 


BMP 180 Atmospheric Pressure Sensor

Coding Of BMP180 Sensor with Arduino 

#include <SFE_BMP180.h>
#include <Wire.h>
SFE_BMP180 pressure;

void setup()
{
  Serial.begin(9600);

}

void loop()
{
  char status;
  double T,P,p0,a;
  Serial.println();
  Serial.print("provided altitude: ");
  Serial.print(ALTITUDE,0);
  Serial.print(" meters, ");
  Serial.print(ALTITUDE*3.28084,0);
  Serial.println(" feet");
  status = pressure.startTemperature();
  if (status != 0)
  {
    delay(status);
   status = pressure.getTemperature(T);
    if (status != 0)
    {
      // Print out the measurement:
      Serial.print("temperature: ");
      Serial.print(T,2);
      Serial.print(" deg C, ");
      Serial.print((9.0/5.0)*T+32.0,2);
      Serial.println(" deg F");

      status = pressure.startPressure(3);
      if (status != 0)
      {
       
        delay(status);
        status = pressure.getPressure(P,T);
        if (status != 0)
        {
          Serial.print("absolute pressure: ");
          Serial.print(P,2);
          Serial.print(" mb, ");
          Serial.print(P*0.0295333727,2);
          Serial.println(" inHg");
          p0 = pressure.sealevel(P,ALTITUDE); // we're at 1655 meters (Boulder, CO)
          Serial.print("relative (sea-level) pressure: ");
          Serial.print(p0,2);
          Serial.print(" mb, ");
          Serial.print(p0*0.0295333727,2);
          Serial.println(" inHg");
          a = pressure.altitude(P,p0);
          Serial.print("computed altitude: ");
          Serial.print(a,0);
          Serial.print(" meters, ");
          Serial.print(a*3.28084,0);
          Serial.println(" feet");
        }
        else Serial.println("error retrieving pressure measurement\n");
      }
      else Serial.println("error starting pressure measurement\n");
    }
    else Serial.println("error retrieving temperature measurement\n");
  }
  else Serial.println("error starting temperature measurement\n");

  delay(5000); 
}

arduino uno learning website,arduino projects with nroy,arduino learning ,arduino coding profile,"arduino projects with code pdf","top 100 arduino projects pdf","arduino projects with code","arduino projects beginner","arduino projects for engineering students","top 10 arduino projects for beginners","useful arduino projects","tinkercad arduino ,projects","arduino projects with code","arduino projects beginner","top 100+ arduino projects pdf","arduino projects with code pdf","tinkercad arduino projects","useful arduino projects","arduino projects for beginners","arduino projects with code","arduino projects for engineering students","arduino projects book (170 pages) pdf","arduino projects ideas","arduino projects simple","arduino projects led","arduino projects with starter kit","arduino projects robot","cool arduino projects","simple arduino projects","top 100 arduino projects pdf","beginner arduino projects","fun arduino projects","tinkercad arduino projects","led arduino projects","iot arduino projects","bluetooth arduino projects","stepper motor arduino projects","arduino uno projects","arduino nano projects","arduino led projects","arduino starter kit projects","arduino based projects","arduino stepper motor projects","arduino beginner projects","arduino iot projects","arduino uno r3,rojects","arduino robot projects",

Thanks For Reading 😋

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.