Masthash

#micropython

Correl Roush
6 hours ago

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 😅

#audio #electronics

Laurens Valk (Pybricks)
2 days ago

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.

@matt_trentini @jimmo

concretedog
4 days ago

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

Screenshot of "Thonny" a micropython editor setup for the RP2040 or raspberry pi pico. In the code an IRQ handler is defined that fires the nichrome cutter circuit for 3 seconds.
Andy Piper
4 days ago

A long time coming, but ESP NOW support has been merged in #MicroPython! nice

Andy Piper
4 days ago

Getting ready for the monthly #MicroPython meetup to kick off. Lurking in Zoom waiting to see the latest goodies 🙂

formamac
4 days ago

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

Andy Piper
4 days ago

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 🐍

Simon Deutschl
5 days ago

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

Soh Kam Yung
1 week ago

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."

https://lwn.net/Articles/931051/

#Python #MicroPython #Microcontrollers #Programming

rena2019 ☑️
2 weeks ago

#Micropython könnte auch eine überarbeitete Doku vertragen, speziell wie man die richtigen Pins für #I2C findet

Simon Deutschl
2 weeks ago

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?

#Microcontroller #Mikrocontroller #RaspberryPi

Laurens Valk (Pybricks)
2 weeks ago

Time for some #retrocomputing to celebrate 25 years of #LEGO #MINDSTORMS! Anyone remember the RCX from 1998?

Coded with #Pybricks #MicroPython!

Seperis
2 weeks ago

#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.

AxWax
3 weeks ago

@rasterweb

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) )...

Seperis
3 weeks ago

#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.

Seperis
3 weeks ago

#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.

Andy Piper
3 weeks ago

Great post on using PyCharm with #MicroPython by my friend @codepope -> https://codepope.dev/post/2023/05/micropythonpycharm/

Codepope
3 weeks ago

Just a bit of #pico #micropython #python #pycharm blogging - https://codepope.dev/post/2023/05/micropythonpycharm/ - enjoying PyCharm CE for coding on the Pico…

Andy Piper
3 weeks ago

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

A white circuitboard in portrait orientation with a large screen down the centre. There is a label "pico enviro+" across the top in black print. The screen shows various environmental readings (17.2 degrees centigrade in green, followed by relative humidity, pressure, light). There are buttons at the four corners of the screen labelled B/A/Y/X, and some sensors along the bottom of the board.

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

sake-chang
4 weeks ago
Andy Piper
4 weeks ago

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. 👀

Carlos
4 weeks ago

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/

Ricardo Martín
1 month ago

Happy 10th birthday #MicroPython! 🎉

Andy Piper
1 month ago

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

bitzero
1 month ago

Insane idea of the day: using Micropython to create a Forth environment on a SBC

#forth #micropython

Matt Trentini
1 month ago

@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!

Mike Tarrant
1 month ago

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

A photo showing a few of the microcontroller boards and LEGO hubs that I'm learning to program.

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/

#MicroPython #RaspberryPiPico #RP2040

VAIA
1 month ago

📢 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

Andy Piper
1 month ago
Andy Piper
1 month ago

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

Laurens Valk (Pybricks)
1 month ago

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

#LEGO #SPIKE #MINDSTORMS #learntocode #python

Andy Piper
1 month ago

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.

https://www.meetup.com/micropython-meetup/events/292404130/

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

Photo of an e-ink display showing the weather forecast. The shaded area at the bottom of the screen indicates how much how much it will rain. There will be rain.
Karl Bunyan
1 month ago

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

A 1.3inch LCD showing London Central Line tube status with the next four eastbound and westbound arrival times
Andy Piper
2 months ago

Jumping between #Fediverse and #MastodonAPI planning, and #MicroPython coding projects, and #OpenSource talk planning... 😓

AxWax
2 months ago

@GurgleApps @arduino

Very neat #MicroPython-based solution and great video!

Bjarni |grep -i tech
2 months ago

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.

#jobsearch #getFediHired

Andy Piper
2 months ago

Oh, nice - #Wokwi now has an initial version of #PicoW available for simulations https://wokwi.com/projects/360519097147837441 #MicroPython

Andy Piper
2 months ago

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.

A Raspberry Pi Pico W on a black breadboarding kit. The pin are broken out along the sides and numbered. There are some jumper leads connected from the breakout pins to a small square FS1000A RF transmitter board.
Abishek Muthian
2 months ago

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.

#python #micropython #ESP8266

Andy Piper
2 months ago

Like this. #MicroPython #RF

A Raspberry Pi Pico W on a prototyping board. The Pico on the left and a screen to the right, displaying the text of a recent Mastodon post. There are jumper wires attached to an RF transmission board.
Andy Piper
2 months ago

Current status: playing with several #micropython projects at once on a breadboard kit (some wifi, some RF control, some API)

kandid
2 months ago

@yaxu

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.

#MicroPython

kandid
2 months ago

@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.

#MicroPython

Nick Taylor
2 months ago

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**

iamdeveloper.live promo for guest Andy Piper
Andy Piper
2 months ago

The monthly #MicroPython meetup is happening now - online and in Melbourne. Zoom link available on meetup.

Alasdair Allan
2 months ago

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!

Alasdair Allan
3 months ago

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.

Laurens Valk (Pybricks)
3 months ago

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

Laurens Valk (Pybricks)
3 months ago

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 😄

Andy Piper
3 months ago

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

Gus
3 months ago

@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.