Questions tagged [micropython]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Improving sampling frequency of Raspberry Pi Pico's ADC pin to sample at frequency of 48 KHz

I am trying to use Raspberry Pi pico to sample signal of frequency of around 24 KHz and store the values in an array. From Nyquist criteria, the sampling frequency should be 48 KHz. But I can properly ...
Nimesh's user avatar
  • 1
0 votes
0 answers
31 views

Raspberry Pi Pico with PN532 reading cards with the use of interrupt

The setup is as follows: Raspberry Pi Pico PN532 connected via SPI with pico. Pin IRQ on the PN532 is connected to GPIO20 on the pico Micro python Micro python PN532 NFC/RFID control library (SPI) ...
thermike's user avatar
2 votes
0 answers
248 views

How can one make MicroPython HTTPS REST API requests on Pico W?

I'm unable to make MicroPython REST API requests from the Pico W. The WLAN connection is working but the API call fails. ► API call| Not working - Wokwi Pico W Simulator # Import modules import ...
Ayan Mullick's user avatar
0 votes
1 answer
95 views

ModuleNotFoundError: No module named 'digitalio' HELP

I have been following a YouTube tutorial on how to setup the Raspberry Pi Pico H as a midi device. While programming, I came accross an error ModuleNotFoundError: No module named 'digitalio'. I'm ...
Pixel's user avatar
  • 1
0 votes
0 answers
32 views

Rpi pico zero W - display script not errors

I am a beginner with electronics and coding, trying to get an OLED display with ssd1306 to work with my Rpi Pico W. I have connected the display's SDA and SCL to GP2 and GP3. When trying to run the ...
David's user avatar
  • 1
0 votes
1 answer
58 views

Raspberry pi Pico GPIO not working and firmware querry

I just bought 2 new raspberry pi pico units, but I am struggling with them. I ran a few basic commands in Thonny's shell and maid a program to have the onboard LED blink. Everything is working fine ...
Coder's user avatar
  • 11
0 votes
1 answer
187 views

How to setup and use a UART serial interrupt on the RPI PIco?

I have a data logging pico and want to add an interrupt on the serial port that can take in a string and report back the right amount of data stored on the SD card. I was looking at UART.irq but that ...
Michael H.'s user avatar
1 vote
0 answers
143 views

Read serial data from incoming USB device on the Pico

So I am new to using the pico w and I am trying to connect a scoreboard controller device (Daktronics All Sport® 5000) that outputs real time data over serial. I have an RS323 to USB converter that is ...
Juhuxen's user avatar
  • 11
3 votes
1 answer
314 views

Using micropython on Raspberry Pi Zero W

I have found a library and sample code that seems to work very well on the Pico W, but I need a bit more power, so I'd like to use the same library on the Pi Zero W instead. Initially, I tried using ...
G.H.'s user avatar
  • 51
2 votes
0 answers
197 views

umqtt.simple returning Error: [Errno 103] ECONNABORTED when publishing to mosquitto broker on windows 10

My problem: When attempting to send sensor data from Pico W using umqtt.simple to a Windows machine on my network running mosquitto, I can connect to the network but not to the mosquitto broker. I ...
Phillip's user avatar
  • 21
2 votes
0 answers
135 views

How can i read a digital pins value from another device?

I on a raspberry pi 4 (device 2) and am trying to read a digital data pin from another raspberry pi (device 1) but the value always reads as 0. What do i need to do to make this work? I already tried ...
NtFreX's user avatar
  • 121
1 vote
0 answers
196 views

OSError: -2, File "urequests.py", line 76, in request

I am working with Pi Pico W, it is already connected to the Wi-Fi, I can see it in the ifconfig() output. Furthermore, I am using this urequests code from https://github.com/micropython/micropython-...
R. Baraiya's user avatar
1 vote
0 answers
94 views

(New user) Pi pico with stepper motor

