Project tutorial
Barometer with Analog Scale (Ammeter)

Barometer with Analog Scale (Ammeter) © GPL3+

An analog-style BMP180 barometer.

  • 6 views
  • 0 comments
  • 1 respect

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

A barometer is a scientific instrument that is used to measure air pressure in a certain environment. Pressure tendency can forecast short term changes in the weather.

The device described below contains Arduino and BMP085 sensor module and the pressure is displayed on an analogue ammeter, so the value of air pressure can be read very easily. When starting the device, the arrow deflect to the maximum and return to zero again and serves to calibrate the ammeter, which is connected through a potentiometer on the arduino.

Code as the entire device is very simple and takes a very short time for full implementation.

Тhe minimum and maximum values of the ABSOLUTE air pressure for given altitude are set in the code.Тhe scale is graded in relative pressure.

90135Hpa absolute = 980Hpa relative pressure for 700m altitude

and

95653Hpa absolute = 1040Hpa relative pressure for 700m altitude

You can find absolute/relative air pressure calculator at:

https://www.mide.com/pages/air-pressure-at-altitude-calculator

Code

codeArduino
#include "Wire.h"    // imports the wire library for talking over I2C 
#include "Adafruit_BMP085.h"  // import the Pressure Sensor Library
Adafruit_BMP085 mySensor;  // create sensor object called mySensor


float pressure; //Variable for holding pressure reading

int out=0;
int ANALOGPRESSURE=0;

void setup() 
{
pinMode(6, OUTPUT);

mySensor.begin();   //initialize mySensor

test();
}

void loop() {

pressure=mySensor.readPressure(); //Read Pressure
ANALOGPRESSURE=map (pressure,90135,95653,0,255);//Absolute values
analogWrite (6,ANALOGPRESSURE);
delay (20000);
}

void test() {
for (int i=1;i<=255;i++)
{
analogWrite (6, i);  
delay (20);
}
for (int i=255;i>=1;i--)
{
analogWrite (6, i);  
delay (20);
}
delay (1000);
}

Schematics

schematic
Schematic jbcs68tdv0

Comments

Similar projects you might like

Analog Style LED POV Clock

Project tutorial by Mirko Pavleski

  • 4,464 views
  • 2 comments
  • 23 respects

2€ OLED I2C Analog Pin Dynamic Plotting

Project showcase by javier muñoz sáez

  • 6,606 views
  • 0 comments
  • 14 respects

An Isolated Analog Input for Arduino

Project tutorial by Giovanni Carrera

  • 5,892 views
  • 10 comments
  • 7 respects

Arduino + ESP Weather Box

Project tutorial by Mirko Pavleski

  • 4,035 views
  • 6 comments
  • 16 respects

Arduino Toolboxes : Analog Level Visualizer

Project showcase by Arduino World

  • 12,207 views
  • 15 comments
  • 34 respects

Analog XY-Plotter Output to HP-GL Translator

Project showcase by johan34

  • 4,591 views
  • 3 comments
  • 17 respects
Add projectSign up / Login