{"id":13802424,"url":"https://gitlab.com/flowolf/micropython-bmp180","last_synced_at":"2025-05-13T13:31:10.986Z","repository":{"id":63911080,"uuid":"6655926","full_name":"flowolf/micropython-bmp180","owner":"flowolf","description":"micropython-bmp180 is a module for micropython which provides a class for the BMP180 pressure sensor","archived":false,"fork":false,"pushed_at":null,"size":null,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":null,"default_branch":"master","last_synced_at":"2024-08-05T00:07:18.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":null,"metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-04T11:58:10.167Z","updated_at":"2018-06-04T11:58:10.167Z","dependencies_parsed_at":null,"dependency_job_id":"2ea75d14-9d63-4b39-9b39-0fc678918f8f","html_url":"https://gitlab.com/flowolf/micropython-bmp180","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/flowolf%2Fmicropython-bmp180","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/flowolf%2Fmicropython-bmp180/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/flowolf%2Fmicropython-bmp180/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories/flowolf%2Fmicropython-bmp180/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners/flowolf","download_url":"https://gitlab.com/flowolf/micropython-bmp180/-/archive/master/micropython-bmp180-master.zip","host":{"name":"gitlab.com","url":"https://gitlab.com","kind":"gitlab","repositories_count":4515906,"owners_count":6543,"icon_url":"https://github.com/gitlab.png","version":null,"created_at":"2022-05-30T11:31:42.605Z","updated_at":"2024-07-18T11:24:13.055Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/gitlab.com/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:44.196Z","updated_at":"2024-11-18T17:31:25.062Z","avatar_url":null,"language":null,"readme":"micropython-bmp180 (ESP8266)\n==================\n\nModule bmp180\n-----------------\nbmp180 is a micropython module for the Bosch BMP180 sensor. It measures\ntemperature as well as pressure, with a high enough resolution to calculate\naltitude.\n\nThis code is based on [pyboard code](https://github.com/micropython-IMU/micropython-bmp180) by Sebastian Plamauer, [@turbinenreiter](https://github.com/turbinenreiter)\n\nBreakoutboard: http://www.ebay.at/itm/322193678288?_trksid=p2057872.m2749.l2649\u0026ssPageName=STRK%3AMEBIDX%3AIT\n\ndata-sheet: http://ae-bst.resource.bosch.com/media/products/dokumente/bmp180/BST-BMP180-DS000-09.pdf\n\nIf you have any questions, open an issue.\n\n### Wiring the sensor to the ESP8266\n(just an example, I2C is implemented in software an can be run on [any GPIO](http://docs.micropython.org/en/v1.8/esp8266/esp8266/quickref.html?highlight=i2c#i2c-bus) pin)\n\n| esp8266| bmp180 |\n|:------:|:------:|\n| 3V3    | VIN    |\n| GND    | GND    |\n| GPIO14 | SCL    |\n| GPIO12 | SDA    |\n\n### Working Setup\n\n![wiring](https://raw.githubusercontent.com/flowolf/micropython-bmp180/master/wiring_to_esp8266_nodemcu.png \"Wiring\")\n\n### Quickstart\n\nExample:\n```python\nfrom bmp180 import BMP180\nfrom machine import Pin\nbmp180 = BMP180(scl=Pin(14),sda=Pin(12),freq=100000)\nbmp180.oversample_sett = 2\nbmp180.baseline = 101325\ntemp = bmp180.temperature\np = bmp180.pressure\naltitude = bmp180.altitude\nprint(temp, p, altitude)\n```\n\nImportant Notice:  \nMake sure to either use this in fast loops or call gauge() in fast loops to make sure to always get current values. If you call pressure() once and then again 10 seconds later, it will report a 10 seconds old value. Look at the gauge() function in the source to understand this. Alternatively use the blocking_read() method.\n\nClasses\n-------\n``BMP180``  \nModule for the BMP180 pressure sensor.  \n![UML diagram](https://raw.githubusercontent.com/flowolf/micropython-bmp180/master/classes_BMP180.png \"UML diagram\")\n\n\nMethods\n--------------\n\n``compvaldump()``\nReturns a list of all compensation values.  \n\n``gauge()``  \nGenerator refreshing the measurements. Does not need to be called manually.\n\n``temperature``  \nNonblocking read of temperature in degree C.  \n\n``pressure``  \nNonblocking read of pressure in Pascal (divide result by 100 for millibar/hP).  \n\n``blocking_read()``  \nTrigger a read and wait until data is available.  \n\n``altitude``  \nAltitude in m.  \n\n\nInstance variables\n------------------\n``chip_id``  \nID of chip is hardcoded on the sensor.\n\n``oversample_sett``  \nSets the accuracy. Default: 0  \n* 0 lowest accuracy, fastest\n* 1\n* 2\n* 3 highest accuracy, slowest\n\n``baseline``  \nPressure at Main Sea Level. The default is 101325 Pa, but you can use your local QNH in Pa.  \nTo get different altitudes, use this as baselines:\n\n| altitude |       baseline |  \n|:--------:|:--------------:|  \n| absolute | local pressure |  \n| true     |        QNH*100 |  \n| pressure | 101325 or None |  \n","funding_links":[],"categories":["Libraries"],"sub_categories":["Sensors"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fflowolf%2Fmicropython-bmp180","html_url":"https://awesome.ecosyste.ms/projects/gitlab.com%2Fflowolf%2Fmicropython-bmp180","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/gitlab.com%2Fflowolf%2Fmicropython-bmp180/lists"}