The computerized Necchi Supernova is #sewing! I couldn't call it any further along than version 0.1 or so, but I'm excited to see a proof of concept nevertheless. Next up, writing better firmware rather than a #micropython prototype. #electronics
Ecco una cosa assurda che ha trasformato la mia faccia in faccia scheletrino (💀). Dunque, mi servirebbe #testare una cosa (che a questo punto non dico ancora perché beh, si sono messe di mezzo le rogne) tramite interfaccia #SPI; il Raspino non posso usarlo perché non ho l’header per la #breadboard (dovrei comprarlo), e quindi uso il #NodeMCU. 🪨️
Boh, copio nel filesystem di #MicroPython i file della libreria che penso mi serva… e non va perché la versione di MP che ho è vecchia rispetto al #codice. Perdo tempo solo per backuppare tutti i file sul PC per poi riformattare la #flash della #board, poi quindi flasho il #firmware… e inizialmente sembra funzioni tutto, ma poi scopro che la #scheda si riavvia a caso quando collegata ad alcune porte #USB del PC. Collegandomi ad altre, invece, è la mia tastiera smette di funzionare (inizia a perdere tantissimi input). Sarà una regressione strana del firmware… penso. Avanti e indietro varie volte di ricopiare sul #MCU i file che avevo prima, nella speranza di continuare sulla mia strada, e invece ho perso solo tempo. E anche ora che ho rimesso (credo fosse quella, a memoria) la versione del firmware che avevo prima, 1.17, stesso casino (anche se i riavvii sono meno frequenti, ma ci sono). Dal portatile invece appare come dispositivo seriale, ma solo per degli istanti e poi non va più. 😶️
Che cavolo è successo? È la #megafine? Ho #flashato con il tool consigliato (anche con diverse modalità), e in ogni caso non ho avuto alcun errore (infatti beh, il #flashing è andato in sè sempre bene). Ormai io non. Quella cosa che dovevo provare dovrò farla con l’SDK C, perdendo un sacco di tempo perché sul #ESP8266 va riflashato l’intero firmware di base ogni volta che si compila uno sketch (~20 secondi a #compilazione?)… #mannaggia. Il #sasso mi ha lasciato metà a piedi. 😭️
Weird experiments with #nimib and #python continue. This time I have a hacky example of using #pyscript (with #micropython backend) inside a #nimib.py notebook (the try and catch ImportError is a workaround because I cannot have a context manager without yield, I will probably change the api to use something else, maybe a decorator on a function): https://nimib-land.github.io/nimib.py/bunny_meets_whaley.html
So for me, a #Python developer (with quite a bit of #MicroPython experience), this made the whole keeb firmware hacking an order of magnitude more accessible. You know, for really customizing stuff, not just editing a DeviceTree file and then wait for GitHub to build my firmware because local development is discouraged (looking at you, ZMK) …
For reasons that I don’t want to get into right now, I have an application that provides #Prometheus metrics. But not via an HTTP /metrics endpoint, but instead by streaming Prom’s text-based format over a serial port. The stream is endless, metrics are sent in random order. Their values update infrequently by simply appearing a second time in the stream, with the new value.
Is there already an utility that can consume such a stream and provide a normal /metrics HTTP endpoint?
It's a pretty dirty hack, but it works, and once I find the time to clean it up a little I might even release it.
Why did I need it in the first place? To get some sensor readings off of an #MicroPython board. I wrote classes that can output #Prometheus text to serve via HTTP, but then found out that running BLE & Wi-Fi simultaneously is a fickle bitch, so I had to pivot to, erm, USB UART and simply gave Gauge.update() a print(str(self)). 🤷♂️
Update your #flow3rbadge to firmware 1.3.0 and get Petal Hero from the app store - it's OUT NOW! Comes with 5 songs bundled, but you can extend it with songs for #FretsOnFire and other similar rhythm games. Here you can see me playing Jono Bacon's version of the Free Software Song - though I do better when not in front of the camera 😂 @flow3rbadge#flow3r#CCCamp23#37c3#micropython
There's a brand new #Pybricks#MicroPython release that adds Bluetooth communication between all LEGO smart hubs! Time to make some amazing smart Christmas displays this year... Try it now at https://pybricks.com/
Apart from the TD-3/DIY delay combo from my last video I am using a Korg Monotron delay on the RX11's clap and an arpeggiated Moog Werkstatt-01 through a delay/flanger provided by a Korg NTS-1.
As there is no MIDI or sequencer on the Werkstatt I wrote a hacky #MicroPython script to produce a hardcoded, but MIDI-synced arpeggio on CV1 and a user-controllable envelope generator on CV2.
I'll write more about the #Electronics side at some point in the future, but it'll be a while...
Ha. I don't know what to do with this.
I made a video, but the cheap capture card did horrible things to sound and it could be a while until I can fix that.
So:
I present "Peak Ambition", a first demo for #Picovision in #MicroPython for #Pimoroni Party #000, with the caveat that you shouldn't judge the hardware on the quality of this recording.
Also, extend that pass to me for all the snags I'd be fixing if there was more time 😄
But I'm still proud of it!