https://github.com/andypiper/picow-enviroplus
MicroPython code for the Pico Enviro+ Pack from Pimoroni
https://github.com/andypiper/picow-enviroplus
enviro micropython pimoroni rpi-pico sensors
Last synced: about 1 year ago
JSON representation
MicroPython code for the Pico Enviro+ Pack from Pimoroni
- Host: GitHub
- URL: https://github.com/andypiper/picow-enviroplus
- Owner: andypiper
- License: mit
- Created: 2023-05-05T12:59:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-13T10:03:58.000Z (almost 3 years ago)
- Last Synced: 2025-03-15T14:18:56.992Z (over 1 year ago)
- Topics: enviro, micropython, pimoroni, rpi-pico, sensors
- Language: Python
- Homepage:
- Size: 397 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pico W Enviro+ Pack sample
This is the [MicroPython](https://micropython.org) code that I'm running on the [Pico Enviro+ Pack from Pimoroni](https://shop.pimoroni.com/products/pico-enviro-pack).
- requires Pimoroni's [pirate-branded MicroPython for Pico](https://github.com/pimoroni/pimoroni-pico) 🏴☠️️
My Enviro+ sits on top of a Pico W. I wanted it to show the text display of the current environmental parameters, and also to publish the information to my MQTT broker at the same time. The [sample code from Pimoroni](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/pico_enviro) is either/or, so, this repository contains an unholy mashup of a couple of chunks of their code, until I get around to doing something better.
Rather than using the full Enviro self-provisioning code from the standalone products, this is using a lightly-modified version of the `network_manager` code from Pimoroni as well.
In addition, I thought I'd noodle around with using the vector-ish Hershey fonts instead of using the bitmap ones, which gave me a chance to tinker with [PicoGraphics](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/modules/picographics). I'm happy with the result!

I also modified the network code to enable setting the device name (new in MicroPython 1.20).
- open `config.py.example` in Thonny to add your wifi details (and save it as `config.py` when you're done). You'll also need to add MQTT details in there.
- for MQTT, you'll need to install `micropython-mqtt.simple` using Thonny's 'Tools' > 'Manage Packages' (or using `mip` - to be documented)
- transfer `config.py`, `main.py`, `network_manager.py` and the `lib` directory to your Pico.
- for the PMS5003 particle sensor, requires the correct driver:
`mip.install("https://raw.githubusercontent.com/pimoroni/pms5003-micropython/main/package.json")`
Tested / running on MicroPython 1.20[.1] 👍🏻️
Now if you'll excuse me, I'm off to [design 3D printed cases](https://www.printables.com/@AndyPiper) for Pimoroni products...
## License
[MIT](./LICENSE) (which matches the original Pimoroni code this is derived from)