MicroPython v1.27 has been released!

https://github.com/micropython/micropython/releases/tag/v1.27.0

It includes support for new micros, a whole swag of new features and bugfixes - and further improvements to automated testing, particularly by leveraging HIL.

Congrats and thanks to the #MicroPython team!

Release ESP32C5, ESP32P4 & STM32U5 support, enhanced test suite, port Tier levels · micropython/micropython

This release of MicroPython adds support for ESP32-C5 and ESP32-P4 microcontrollers. The ESP32-P4 can work either standalone as a general purpose processor, or with an external wireless co-process...

GitHub
We’re back to business with the new weather station pcb, now without bodge wires #meshtastic #micropython
Zimowy okres bywa ciekawy. Ot taka tam zabawa ;-) #esp32 #micropython

Anyone has tried a BME280 sensor for reading humidity, temperature and air pressure?

I connected mine to an ESP32 yesterday and the humidity is shown way too high: 80% instead of 60% from a trustworthy sensor.

Is it broken or is this a known issue which has some workaround?

Thanks!

btw, I am using this library: https://github.com/robert-hh/BME280

#esp32 #micropython #bme280

>>> f"{math.pi:{space}.{precision}}"
' 3.141592654'

oh sweet, nested {} like this do work in #micropython. For some reason I thought they didn't

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'math' isn't defined
>>> math.pi
3.141592653589793
>>> import sys as math
>>> math.pi
3.141592653589793

well that's a little surprise. #micropython (*likely depending on build options) has special cases for specific constant expressions of the form module.attr, so it turns out you can access math.pi without importing math, or if you perversely import something else as math it is just ignored.

Implementing a #BTHome sender for #MicroPython for the third time.

(This time as a real library. The goal is to replace my two other implementations with it.)

(I know there already is one. I don't like its design.)

The November Melbourne #MicroPython Meetup - our last for the year! - is this Wednesday:

https://luma.com/r0rq9pl4

Hope to see you there, or online!

November Melbourne MicroPython Meetup · Luma

The November Melbourne MicroPython Meetup will be held at the CCHS and live-streamed and recorded over…

Join me at 7pm GMT tonight as we look at why people are moving from #Arduino/C++ to #Micropython (and #CircuitPython).

https://youtube.com/live/6cjYMklEsbk

Why is everyone switching to Micropython?

YouTube

The Pico 2 W now sends MQTT messages to Home Assistant, via the Mosquitto broker add-on.

The sensor is read by adding the following snippet to HA configuration.yaml:
...
mqtt:
sensor:
- name: "Temperature"
state_topic: "weather/inside"
suggested_display_precision: 1
unit_of_measurement: "°C"
value_template: "{{ value_json.temperature }}"
- name: "Humidity"
state_topic: "weather/inside"
unit_of_measurement: "%"
value_template: "{{ value_json.humidity }}"
- name: "Pressure"
state_topic: "weather/inside"
unit_of_measurement: "hPa"
value_template: "{{ value_json.pressure }}"
...

I also added the InfluxDB add-on, for possible longer data retention.

#micropython #pico2 #bme280 #homeassistant #mqtt #influxdb