Skip to content
/ okapi Public

Java API to Bosch BMP180 Digital pressure sensor over I2C bus.

License

Notifications You must be signed in to change notification settings

tellison/okapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

891b8be · Nov 25, 2022

History

64 Commits
Nov 25, 2022
Jul 7, 2016
Jul 14, 2016
Jul 7, 2016
May 5, 2022
Jul 7, 2016
Jul 7, 2016
Jul 13, 2016
Jul 7, 2016
Nov 25, 2022
Feb 9, 2022

Repository files navigation

A Java API to the Bosch BMP180 Digital pressure sensor.

This project provides a Java API to the Bosch BMP180 Digital pressure sensor. The sensor is available on an inter-integrated circuit (I2C) bus.

Key information about control of the device is found in the device data sheet, which was the source for much of this material.

The project comes with tests that run on an included emulator class, and utilities for operations typically undertaken with the results from this device.

Example Usage

The simple use of this code is as follows:

 try (BMP180Device device = new BMP180Device()) {
     float[] values = device.getTemperatureAndPressure();
     float temperature = values[0];
     float pressure = values[1];
 } catch (IOException e) {
   // Error
 }

Problems and Issues

Any problems please raise a Git issue.

Release Notes

  • 0.1.1 - Bug fix on retrieving device id.
  • 0.1.0 - Initial version.