{"id":21376914,"url":"https://github.com/codesqueak/pi_pico_bme280","last_synced_at":"2025-07-13T10:31:12.413Z","repository":{"id":54688750,"uuid":"334738249","full_name":"codesqueak/pi_pico_bme280","owner":"codesqueak","description":"A demonstration project on how to talk to a device on the I2C bus. This uses microPython on the Pi Pico with a BME280 Temperature Humidity Pressure Sensor","archived":false,"fork":false,"pushed_at":"2021-02-03T20:32:21.000Z","size":115,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T09:02:00.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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":"https://github.com/codesqueak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-31T19:25:33.000Z","updated_at":"2024-10-08T10:11:09.000Z","dependencies_parsed_at":"2022-08-14T00:01:10.215Z","dependency_job_id":null,"html_url":"https://github.com/codesqueak/pi_pico_bme280","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codesqueak/pi_pico_bme280","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2Fpi_pico_bme280","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2Fpi_pico_bme280/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2Fpi_pico_bme280/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2Fpi_pico_bme280/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesqueak","download_url":"https://codeload.github.com/codesqueak/pi_pico_bme280/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesqueak%2Fpi_pico_bme280/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265128219,"owners_count":23715621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T09:18:10.917Z","updated_at":"2025-07-13T10:31:12.163Z","avatar_url":"https://github.com/codesqueak.png","language":"Python","funding_links":["https://www.buymeacoffee.com/codesqueak"],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Pico with BME280 Sensor\n\nA small project to demonstrate how to talk to a device on the I2C bus without third party libraries.\nThis uses microPython on the Pi Pico with a BME280 Sensor.\n\nThe BME280 is an environmental sensor capable of measuring temperature, pressure and humidity\n\n## Setup\n\nAttach the sensor to the Pi Pico as shown below\n\nPi Pico | Pin | BME280\n------ | ------- | -------\nGP0 | 1 | SDA\nGP1 | 2 | SCL\nGND | 3 | GND\n3V3(OUT) | 4 | 2-6V\n\n![Pi Pico](connections.png)\n\n## Code\n\nThe [code](main.py) is in a style to aid understanding rather than being production ready. For example:\n\n* The calculations are presented as close to the examples in the datasheet as possible\n* Constant values are re-read on each run instead of being stored\n* No checks for sensor existence or readiness are included\n* Lots of output !\n\n## Example Output\n\n```\ni2c devices found at\n0x76\n\nSensor data\n\n0x88: 66 6F B8 69 32 00 B0 92 \n0x90: BA D6 D0 0B F1 19 DC FF \n0x98: F9 FF AC 26 0A D8 BD 10 \n0xa0: 00 4B 79 00 00 00 00 00 \n0xa8: 00 00 00 00 33 00 00 C0 \n0xb0: 00 54 00 00 00 00 60 02 \n0xb8: 00 01 FF FF 1F 4E 08 00 \n0xc0: 00 40 6F FF 00 00 00 00 \n0xc8: 03 00 00 00 00 00 00 00 \n0xd0: 60 00 00 00 00 00 00 00 \n0xd8: 00 00 00 00 00 00 00 00 \n0xe0: 00 74 01 00 12 28 03 1E \n0xe8: 00 41 FF FF FF FF FF FF \n0xf0: FF 00 03 0C 6F 00 00 55 \n0xf8: EE 40 82 2F 80 6A E1 80 \n\nTemperature is 24.43 degrees\nPressure is 980.704 mbar\nHumidity is 47.62598 %\n```\n## Useful Links\n\nThe [BME280](https://shop.pimoroni.com/products/bme280-breakout) sensor used\n\nBosch [datasheet](https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme280-ds002.pdf) for the sensor\n\n## Coffee\n\nIf you find this project useful, you may want to [__Buy me a Coffee!__ :coffee:](https://www.buymeacoffee.com/codesqueak) Thanks :thumbsup:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesqueak%2Fpi_pico_bme280","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesqueak%2Fpi_pico_bme280","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesqueak%2Fpi_pico_bme280/lists"}