New to the community, i am a total noob, i have a pi pico project using 28byj stepper motor 5v, looking to control revolutions per day from 600-1200, in both directions, using a rotary encoder. also ...
Lewispipico's user avatar
0 votes
1 answer
395 views

Useful statistics from Pi Pico

Apart from reading the internal temperature sensor and frequency, is there any other useful information you can query on the Pico board using Micropython? For example, memory or flash usage, CPU usage ...
Alastair Montgomery's user avatar
0 votes
2 answers
221 views

I cant connect my Raspberry Pi Pico

So I'm trying to connect my Raspberry Pi Pico to Thonny but I doesn't let me select com4 or anything else except "try to detect port automatically" and when I put it, it does not let me run ...
PythonKid's user avatar
3 votes
1 answer
391 views

Raspberry PI Pico W temperature reading

I have been playing with my newly acquired Raspberry Pi Pico W and reading the temperature. How much variation between the internal temperature sensor and an external TMP36 wired up to ADC2 should I ...
Alastair Montgomery's user avatar
1 vote
1 answer
232 views

nrf24l01 not Working with Raspberry Pi Pico W

I can use the nrf24l01 wireless module just fine with a Raspberry Pi Pico, but when I try to compile the same code on the Raspberry Pi Pico W, it fails to recognize the device. I am using this library,...
JustMakeStuff's user avatar
0 votes
0 answers
75 views

Raspberry Pi Pico W exits out of main.py when microcontroller is moving

I am using a Raspberry Pi Pico W to generate basic control algorithms to a home made drone. Calibration for gyro and motors and manual inputs for the motors all work through HTML interface. Once we ...
Seema Drone's user avatar
0 votes
1 answer
618 views

How can Rpi Pico W control a GPIO pin connected, I2C digital MEMS microphone?

Using the Raspberry Pico Pi, how can micropython be used to get the values from a MEMS microphone such as the Adafruit Silicon MEMS Microphone Breakout - SPW2430 link to ada fruit Product ID: 2716. ...
Vass's user avatar
  • 123
1 vote
1 answer
117 views

RPi pico W problem importing modules from subdirectory

My directory structure on RPi: / firmware __init__.py functions.py main.py __init__.py is empty, in my main.py, I have: import firmware print(current_version) while functions.py contains just:...
kiero's user avatar
  • 11
1 vote
0 answers
174 views

DS18B20, Pico W, 7 segment display and Micropython

My goal is to connect 2 DS18B20 sensors to a Pico W and display an indoor and outdoor temperature on a 4 digit seven segment display. My problem is it crashes after 20 or so iterations. Thanks for any ...
Joey394's user avatar
  • 11
1 vote
1 answer
254 views

Can't connect to Raspberry Pi Pico

I am trying to connect to an Raspberry Pi Pico from an Raspberry Pi 3B+ running Raspian Bullseye. The Pico shows up in the File Manager when I connect with the BOOTSEL button pressed. When I try to ...
Edward Mansfield's user avatar
1 vote
0 answers
248 views

Part of script wont run when named main.py or boot.py

I am using a RaspiPico W RP 2040 with micropython and Im trying to autorun this script when Pico is powered. I plan on powering the pico with an external power brick. The script is a multithreading ...
LeafTeaNeko's user avatar
0 votes
1 answer
155 views

How to send data between two already configured HC-05 modules

I'm new to electronics and microcontrollers, and I'm building an small project in which I'd like to send information from a master HC-05 bluetooth module to an slave one, I've already synced them ...
Rodolfo BocaneGra's user avatar
1 vote
0 answers
90 views

How to connect SD card and battery to Pico?

I have been looking into components I need for a MicroPython project. I needs to be battery powered and be able to read/write to a removable SD card. For this, I have discovered SD breakout boards. ...
SamTheProgrammer's user avatar
2 votes
1 answer
990 views

DS18B20 OneWire Library with Raspberry Pi Pico W and Micropython

