D1 Mini BMP180 Shield

BMP180 Shield is a Digital Barometric Pressure Sensor Module for D1 Mini

Features:
Interface: I2C interface
Temperature: 0..+65C
Pressure Range: 300 … 1100hPa (+9000m … -500m relating to sea level)
Voltage Range: 1.8..3.6V
Warning: all I/O are designed to be 3.3V compliant only.

Pins:

D1 mini Shield
D2 Data out

Arduino Code
Install DHT sensor library

Test Code:

#include <Wire.h>
#include <Adafruit_BMP085.h>
 
Adafruit_BMP085 bmp;
 
void setup() 
{
  Serial.begin(9600);
  //Wire.begin (4, 5);
  if (!bmp.begin()) 
  {
    Serial.println("Could not find BMP180 or BMP085 sensor at 0x77");
    while (1) {}
  }
}
 
void loop() 
{
  Serial.print("Temperature = ");
  Serial.print(bmp.readTemperature());
  Serial.println(" Celsius");
 
  Serial.print("Pressure = ");
  Serial.print(bmp.readPressure());
  Serial.println(" Pascal");

  Serial.println();
  delay(5000);
}
Anuncios