#micropython
Rotary encoders are neat. Just added one to my project for digital volume control, after having implemented #HomeAssistant #MQTT discoverability and control with #MicroPython. Figured a physical aluminum knob might be nice too. I also tossed in an IC to switch between multiple input sources, and everything gets summarized onto a small OLED display.
This project started out as a replacement for a faulty inline attenuator dial 😅
Maybe it's fun to share some day to day developments... Today I'm working on making our #Pybricks sensor API async-compatible at minimal cost.
Every byte counts, so I've arrived at something that costs just 4 extra bytes for each async method! Still learning new #MicroPython development tricks every day.
For those in the know... I'm basically modifying the commonly used MP_DEFINE_CONST_FUN... macros/types to "decorate" a C function to behave asynchronously.

I'm not a natural coder but I'm tinkering converting the drop pod parachute deployer code to be used to test the "Burn Baby Burn" little nichrome cutter boards I'm making. #Micropython #RP2040

ICYMI Python on Microcontrollers Newsletter: CircuitPython 8.1.0.RC0 is out, LEGO Minecraft Blocks with Python & more! #CircuitPython #Python #micropython #ICYMI @Raspberry_Pi
https://blog.adafruit.com/2023/05/24/icymi-python-on-microcontrollers-newsletter-circuitpython-8-1-0-rc0-is-out-lego-minecraft-blocks-with-python-more-circuitpython-python-micropython-icymi-raspberry_pi/
A long time coming, but ESP NOW support has been merged in #MicroPython! nice
Getting ready for the monthly #MicroPython meetup to kick off. Lurking in Zoom waiting to see the latest goodies 🙂
Micronale du mercredi lancée !
Aujourd'hui, nous allons commencer le mooc "Programmer un objet avec MicroPython" disponible gratuitement sur la plateforme FUN MOOC en collaboration avec Vittascience.
FUN MOOC : https://www.fun-mooc.fr/fr/cours/programmer-un-objet-avec-micropython/)
Vittascience : https://fr.vittascience.com
Chaîne Twitch formamac : https://www.twitch.tv/formamac 🍎
Venez découvrir la programmation de manière simple et ludique 😉
#stream #streaming #twitch @micropython #micropython #mooc #programming