Good day, I am using a Raspberry Pi Pico W with a temperature sensor among other things. I tried finding code online to make the temperature sensor work and it returns the following error. Found DS ...
Pranav's user avatar
  • 23
0 votes
0 answers
111 views

500khz adc measurements using micropython

Following the "getting started" guide for the Pico, I know its possible to read the ADC at 500khz if you also do DMA. The example does it using C. Is it possible to do this in Micropython? ...
picoEnthusiast's user avatar
0 votes
1 answer
446 views

Why am I getting this syntax error in micropython?

I am testing the raspberry pi pico, and am getting a strange syntax error. I have no idea why. from time import sleep led = Pin(25, Pin.OUT) wait = 0.1 while True for x in range(9) wait += ...
Sad Man's user avatar
1 vote
1 answer
203 views

RpiZero and RpiPico communication through nrf24l01 not receiving packages

I am trying to implement a wireless communication between RpiZero and RpiPico through NRF24l01 modules. Pico is the receiver, and Zero is the transmitter. I have successfully started the Pico ...
Antifa's user avatar
  • 141
1 vote
1 answer
825 views

How can I connect my Raspberry Pi Pico W to an Eduroam WiFi access point (WPA authentication)?

For a teaching demo about autonomy in scientific research, it will likely be a major blocker if students cannot connect the Pico W to their school's WiFi. Someone suggested MAC spoofing, and I agree ...
Sterling's user avatar
  • 111
1 vote
0 answers
302 views

BME280 sensor on I2C 0 stopped working after adding another one on I2C 1

I have two similar BMP280 sensors. First, I connected one of them to GPIO 16, 17 (SDA, SCL) as well as 3V3 and GND. I ran the following script in MicroPython to read temperature and other measurements:...
Manuel Popp's user avatar
0 votes
0 answers
37 views

WorldTimeApi client_ip

I am trying to use World Time Api to get the ip address assigned by my ISP. In Micro Python on an RPi Pico W my_ip = json["client_ip"] returns an ipv4 address and in Python3 on a RPi 4B it ...
William Burlingame's user avatar
0 votes
1 answer
503 views

New Raspberry Pi Pico disconnects during MicroPython installation

I have a problem setting up a new RaspPi Pico. I pressed the BOOTSEL button, connected it via USB to my Windows machine and released the button. I copied the .uf2 file previously downloaded for this ...
Manuel Popp's user avatar
1 vote
1 answer
929 views

Rpi Pico receiving on multiple UARTs

Expected behavior: in hardware I connect UART of a number 0/1 to the correct Pin numbers tx/rx and get it based on that connection Actual behavior: in hardware I connected UART of a number 0/1 to the ...
mr.xed's user avatar
  • 21
1 vote
1 answer
219 views

Pi Pico giving error when trying to enable custom hid device

The following is my boot.py file. It's a copypaste from adafruit site. import usb_hid GAMEPAD_REPORT_DESCRIPTOR = bytes(( 0x05, 0x01, # Usage Page (Generic Desktop Ctrls) 0x09, 0x05, # ...
REVOLUTION's user avatar
0 votes
0 answers
106 views

How to read files from a SD card connected to ESP32 an then transfer/upload/send them with Micropython to Raspberry Pi?

I am working on a project, basically my proposal consist in a solution designed under server/client paradigm, on host side I have mounted an Ubuntu Server 20.4 LTS (64 Bits) on a raspberry pi and ...
luis_laurent's user avatar
0 votes
1 answer
941 views

Is it possible to overwrite scripts? (OTA Update)

I'm having a hard time finding information about remote updates on PICO W. I watched a bunch of videos demonstrating how MicroPython can be used to manipulate the flash storage - so would it be ...
php_nub_qq's user avatar
0 votes
0 answers
84 views

Pico W Desoldering Issue

