Skip to content

jrleeman/BMP180

Repository files navigation

BMP180 Barometric Pressure Sensor

This code reads the BMP180 barometric pressure sensor by Bosch. Currently support for the Parallax Propeller in SPIN to supplement existing code for the Arduino provided by SparkFun Electronics. Testing was done with the BMP180 breakout board (link below) and a Propeller ASC+. Different resolutions are selected on sensor initialization as documented in the code.

Sensor Details

Sensor Breakout (Sparkfun)

Sensor Datasheet

Arudino Github Repo (Sparkfun)

Setup

  1. Connect the power headers of the sensor to ground and 3.3V respectively.
  2. Connect the clock line to pin 0 of the propeller.
  3. Connect the data line to pin 1 of the propeller.
  4. Power the microcontroller and load the 'Simple Sensor Read.spin' code
  5. Watch temperature and pressure readings come into the terminal!

Files

  • BMP180 Spin.spin - Spin object to read the sensor
  • BMP180.pdf - Local copy of device datasheet
  • I2C Spin driver v1.2.spin - I2C driver local copy
  • Sensor Resolution.spin - Streams readings at each sensor resolution setting to show timing and resolution changes
  • Simple Sensor Read.spin - Simple demonstration of how to read the temperature and pressure
  • README.md - This file

Notes

To-Do

  • Add abort handling in case sensor is not found

About

Code to read the BMP180 barometric pressure sensor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published