The #MicroPython meetup is happening in Melbourne in a bit, so I’m going to get some sleep here in the UK, and start my day with some tech knowledge in the morning 🐍
Making a 100% working LEGO® Shulker Box from Minecraft #Minecraft #LEGO #Python #MicroPython
https://blog.adafruit.com/2023/05/23/making-a-100-working-lego-shulker-box-from-minecraft-minecraft-lego/
Nach dem Lesen einiger Texte bin ich zu dem Schluss gekommen, dass man beim Raspberry Pi Pico den Loop in #MicroPython einfach manuell über "while True:" erstellen muss. Bei Arduino ist dieser einfach schon vordefiniert. Also eigentlich dieselbe Funktionsweise.
#RaspberryPiPico #RaspberryPi #Microcontroller #Mikrocontroller
A look at the current state of MicroPython.
"The MicroPython programming language implements a sizable subset of Python that can run on microcontrollers, thus bringing Python's easy-to-learn syntax, readability, and versatility to the embedded world. [...] The project has come a long way since its inception ten years ago, making it an easy-to-use tool for developing software for resource-constrained environments."
ESP32-POE and ESP32-POE-ISO now can be ordered with WROVER modules and 8MB of PSRAM! https://olimex.wordpress.com/2023/05/18/esp32-poe-and-esp32-poe-now-can-be-ordered-with-wrover-module-with-8mb-psram/ #esp32 #micropython #esphome #arduino #platformio
ICYMI Python on Microcontrollers Newsletter: 400 CircuitPython Compatible Boards, Hackaday Supercon and much more! #CircuitPython #Python #micropython #ICYMI @Raspberry_Pi
https://blog.adafruit.com/2023/05/17/icymi-python-on-microcontrollers-newsletter-400-circuitpython-compatible-boards-hackaday-supercon-and-much-more-circuitpython-python-micropython-icymi-raspberry_pi/
#Micropython könnte auch eine überarbeitete Doku vertragen, speziell wie man die richtigen Pins für #I2C findet
Ich versuche gerade herauszufinden, wie die Programmierung mittels #MicroPython bspw. auf dem #RaspberryPiPico funktioniert. Ist das ähnlich wie bei #Arduino, also mit init und loop im Coding, oder ganz anders? Ich habe schon eine Weile gesucht, kann da aber nichts konkretes finden. Kann mir dazu jemand helfen?
Time for some #retrocomputing to celebrate 25 years of #LEGO #MINDSTORMS! Anyone remember the RCX from 1998?
Coded with #Pybricks #MicroPython!
#micropython The weird importing sitch keeps stopping and starting again and I'm honestly a little baffled. Like, I've used Python for years; in general, my problems are high level stuff, not making functions work.
I do wonder however if it's also a problem with the mix between micropython and #circuitpython with the authonomous robot framework being sketch together. Separately, I can run the server and do robot things fine, it's running the robot from a webpage that causes problems.
Yes, it can be a bit frustrating at times, especially if you find out thing a) best works in #CircuitPython, thing b) in #Micropython, but thing c) only works in C/C++ (and of course you've already started writing your code in either a) or b) )...
ICYMI Python on Microcontrollers Newsletter: RasPi OS Major Update, KiCad Conference Announced and Much More! #CircuitPython #Python #micropython #ICYMI @Raspberry_Pi
https://blog.adafruit.com/2023/05/10/icymi-python-on-microcontrollers-newsletter-raspi-os-major-update-kicad-conference-announced-and-much-more-circuitpython-python-micropython-icymi-raspberry_pi/
#micropython question: so I'm having a problem importing from the Kitronik file
So I have the following files on the pico
PicoAutonomousRobotics.py - 1 class
picozero - may classes
I got the webserver up using the instructons from RaspberryPI for Pico. On the webpage are buttons ot turn on and off the pico LED. That all works.
I imported KitronikPicoRobotBuggy from the robotics file as it has four LEDs and a buzzer, But it keeps giving me an error when I assign to variable.
#micropython it is super lowering that I apparently cannot successfully close a goddamn socket.
All I want to control Marshall Copenhagen from a webpage over wifi I just built so it's easier to test his functions. As doing it by physical button is...lets say not recommended unless you have a very clean floor and don't mind him taking off at random.
Great post on using PyCharm with #MicroPython by my friend @codepope -> https://codepope.dev/post/2023/05/micropythonpycharm/
Just a bit of #pico #micropython #python #pycharm blogging - https://codepope.dev/post/2023/05/micropythonpycharm/ - enjoying PyCharm CE for coding on the Pico…
Updated the Pimoroni (are they on Mastodon yet?) Pico Enviro+ #MicroPython sample to use nicer vector/Hershey fonts, and to also emit the readings via #MQTT terrible "hacky-didn't-have-time-for-better-but-it-works" code https://github.com/andypiper/picow-enviroplus