Hello, I accidentally desoldered that component from the board while I was soldering headers. Then I figured out that it is a MOSFET component called DMG1012T. It seems related to Wireless Chip. ...
Yavuz Erzurumlu's user avatar
0 votes
0 answers
49 views

Trying to connect capacitive Soil moisture sensor to LCD Display using raspberry pi pico

Hello I am currently trying to connect my lcd display with my soil moisture sensor to display readings it is taking. Any ideas on how to get the code to do that. Currently I can operate the LCD and ...
ClaebShack's user avatar
2 votes
2 answers
348 views

Is the waveshare 2.7 e-paper HAT ink display the right display for a pico?

I'm very new to programming on raspberry pi's and I haven't coded anything in about 5 years so bear with me. My company is asking me to connect a 2.7 e-paper hat INK display to a raspberry pi pico. I'...
anon512's user avatar
  • 31
1 vote
1 answer
1k views

How to properly shut down Rasberri Pi Pico (windows)?

I only received my first Raspberry Pi for tinyML development and specifically its microcontroller "Pico" version. I am surprised to see no instructions on how to properly shut this thing off ...
Constantine Phoenix's user avatar
0 votes
0 answers
211 views

Back and forth communication between Pico and PC

I am making a Pico powered PWM fan controller, and I currently have 2 potentiometers to control the fan speed. I am however thinking about writing some software in Python to modify the speed. The ...
HighElfWisard's user avatar
0 votes
0 answers
453 views

Why does Pi Pico duplicate and mix-up characters received over UART when programmed in C?

I have a Raspberry Pi Pico whose Tx and Rx pins are wired to the Rx and Tx pins of a Wemos D1 Mini development board. The Wemos and the Pico are powered via an external 5V power supply (common ground)....
straits's user avatar
1 vote
1 answer
1k views

Accessing Raspberry Pi Pico REPL from Android Serial USB Terminal App with main.py present

I discovered that I can plug a Raspberry Pi Pico into my Android phone and use the app 'Serial USB Terminal' as a serial monitor. However, if the Pico has a main.py script uploaded to it, then it ...
cornerpocket's user avatar
1 vote
0 answers
229 views

raspberry pi pico ejects automatically after trying to install micropython

I just bought a raspberry pi pico and I want to install micropython on it. but as soon as I install micropython the device ejects and when reconnect it all files are gone. it has 2 files in it(index....
lemmings's user avatar
0 votes
0 answers
105 views

DFRobot_RGB1602 library does not work properly with DFRobot DFR0554 and Raspberry Pi Pico

Problem summary: set_cursor(0,0) brings text to (2,1) and set_cursor(0,1) brings text to (3,1), texts goes to imaginary 3rd line before 2nd line as if a 20x4 display. I modified the Python code to ...
Syed Omar Noor's user avatar
1 vote
0 answers
146 views

Cannot Install MicroPython For Pico on Thonny

I am trying to install MicroPython on the Thonny editor on Linux but I cannot get it to work. If I hover over "tools" it shows "Install MicroPython to ESP8266/ESP32 ..." and under ...
picoPico's user avatar
0 votes
1 answer
216 views

RP2040- Memory architecture

I am designing an RP2040 board that has external access to the QSPI chip. I need to be able to program the microcontroller externally without USB, and I thought this would be the easiest method. I'm ...
AWESDUDE COOL's user avatar
1 vote
1 answer
99 views

Why does Thonny get this error?

I am currently programming a Raspberry Pi Pico with the explorer base, and I am using the examples at https://github.com/pimoroni/pimoroni-pico (NOTE: I am using MicroPython in the Thonny IDE to ...
dbubbis's user avatar
  • 13
1 vote
0 answers
2k views

Transmitting and Receiving messages through RF433 using Raspberry Pico

I'm currently working in a new DIY project, where I need to send a message through RF from Raspberry Pico, and receive it in an other Raspberry Pico through RF. I have bought some common RF433 ...
Antifa's user avatar
  • 141