• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Sensors and Detectors / Arduino Barometric Pressure Sensor Circuit – Working and Interfacing Details

Arduino Barometric Pressure Sensor Circuit – Working and Interfacing Details

Last Updated on November 25, 2023 by Swagatam 4 Comments

In this article we are going to explore, what is a Barometer and how to interface a barometric BMP180 sensor with Arduino. We will also be exploring some of its important specification and finally I have explained how to predict weather using barometric readings.

Table of Contents
  • What is Barometer?
  • Illustration of Barometric sensor:
  • Specifications:
  • How it Works
  • How to predict pressure level?

What is Barometer?

Barometer is an instrument for measuring atmospheric pressure. The atmospheric pressure is the amount of force exerted by the atmosphere of earth.

Earth’s atmospheric pressure changes time to time, the change in the atmospheric pressure can predict short term weather condition in the local area.

In modern times, we can get weather forecast on our finger tips via smartphone, TV, radio etc. But in early days, around 17th century, the weather forecast was depend on barometer, which was fabricated using toxic chemical elements such as mercury.

Mercury based barometer was a handy tools for scientists to farmers. It predicted weather fairly accurate, it helped scientist to conduct scientific experiments on atmosphere, and farmers know when to grow crops at right time.

Later on mechanical based barometer was invented, which didn’t use any kind of liquid. Luckily, we are living in era of advanced technology, where barometric sensors are inexpensive and does not size more than our thumb nail.

Illustration of Barometric sensor:

BMP180 module
P 20161024 002230 2

Now, you know what a barometer is and where it is used.

Specifications:

• It can measure pressure ranging from 300hPa to 1100hPa (1hPa=100Pa), “Pa” denotes Pascal and hPa denotes hectopascal.
• Operating temperature is from -40 to +85 degree Celsius.
• Measuring temperature ranging from 0 to 65 degree Celsius.
• Typical operating voltage 3.3V.
• Power consumption 5 microampere.
Now, let’s dive into circuit diagram.

How it Works

barometric BMP180 sensor circuit using Arduino

The barometric BMP180 sensor circuit using Arduino is actually very simple as it utilizes i2C bus, which is two wire communication.  The chip uses 3.3V from Arduino from on-board regulated power supply. It can measure local atmospheric pressure and ambient temperature.


You may also like: How to build an atmospheric pressure indicator circuit using LEDs


Author’s prototype:

P 20161024 215804 2

The program is designed to calculate other parameters too such as atmospheric pressure at sea level and altitude from sea level, which we can witness from Serial monitor of IDE.

barometer 1

Before you dive into programming part, download the library file from the following link: github.com/adafruit/Adafruit_BMP085_Unified.git and add to Arduino library folder.

Program Code:

//-----------Program by R.Girish----------------//
#include <Wire.h>
#include <Adafruit_BMP085.h>
Adafruit_BMP085 bmp;
void setup()
{
Serial.begin(9600);
if (!bmp.begin())
{
Serial.println("Could not find a valid BMP085 sensor, check wiring!");
while (1) {}
}
}
void loop()
{
Serial.print("Temperature = ");
Serial.print(bmp.readTemperature());
Serial.println(" *C");
Serial.print("Pressure = ");
Serial.print(bmp.readPressure());
Serial.println(" Pascal");
Serial.print("Altitude = ");
Serial.print(bmp.readAltitude());
Serial.println(" meters");
Serial.print("Pressure at sealevel (calculated) = ");
Serial.print(bmp.readSealevelPressure());
Serial.println(" Pascal");
Serial.print("Real altitude = ");
Serial.print(bmp.readAltitude(101500));
Serial.println(" meters");
Serial.println();
delay(10000);
}
//-----------Program by R.Girish----------------//

The link for the library file is originally made for BMP085, but it is compatible with BMP180.

NOTE: While compiling the program, the IDE gives a warning, please ignore it, the code and library works just fine.

How to predict pressure level?

The weather forecast which is broadcast on TV and radios, are measured from sea level and not local atmospheric pressure, this is because the altitude can affect the reading from location to location and measuring at sea level will give a standard value across all the barometer. So, we are focusing on Pressure level at sea level (Calculated) on serial monitor.

The atmospheric pressure keeps on changing and no constant value can be obtained. But, one can determine the weather by monitoring the reading at some interval of time.

Look at the readings and note it, wait for half an hour and note the reading again, if the reading goes high, this means the weather going to be sunny. If the reading goes low, we can predict a storm or rain.

This is same across all barometers. Higher the difference between, initial and current readings, higher the possibility of changing weather condition.

You'll also like:

  • 1.  3 Simple Frequency Counter Circuits Discussed
  • 2.  Simple Peak Detector Circuit to Detect and Hold Peak Voltage Levels
  • 3.  Ion Detector Circuit [Static Discharge Detector]
  • 4.  Check What’s Behind the Paint of a Used Car
  • 5.  Simple Shadow Sensor Alarm Circuit
  • 6.  Obstacle Avoiding Robot Circuit without Microcontroller

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « How to make a Remote Controlled Game Scoreboard Circuit
Next Post: RFID Reader Circuit using Arduino »

Reader Interactions

Comments

  1. Calin says

    June 7, 2022 at 2:28 am

    You integrate with Arduino. Is it possible to connect the sensor to a gear and make it move a needle? I am thinking of a handheld barometer, without a CPU.

    Reply
    • Swagatam says

      June 7, 2022 at 9:10 am

      I don’t think that’s possible with the BMP180 sensor, you will have to depend on Arduino for the interfacing.

      Reply
      • Calin says

        June 7, 2022 at 1:43 pm

        Thank you for the prompt response.

        Reply
  2. PCOS says

    April 2, 2020 at 2:38 pm

    How do you calibrate the current pressure to make sure your altitude is correct.

    What is the performance spec on this. Could I use it in a weather balloon.

    Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch
  • Obaidullah Khan on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch
  • Swagatam on 2 Compact 12V 2 Amp SMPS Circuit for LED Driver
  • Alan Bishop on AC Motor Speed Controller Circuits using Back EMF
  • Swagatam on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations