Linkit One and BMP180 example

The BMP180 is a digital barometric pressure sensor of Bosch Sensortec, with a very high performance, which enables applications in advanced mobile devices, such as smartphones, tablet PCs and sports devices. It follows the BMP085 and brings many improvements, like the smaller size and the expansion of digital interfaces.

The ultra-low power consumption down to 3 μA makes the BMP180 the leader in power saving for your mobile devices. BMP180 is also distinguished by its very stable behavior (performance) with regard to the independency of the supply voltage.

 

Layout

Using the sensor is easy. For example, if you’re using an Arduino, simply connect the VIN pin to the 3v3 voltage pin, GND to ground, SCL to I2C Clock (Analogue 5) and SDA to I2C Data (Analogue 4)

You can see this in the layout below

linkit and bmp180
linkit and bmp180

Code

Again this works fine with the Adafruit library – https://github.com/adafruit/Adafruit-BMP085-Library

 

#include <Wire.h>
#include <Adafruit_BMP085.h>

// Connect VCC of the BMP180 sensor to 3.3V
// Connect GND to Ground
// Connect SCL to i2c clock  thats A5
// Connect SDA to i2c data  thats A4

Adafruit_BMP085 bmp;
  
void setup() 
{
  Serial.begin(9600);
  if (!bmp.begin()) 
  {
  Serial.println("BMP180 sensor not found");
  while (1) {}
  }
}
  
void loop() {
    Serial.print("Temperature = ");
    Serial.print(bmp.readTemperature());
    Serial.println(" *C");

    Serial.print("Altitude = ");
    Serial.print(bmp.readAltitude(101500));
    Serial.println(" meters");
    
    Serial.println();
    delay(1000);
}

 

Links

GY-68 BMP180 Replace BMP085 Digital Barometric Pressure Sensor Module For Arduino