gballan 2d2e31ec29
ci/woodpecker/push/woodpecker Pipeline was successful
Updated README
2026-09-07 22:55:31 -04:00
2026-09-06 00:40:32 -04:00
2026-09-06 00:26:27 -04:00
2026-09-06 01:25:14 -04:00
2026-09-06 01:27:32 -04:00
2026-09-07 22:55:31 -04:00

pico-thermo

Woodpecker CI badge shields.io version badge

A MicroPython app to read data from BME280 sensor and send it to Home Assistant.

Hardware

The following hardware is what I used for a deployment:

Most (or all?) of these components can be swapped for equivalent components. You just need to make sure the code is compatible with whatever board you choose (not likely), is a genuine BME280 sensor, and an SSD1306 display.

Support for other hardware types may come in the future, but if there's a specific sensor or board you're interested in, please submit an issue or pull request!

Prototyping

To help with debugging/testing deployments, I also used these components:

These are not necessary to run the app, but can be useful for testing and/or flashing several nodes.

Software Deployment

Requirements

  • MicroPython - MicroPython downloads
  • mpremote - MicroPython remote serial tool
  • (Linux users) Your user should be a part of the dialout group

Steps

  1. Connect your BME280 sensor and SSD1306 display to your Pico.
    1. You may need a breadboard for this, else you can use splitters.
  2. Connect your Pico to your PC via a micro-USB to USB type-A cable.
  3. Flash your Raspberry Pi Pico with MicroPython.
    1. This has been tested with MicroPython 1.29, but other versions should work.
  4. Clone this git repository: git clone https://git.metaunix.net/BitGoblin/pico-time.
  5. cd into the repo: cd pico-time.
  6. Copy config.example.py to config.py and edit the settings to match your environment.
  7. Copy the Python code over to the Pico:
    1. mpremote cp main.py :main.py
    2. mpremote cp config.py :config.py
  8. Reset the Pico: mpremote reset

If it worked you should see the display show a message about connecting to WiFi, then eventually a readout of the current temperature to the SSD1306 display. If it failed, you can monitor the app via mpremote repl or using an IDE like Thonny.

License

This project is made available under the BSD 3-Clause license.

S
Description
MicroPython app to read data from BME280 sensor and send it to Home Assistant
Readme BSD-3-Clause 70 KiB
2026-09-06 01:27:32 -04:00
Languages
Python 100%