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.
Arudino Github Repo (Sparkfun)
- Connect the power headers of the sensor to ground and 3.3V respectively.
- Connect the clock line to pin 0 of the propeller.
- Connect the data line to pin 1 of the propeller.
- Power the microcontroller and load the 'Simple Sensor Read.spin' code
- Watch temperature and pressure readings come into the terminal!
- 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
- This used Chris Gadd's I2C Routines object found on the Parallax Object Exchange
- Pull-ups are required with this setup, but that can be modified by using the push-pull object in the I2C Routines.
- Add abort handling in case sensor is not found