Objective:
In this project, we will use raspberry pi to get environment temperature, pressure from BMP180 sensor and calculate attitude, then display the result to monitor.
Parts and Devices
1 x raspberry Pi3
1 x GPIO to Breadboard 40-pin breakout interface
1 x BMP180
USB mouse and keyboard
1 x HDMI cable and monitor(or HDMI TV)
breadboard and jump wires
Circuit Graph:
Software Installation:
1)download BMP Python Library by typing following command:
wget –no-check-certificate http://osoyoo.com/driver/Adafruit_Python_BMP.zip
unzip Adafruit_Python_BMP.zip
2)install BMP Python Library
cd Adafruit_Python_BMP
sudo python setup.py install
3) test BMP180 program
cd examples
sudo python simpletest.py
4) result
after running code, you will see result as per following picture:
You must be logged in to post a comment
About the Author