1、实验目的:
BMP180是一款精度高、功耗低、体积小压力传感器,本实验我们利用Raspberry pi 驱动BMP180数字气压传感器模块,检测环境温度、气压、海拔等值,并通过arduino IDE的监控终端打印出来。
2、实验器材:
1 x raspberry pi
1 x BMP180
1 x 跳线若干
4、实验代码:
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