This prototype cycle for my temperature and humidity tracker is almost complete with a new 50% slimmer case. It's been quite a journey #electronics #kicad #esp32 #micropython #blender #3dprinting
This prototype cycle for my temperature and humidity tracker is almost complete with a new 50% slimmer case. It's been quite a journey #electronics #kicad #esp32 #micropython #blender #3dprinting
@matt_trentini and the summary was posted before the pizza was barely cold!
https://melbournemicropythonmeetup.github.io/July-2025-Meetup/
The July Melbourne #MicroPython Meetup is on tonight! Sean has hosting duties and will be delivering the News Roundup. Hope to see you there (or online)!
Hello #MakerMonday, it's time for #micropython. I built a giant colorful #legoeducation #RaspberryPi4 robot powered by the official @rpimag Build HAT. The battery pack is hidden under the platform. I am such a genius!
#maker #programming #STEM #robotics
For those not following #m68kMicroPython development, a lot has been happening rather quickly in the last couple of weeks!
There's enough support for the Toolbox now that I've been able to re-create the #Macstodon splash/loading screen with it - see below.
Big thanks to @stylus for all his hard work developing the port and making this possible!
#RetroComputing #RetroProgramming #VintageMac #Apple #Mac #MacOS #ClassicMac #68k #Python #MicroPython https://oldbytes.space/@smallsco/114889267494614758
I made a new release of m68k-micropython: https://github.com/m68k-micropython/micropython/releases/tag/20250720
This adds the following groups of mac APIs (which I didn't actually test):
#m68kMicroPython happenings: The "struct-types" branch is coming along. There are now autogenerated bindings for the following parts of the API: modmactypes.c
modqd.c
modtoolboxevent.c
modtoolboxutil.c
modwindowmgr.c
there's probably broken stuff but for instance you can now splat directly onto the screen
>>> scrn = qd.qdGlobals().screenBits
>>> n = scrn.bounds.bottom * scrn.rowBytes
>>> for i in range(n): scrn.baseAddr[i] = i
and types are checked:
>>> qd.FillRect(7, "blue")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Expected int, got Rect
um well except the error message is backwards
and in upstream #micropython land my exploration found that there were problems with the uctypes module and "REPR_B", so I'm working on fixing that and ensuring it stays fixed via the CI system: https://github.com/micropython/micropython/pull/17688
right at the moment, the micropython PR is failing for some reason that will probably be more obvious to me once I've had another night to recover from jet lag.
Why Lua Beats MicroPython for Serious Embedded Devs
「 Lua isn’t just compatible with embedded systems; the Lua ANSI C library was designed for them. Its architecture is clean, compact, and deterministic.
MicroPython, on the other hand, is a reimplementation of Python 3. It works well for many embedded use cases, but it inherits assumptions from a desktop-oriented language 」
https://www.embedded.com/why-lua-beats-micropython-for-serious-embedded-devs
It's teacher Tuesday!!
If you're teaching with or learning Raspberry Pi Pico programming using #MicroPython I've just shared five introductory programming activities for BEAPER Pico that you can easily adapt to other circuits!
Check them out: https://github.com/mirobotech/BEAPER-Pico
Here we go! An ESP32-S3 running MicroPython using each of the Monstera leafs as a capacitive touch pad.
Each pad works individually and multitouch works across all four too!
More tests: x2 devices reporting overnight. One on my desk and the other by a window that gets morning sun. Graphs made in #Grafana. Devices are ESP32C3, #Sensirion sensors and running #Micropython. Testing a smaller battery, hence diverging battery readings. #electronics #ESP32
I just published a #micropython #mqtt server and #python client for accessing a remote filesystem on a micropython device by mqtt.
See:
https://github.com/dov/upython-mqtt-file-server
Meanwhile I have used it for uploading photos to my #pimoroni #presto device.
This library solves the "grandma problem" of how to place a photo frame on grandma's mantle piece and push images to it without her interaction.
I'm getting closer to the enhanced version of the API wrapping tool I've been working on.
Now, even recursive structures like Region
(which contains a Rect
structure inside it) seem to have their type objects emitted correctly; I need to do more checking of the generated structure descriptions, though, especially as far as data alignment is concerned.
The main item left is to correctly return ctypes structures and to verify the types of structures passed in.
Once this gets to a good spot, I'll separate the uctypes enhancements (named structure types) and see whether upstream is interested in them.
WIP code is up at https://github.com/m68k-micropython/micropython/pull/11
Lua beats MicroPython for serious embedded devs
https://www.embedded.com/why-lua-beats-micropython-for-serious-embedded-devs
I am a sucker for opto-electronics, so got this discarded kit (ex CNN's London studio?)
Each button has a 36x24 LCD display and red+green LEDS.
Well-designed hardware: ColdFire (=68k) CPU, plenty of RAM, plenty of FLASH, serial port, ethernet etc.
Firmware ? Not so impressive, but very easy to get rid of:
Anybody can flash new firmware from ethernet: No userid, no password, all you need to know is the IP# and how they botched their CRC-16 implementation.
Now it runs #MicroPython :-)
2nd custom sensor board created and working
1) macro shot of solder paste.
2) parts placement in progress
3) finished and functioning
#electronics #esp32 #micropython #kicad
Looking for a QMI8658 IMU library for MicroPython. The one used in the Wemos S3 Mini Pro has the following methods: invSqrt, test, read_temp, read_accel, read_gyro and get_euler_angles — but the actual source code doesn't seem to exist anywhere
My latest blog post: Metronalmost
https://mikecoats.com/metronalmost/
This metronome, by design, will never, ever, tick exactly once per second. This infuriating object is designed to thwart the goals of @hackaday's One Hertz Challenge contest.
Temperature and humidity sensor development continues on the software front. Sleeping the hardware for 4secs between reads yields ~34.5 hour life with a 1100mAh battery. Going to try caching data on the device and connecting/sending across the network less often next. #esp32 #micropython
I went ahead and created a github organization for a fresh fork of micropython, and then made a release. You can get a fresh dsk of this micropython mac port from https://github.com/m68k-micropython/micropython/releases and as @smallsco noted it works on infinitemac.org