Python code for BMP180
-
I leave here my first python code for getting temperature and pressure values out of the BMP180, I2C sensor.
Code a bit rough, but tested and working flawlessly.
pythoni2c.py has a few basic I2C routines that i am upgrading as i'm going
BMP180.py has the main routines for the sensor and prints out both values.
Hope this will do any good to some people.pythoni2c.py BMP180.py
-
@Pedro-Baco Great work! do you mind if we put that on our Github? Also, please add in the comment section your name and email so that the world knows it's your awesome work!
-
No problems, hope the code will help people out. I've already commented both files with the info you requested, and uploaded the updated files.
-
@Pedro-Baco Thanks!
-
Small mod on the board
-
@Pedro-Baco Omega + the Pressure-sensing mini dock!
-
Hi @Pedro-Baco , could you please provide the URLs to download your BMP180.py and pythoni2c.py codes. The ones you included on your first post do not allow me to download them. Regards.
-
Hi Luis, try the last two links on that same post, they should work
-
What does the output from your setup look like?
-
If you run BP180.py you'll get 1sec readings of temperature and pressure. I've changed it and now if i run it on background (python BMP180 &) it actually writes the values to 2 files, calle pressure and temp. This way i can always check the values using cat temp and cat pressure in the command line.BMP180_V2.py
-
Pedro - thanks for the code. I tried it on a DX.com board GY-65. That is equal to a BMP085 and works just fine.
Russ
-
Pedro - thanks for the code. Smart Light Switch
-
Thanks for addressing this topic. I was looking for the information regarding the same!