Saturday, January 31, 2015

BMP180 setup

I have finally soldered my BMP180 to the pins and hooked it up to the circuit board. I am in the process of mounting the pi and the circuit board to the platform, so expect pictures soon.

In setting up the bmp180, I followed the directions at: https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi

I had everything working up to where I could run simpletest.py. It didn't work at first, so I changed every code that referenced "BMP085" to "BMP180". That didn't work either. 

I looked at the procedure and found my problem. On the overview, it instructs to set up the I2C following the directions on: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c

I thought I had done that for my DHT Temperature Sensor, but when I followed the procedure, it all went smoothly, but the "BMP180" setting didn't work in the simpletest.py program.  I switched it back to "BMP085", and it worked fine.

Bottom line: follow the procedures exactly, and even though you are using a BMP180, leave the code referencing a BMP085, and it will work. Apparently, according to the website, the 180 is the same thing as a 085, but updated. So, the code for the 085 is still the same.

I'll work on getting the exact code needed for using the BMP180 written up here in the next day or two.

Next on the agenda:
  1. Mount the Pi and the Circuitboard on the platform
  2. Test how much sunlight affects the DHT22. If it's a significant amount, then I'll need to rig an insulator to block the sun, but allow the air to reach the sensor.

No comments:

Post a Comment