1,127 questions
Advice
1
vote
3
replies
99
views
How can I convert an audio file (MP3, Wav etc) to an array of frequencies and volumes over time?
Premise: I've made a small sound-and-light circuit using an ISO chip (RP2040) and a buzzer connected to a PWM output. I can therefore control the frequency using the freq() function and the volume, ...
Best practices
0
votes
0
replies
53
views
how can I add methods to a frozen/pre-compiled module
In micropython, lots of very useful stuff you'd find (such as in regular Cython) isn't available because of code space. As just one example, on my stock linux machine there are 67 entries in math....
Advice
0
votes
17
replies
102
views
Micropython: How to find the callback created with python in ffi from my C++ function?
I want to async not only call the cpp functions in Python but return Python functions in my cpp functions to make callbacks.
Example
python script
import ffi
import exemplecpp
def hello():
print(...
1
vote
1
answer
60
views
Class not seen as module (no module) when calling from library PiCo Micropython
I have a PiPico2 library for Real Time Clock from here:
https://github.com/mchobby/esp8266-upy/tree/master/pcf8523
Library code as below (pcf8523.py).
I have used the simple example code and just can'...
0
votes
1
answer
101
views
Change micropython unicode notation from \xb0 to \u00b0 in string
I am using Micropython on the ESP32.
I have the following string, which includes the unicode character \xb0.
a = 'abc\xb0def'
First, I will need to change the notation to the \U00XX form, second I ...
2
votes
0
answers
104
views
Micropython socket.getaddrinfo fails when using DNS on local network
tl;dr: Using a DNS server on a local network causes socket.getaddrinfo() to experience an error:
OS Error: [Error 103] ECONNABORTED
Using an internet DNS server works.
Details: I have a very simple ...
0
votes
1
answer
82
views
Micropython PIO interrupt causes loop on PICO
Extract of longer program. Just to toggle the .side pin and then quit the PIO program. Causes loop and have to nuke the PICO! Loops before the 'Run' print. Thanks
TypeError: function takes 2 ...
0
votes
1
answer
239
views
Calculation of CRC7
For a SD card driver I tried to calculate CRC7 for the commands.
Now, if I "enable CRC7 check" with CMD59, I get errors with some SD cards. But if I "disable CRC7" check with CMD59,...
0
votes
1
answer
31
views
SIM800L chunk file for sending through TCP Connection properly - CME ERROR 3
If anybody is conform with SIM800L, I've got a working design regarding sending data through TCV via SIM800L, building up the network is ok.
What is working:
AT+CIPSTART
waiting about 2 sec
AT+CIPSEND=...
2
votes
1
answer
98
views
How to Send Unicode DegreeC as a unicode value in a dictionary entry
I have a python program [pylarexx] (which I did not write) that reads temperature sensors and publishes two MQTT topic messages [..../config and ..../state ] to a Broker running with Home Assistant [...
2
votes
0
answers
180
views
MicroPython MCP2515 CAN bus: Lost some responses at a 10 ms request cycle
I’m working on a Raspberry Pi Pico and MCP2515 CAN bus setup using MicroPython. I’m simulating OBD-II vehicle speed responses (PID 0x0D). At a 100 ms request cycle from my USB-to-CAN adapter (Linux ...
0
votes
0
answers
36
views
ValueError: Invalid Key while trying to upload code to ESP8266 device
I'm trying to connect my NodeMCU (ESP8266) device running Micropython to AWS IoT but wwhile running the code I'm getting the following error:
start connecting
Connected: True
Key and Certificate ...
0
votes
1
answer
103
views
Parse BLE iBeacon advertisement with micropython
I have an app written in mincropython sitting on an XBEE LTE/IoT radio. It scans advertisenments from iBeacon enabled devices. I am trying to find any dicumentation to allow me to parse the hex I get ...
0
votes
1
answer
189
views
Raspberry Pico W: Hangs after WLAN deinit()
My PICO W hangs sometimes after calling deinit(). I'm using Micropython v1.25.0 (2025-04-15)
Please see this example script:
import network
import time
from time import sleep
import urequests
import ...
0
votes
0
answers
88
views
Micropython asyncio StreamWriter only sends part of data
I'm pretty new to Python, & I'm attempting to set up an access point from a Pico W to provide info to a client (eg, an iPhone). The connection is successful, but my iPhone app only receives ...