Questions tagged [micropython]
The micropython tag has no summary.
97 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
29
views
On Raspberry Pico2W/Thonny i get errors about ssd1306.py library
On a Raspberry Pico2W/Thonny loaded the ssd1306.py library and I get:
File "<stdin>", line 19, in <module>
File "ssd1306.py", line 110, in __init__
File "ssd1306.py", line 36, in __init__
...
0
votes
1
answer
37
views
How can I see the console (i.e. print) when using MicroPython with PyCharm?
Getting up and running with RPi Pico (RP2040-Zero, specifically) MicroPython programming. When using Thonny, print statement output appears in a pane at the bottom of the editor window, but Thonny is ...
-1
votes
0
answers
30
views
How does micropython gc.mem_free() work?
I am working on a fairly complicated control application for Raspberry Pico, using Micropython. I am puzzled by the way in which gc.mem_free() tracks the memory in use and I am wondering if anyone can ...
0
votes
0
answers
32
views
NRF24L01 communication between Raspberry Pi 4 and Raspberry Pi Pico (MicroPython) not working
I’m trying to set up wireless communication using two NRF24L01 modules. I’m using a Raspberry Pi 4 Model B as the receiver using the pyRF24 Library and a Raspberry Pi Pico with MicroPython as the ...
0
votes
0
answers
77
views
Identify USB host plugged into Pico
I have a Pico attached to a USB hub switcher. This means depending on its state the Pico is connected to either a Windows desktop, or a Macbook. I want to display this on the screen I've attached to ...
0
votes
0
answers
59
views
How to use a Pimoroni 1.3" SPI Colour Square LCD with pico & MicroPython?
I want to use the 1.3" SPI Colour Square LCD (240x240) with a pico and micropython. According to the website that is possible. However, when looking at the github page of examples there is ...
2
votes
1
answer
135
views
How do i get Nema 17 motor to work with DRV8825 and Pico 2 W?
Yesterday, I tested a Nema 17 stepper motor with a DRV8825 motor driver. Connected to a Pi Pico 2 W using MicroPython on VS Code. It worked as intended, the motor spinned both directions. I took a ...
2
votes
1
answer
194
views
Control micropython on a Pico from the command line
Many people control their Pi Pico using Thonny but I rarely use the Desktop and prefer to program from the command line.
How can I control micropython on a Pico from the command line?
0
votes
1
answer
63
views
Running MicroPython on a PicoW and there is a large discrepency witht he temperature output of a DS18B20
I have a PicoW, and am running MicroPython, and have copied code so I can monitor temperature using a DS18B20.
I note there was a thread on this topic, but I didn't see an outcome....
The code I have ...
0
votes
0
answers
89
views
Pi PicoW running Micro-python and MicroTuya cannot control all devices
I am running a PicoW and MicroPython through Thonny, and want to control Tuya devices.
I have used TinyTuya without issues elsewhere, but it requires libraries/ modules that cannot be installed on the ...
0
votes
0
answers
112
views
Is it possible to measure Bluetooth RSSI level once connected on Pico using aioble
I can see that aioble.scan returns RSSI during a passive scan as an observer:
async with aioble.scan(duration_ms=5000) as scanner:
async for result in scanner:
print(result, result.name(), ...
0
votes
0
answers
64
views
Can I call MIP from micropython for OTA updates?
I’m trying to OTA update some micropython code on a pico_w. The code has dependencies that are not in the micropython-lib, they’re in my private repo.
I can update the dependencies using mip with a ...
0
votes
0
answers
108
views
What is sdcard module for Raspberry Pi Pico
Trying to use a micro-SD card reader with Pico W with RP2040.
Using Thonny v4.1.7 on a brand new windows 11 PC (geekom megamini G1), Micropython v1.24.1.
am trying:
from machine import Pin, SPI
import ...
-1
votes
2
answers
97
views
Using Raspberry Pi B as a Pico substitute
I think I have grasped that one way to program a RPi Pico is to load micropython on it then load programs from Thonny when the Pico is attached using USB to the "host" PC. Is it possible to ...
0
votes
0
answers
242
views
Why does my Pico bult-in LED not flash?
I have reduced my RPi Pico config to the absolute simplest:
No jumper wires,
swapped the USB cable,
swapped to an unused Pico
re-installed Thonny (version 4.1.6), under Windows 11
flashed MicroPython ...