MicroPython – latest newsletter update #MicroPython @micropython
https://blog.adafruit.com/2023/05/04/micropython-latest-newsletter-update-micropython-micropython/
The build instructions for the BurgerBot #robot look great (if I don't say so myself).
Check them out (There is also the #micropython code here too).
https://www.kevsrobots.com/learn/burgerbot/02_assembly.html

ICYMI Python on Microcontrollers Newsletter: MicroPython v1.20.0 and CircuitPython 8.1.0-Beta.2 Released and Much More! #CircuitPython #Python #micropython #ICYMI @Raspberry_Pi
https://blog.adafruit.com/2023/05/03/icymi-python-on-microcontrollers-newsletter-micropython-v1-20-0-and-circuitpython-8-1-0-beta-2-released-and-much-more-circuitpython-python-micropython-icymi-raspberry_pi/
Excellent evening at Oxford Python (thanks GitHub for hosting!). The work on CPython performance down to examining the way stack can be optimised and all of the other thought going on makes me grateful for smart folks who just enable me to enjoy writing code in Python! Wasp OS looks interesting for #MicroPython on wearables. 👀
So looking forward to today's #Oxford #Python 🐍 meetup, with awesome talks about #Python performance 🚀 by Mark Shannon and #micropython on wearables ⌚ by Piers Storey!
Hope to 👀🫵 there!
https://www.meetup.com/oxfordpython/events/293030356/
Happy 10th birthday #MicroPython! 🎉
Happy 10th birthday to #MicroPython @micropython - one of my favourite things to hack on gadgets with! ❤️ check out the fun timeline the project just published to mark the occasion https://micropython.org/resources/MicroPython10YearsPoster.pdf
Insane idea of the day: using Micropython to create a Forth environment on a SBC
@graemewinter I’ll try to share more #MicroPython news and make things a little more transparent! Feel free to ask me any questions if there’s anything specific you’d like to know. I should say: I don’t represent the core team but I do try to keep abreast of what’s going on!
Rather than a "Hello world!" first post, here are some of the microcontrollers, hubs, etc. that I'm making blink as I learn MicroPython, PyBricks, and NXC.
I'm excited to get back to being creative after a lot of change in my life.
#pybricks #micropython #NXC #minisamm4 #attiny85 #attiny88 #raspberrypipicow #arduinonano #d1tiny #raspberrypi4 #raspberrypibuildhat #NXT #EV3 #technichub #burningmanmikeminifig

MicroPython v1.20.0 on 2023-04-26; Raspberry Pi Pico W with RP2040
Yup: 300 days after the release of the Raspberry Pi Pico W, it gets its first official MicroPython release.
Firmware image here:
https://micropython.org/download/rp2-pico-w/
📢 Pythoneers, verzamel!
Deel kennis en ervaringen op de volgende Python User Group (4 mei Brussel). Met collega @AndresAlgaba1 wordt #PyTorch een lichtje in de duisternis en met @BartSmeets11 en #MicroPython hack je er je favoriete board.
👉 https://www.vaia.be/nl/opleidingen/python-user-group-belgium-meet-up
Time to make your #MicroPython libraries mip-ready for v1.20! https://docs.micropython.org/en/latest/reference/packages.html?highlight=mip
At the #MicroPython meetup, Damien George is announcing the release of v1.20 https://github.com/micropython/micropython/releases/tag/v1.20.0 (downloads to follow in the next few hours)
v1.20.0: New mip package manager, compressed type structs and Pico W support — https://github.com/micropython/micropython/releases/tag/v1.20.0
(the paint's not dried yet)
#MicroPython
A brand new #Pybricks #MicroPython beta release is out now!
Highlights:
- Support for reading the robot heading with the gyro.
- New GyroDriveBase class! It's the DriveBase you love, but it uses the gyro for straights and turns.
- Under the hood improvements as we prepare for wireless communication between hubs!
Try it out at: https://beta.pybricks.com/
Feedback:
https://github.com/pybricks/support
Sponsor Pybricks:
https://github.com/sponsors/pybricks
The monthly #MicroPython meetup in Melbourne is tomorrow - I've been able to attend remotely for the past year or so, and it is always super interesting. Take a look.
@Natanox I've been having fun with #micropython on #esp32.
Behold, the Weathertron™ ⛈️😎
Quite pleased with this little hack which displays a rolling two hour weather forecast from AccuWeather via the magic of #Selenium, #ImageMagick, #MicroPython and #RP2040 using an #InkyFrame from those lovely #pimoroni folk
I've had to learn about memory fragmentation on the Pico. Fun! Well, not fun, not at the time, but useful now I've gotten through it. http://karlbunyan.com/2023/04/lcds-and-pico-memory-management/ #RaspberryPico #micropython
Jumping between #Fediverse and #MastodonAPI planning, and #MicroPython coding projects, and #OpenSource talk planning... 😓
Very neat #MicroPython-based solution and great video!
Welp, I applied for my first job in London a couple of days ago, and have already been rejected!
I don't feel too bad - I don't have the management experience they were looking for. It was a long shot.
So I'm still looking for ethical tech work in London next winter. I'm very useful, someone should totally hire me!
Recent skills I haven't mentioned on this thread yet: I did some neat things with #Micropython, the #ESP32 and the #RaspberryPiPico. Fun tech.
Oh, nice - #Wokwi now has an initial version of #PicoW available for simulations https://wokwi.com/projects/360519097147837441 #MicroPython
Prototype success! #MicroPython web->RF bridge to adjust the LED strip in my #3dprinter - now to work more on complete code and make a small enclosure.
2/2
which defeated the whole purpose of me not having to be aware of the timer, So I again went back to the basics and built a new Simple Butt Mover- https://github.com/abishekmuthian/simpleButtMover which I use regularly now with huge quality of life improvement.
Current status: playing with several #micropython projects at once on a breadboard kit (some wifi, some RF control, some API)
If you can use UDP instead of TCP to avoid buffering. And for a fast reaction.
Sample Code for sending OSC via UDP from a Pi Pico W
https://gitlab.com/-/snippets/2519366
PIN 22 is a digital input.
When the state of pin 22 is changing a simple OSC / UDP packet is sent.
@yaxu Do not know if this code really helps:
https://gitlab.com/-/snippets/2519356
I am using OSC over UDP to control 4 servo motors or LEDs that are connected to a Pi Pico W.
Sending 4 floats from a #SuperCollider task. On the Pi Pico these messages are used for the duty cycles of the PWM units.
But UDP massages can go lost.
Looking forward to hanging with @andypiper next week! Making and Learning!
Come hang with us Wednesday, March 29th at 5 pm UTC!
Reminder: https://idev.fyi/schedule/#andy-piper-making-and-learning
**#micropython** **#mqtt** **#iot**
The monthly #MicroPython meetup is happening now - online and in Melbourne. Zoom link available on meetup.
Looks like this watch, https://www.tindie.com/products/adz1122/pi-pico-rp2040-128-inch-tft-display-watch-board/, is similar to (based on?) the #Waveshare board that uses the same 1.28-inch display, https://www.waveshare.com/wiki/RP2040-LCD-1.28. This means their example code works out of the box on stock #MicroPython firmware, https://gist.github.com/aallan/8f22a32c73696fe61c4c43d00063faa4. Nice!
Looks like the unidentified display is a GC9A01. So it's drivable from both #CircuitPython, https://github.com/todbot/CircuitPython_GC9A01_demos, and from #MicroPython, https://github.com/russhughes/gc9a01_mpy. Quick "Hello World!" example in MicroPython at https://gist.github.com/aallan/2e86e36177b42c919697c9d8682e36e8.
The entire project is made with open source tools:
- #MicroPython for coding
- #Pybricks for running code on LEGO
- LDRAW for #LEGO 3D model
- LPUB3D for instructions layout
- @kdenlive for video editing
- And of course @ubuntu to power it all
What do you get if you mix #LEGO Duplo with #micropython, #Python, and #Pybricks? I built this for my daughters and they had a blast playing with it 😄
OK, this Tulip device by @bwhitman looks interesting #Python #MicroPython I wonder if the boards could be done via JLC… https://www.hackster.io/news/the-tulip-creative-computer-is-a-python-developer-s-dream-217ffe52dc84
@antirez hi! I heard through the grapevine that you're working on a MicroPython SX1276 driver.
Project looks really neat, I intend to dig into the "FreakWAN" protocol as it seems like there's a real gap in available #LoRa protocols between "simple one way packets" and "full LoRaWAN stack".
If you're interested, I've also been working on a lora driver for upstreaming into #micropython - https://github.com/micropython/micropython-lib/pull/501 - would love any feedback on suitability/not for your needs, or any other input you might have.