Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

Filter by
Sorted by
Tagged with
1 vote
1 answer
383 views

Code not running on RPI Pico

I have the following code on the RPi Pico W: include "pico/stdlib.h" #define LED 25 int main() { gpio_init(LED); gpio_set_dir(LED, GPIO_OUT); while (true) { ...
1 vote
1 answer
1k views

PN532 with Raspberry Pi Pico

I have PN532 NFC Module that looks like this I am trying to connect this NFC Module with Pico, but I have no luck in finding library that allows me this. What can I do to control it? Can you ...
1 vote
1 answer
54 views

Raspberry Pi Pico W stopped working

I have a Pico W that was working connected to my computer, but suddenly turned off while running and not turning on anymore. I've tried to: Change the cables Change the port Connect it to Pi Model B ...
0 votes
0 answers
27 views

The 'i2c_write_blocking' function in Pico SDK

3 Weeks & No Answers... I am confused... I'm using the i2c_write_blocking function, but getting a strange result: If I do this - everything works as it should; i.e. I can read the values back from ...
0 votes
3 answers
2k views

PC Windows 10 Thonny MicroPython IDE does not detect Rpi Pico MCU or I2C/SPI/UART devices

I was using micropython at the time it stopped working. the pico used to work. it stopped working. when i insert the pico, windows gives me a message saying that the device cannot be recognized. in ...
0 votes
1 answer
567 views

How to set SPI master on RPI Pico to some exact frequency?

I want to have SPI master on my RPI Pico, and I require it to have exactly 4.8 MHz clock. But I don't know how to set it up properly, since SPI clock doesn't allow every value. I read about peripheral ...
2 votes
1 answer
17 views

What to set PICOHTTPS_CA_ROOT_CERT in picohttps example in RPi Pico C - SDK

I'm trying to make a request to an ip using RPi pico w, using the picohttps example provided in here. Now for that we have 3 needed parameters in picohttps.h file - SSID, SSID_Password, ...
-1 votes
1 answer
209 views

SOLVED OSError: [Errno 5] EIO wit a raspberry pi pico

I am using the Raspberry Pi Pico with this code: #Pico Invaders! # # TODO : Implement alien shots, Shields, Sound from machine import Pin, I2C, ADC, PWM from ssd1306 import SSD1306_I2C import time ...
1 vote
1 answer
290 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 ...
1 vote
1 answer
43 views

How to program a RP2040 Chip (I don't have a Pico board, just the chip). I'm building my own PCB for my own needs

I have a rp2040 chip without the pico board. The usual method is to hold the BOOTSEL button, but I don't know which pins are connected to that button (well all I found is it is connected to TP6) but ...
0 votes
1 answer
385 views

Use raspberry pi pico to open programs on host PC

I have both a raspberry pi pico and pico w, and am attempting to connect either one to a toggle switch, and use the input of said switch to either open or close an application on the host PC (...
0 votes
1 answer
82 views

Does GPIO27 need special handling when used as digital input?

I have three rotary encoders (with switch) connected to GPIOs (16,17,18), (19,20,21), (22,26,27). For quick testing of working I/O, I put all of them to input mode, with internal pull-up, and watch ...
0 votes
1 answer
33 views

Quasi - simultaneous temperature measurements on a metal rod

I am preparing teaching material for a thermodynamics laboratory for first year Physics students. The students at this point of their study are very capable with Python data analysis, plotting etc. I ...
0 votes
2 answers
2k 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 ...
0 votes
1 answer
65 views

RPi Pico: Is it dangerous to set GPIO drive strength of 12mA on all the UART-related pins

I'm working on a project with the RPi Pico that makes use of both the UARTs and has two LEDs attached to other random-ish GPIO pins. The LEDs will probably be turned on for the majority of time that ...
0 votes
0 answers
35 views

What happens if I exceed the current limit at the GPIO pins of the Pico?

They say that the output current of the Pico GPIO is configurable (2, 4, 8, 12mA). What does it means ? If I choose 8mA, what will happen if I connect a bigger load ? Will the curent be limited to 8mA,...
1 vote
1 answer
537 views

Update software of a Pico remotely

I'm using a raspberry Pi Pico and I'm struggling to find if it's possible to update my script remotely (I cannot use neither SWD or USB). Currently my new firmware (can be .uf2, .bin or .hex file) is ...
0 votes
1 answer
259 views

SIM800L with Raspberry Pi Pico takes too much time to make http request

I am using a Raspberry Pi Pico with SIM800l and NEO6M to make a GPS tracker. But it takes about 8s (from recording the GPS signal) to make a http request to the the server. I'm using this library as a ...
0 votes
0 answers
15 views

EEPROM as alternative for FLASH STorage for Booting Pico 2040

I am reaching out to gain more insights on using EEPROM via SPI for booting the RP2040 Pico. Kindly guide with your experience of using or not using it, we have EEPROM in our inventory & would ...
1 vote
1 answer
422 views

missing libusb-1.x to install openOcd to use picoprobe

I am trying to set up a picoprobe in order to program my rp pico using only wires (using another rp pico). I am following these instructions in Appendix A. I have windows 11 at the moment. When i try ...
0 votes
2 answers
35 views

DS18B20 and Pi Pico returns strange ROM

I have one DS18B20 connected on a breadboard to a pi pico with a 4.7K pull-up. Using the example code: import machine, onewire, ds18x20, time ds_pin = machine.Pin(4) ds_sensor = ds18x20.DS18X20(...
0 votes
1 answer
69 views

Pico Pi giving synthax error on pillow library

I am running a main.py file on the Pico Pi that imports a test file in a SD card that is connected by a module. The test.py file then imports PIL from the same directory as the file. I believe this ...
0 votes
1 answer
31 views

Can I connect all Pico GND pins to my PCB ground plane or I will create ground loops?

My project PCB has the bottom layer as a ground plane and the Pico sits on this PCB. Do you think is ok to connect all Pico GND pins to that ground plane ? And then, when a GPIO pin needs a GND ...
1 vote
1 answer
304 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:...
0 votes
0 answers
26 views

Bluetooth Headphones with the Pico W

I have a Pi Pico W, and I wanted to do a project where I connect an SD card to the Pico, and it'll play the audio on my headphones. I know that the Pico W has Bluetooth support, but I can't find any ...
1 vote
2 answers
68 views

Pico W common reference ground with 5V power supply safe?

I have a question regarding a new project I’m currently working on. It involves a Raspberry Pico W, an external 5V 12A power supply and a WS2812B LED strip. Now, I already got it working flawlessly ...
0 votes
0 answers
27 views

Synchronizing both PIO clock dividers in the Raspberry Pi Pico

I want to run the same SM (state machine) program on all 8 available SM in the RP2040, but I ran into a small problem trying to get them to run exactly synchronized while using the clock divider. This ...
0 votes
1 answer
156 views

Detecting connections between non-GPIO and GPIO pins in Pico?

XY-problem I have a keyboard that consists of two halves. Each half uses 16 pins. The pins in each half are aligned in a 8x8 matrix yielding 64 key presses that can be detected, and two times 64=128 ...
1 vote
1 answer
268 views

GDB pointing to the wrong file when debugging with picoprobe + openOCD

I'm trying to debug a Raspberry Pi Pico project using openOCD + Picoprobe. I go through the steps that appear to be correct to do all this from my Linux PC (the Get started with Pico and C++ guide is ...
0 votes
1 answer
63 views

How should I go about making a serial to ethernet server on a Pico varient?

I am trying to make a serial to ethernet server, similar to a regular pi board and ser2net, using a pico variant. I am using a Waveshare RP2040-ETH Mini Development Board, but there is very little out ...
0 votes
1 answer
686 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 ...
2 votes
2 answers
4k views

Power Pi Pico by applying 5 V to VSYS—any experiences with or thoughts on additional safety measures?

The official Pico datasheet chapter 4.5 suggests using either a Schottky diode or a P-channel MOSFET (P-FET; or a combination of both) when powering the Pico from an external power source (at least if ...
0 votes
1 answer
192 views

Playing audio on a Waveshare audio module

I've bought a Pico Audio module - assuming, maybe incorrectly, that being built to fit the Pico, speakers included etc it would be reasonably straightforward to get it working. https://thepihut.com/...
0 votes
2 answers
1k 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 ...
0 votes
2 answers
90 views

How do I get Raspberry Pi Pico to mount to the same Linux device every time it's in BOOTSEL mode?

Basically what's happening: I plug in my Pico W to my Raspberry Pi 4B (8GB model, running Ubuntu Server 23.10 arm64) via USB while holding down the button, so it's in BOOTSEL mode. I run sudo dmesg ...
-1 votes
2 answers
397 views

Pico providing power to PIR sensor and relay module from gpio pins

I am trying to power (not at the same time) a pir sensor, and a relay board, via pico's gpio pins. The project is a camera that is turned on when the sensor is triggered. I am using the relay board to ...
1 vote
1 answer
438 views

Identify the Pico core at runtime

Using the C/C++ Pico SDK, how can I find out which core my code is running on? (Specifically, I'd like to use lwIP's LWIP_ASSERT_CORE_LOCKED, which requires a thread or core identifier to determine ...
0 votes
1 answer
1k 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 ...
1 vote
1 answer
1k views

Loading firmware into RP2040 SRAM via SWD

I have to upload a new firmware in the Raspbery PI PICO external flash via SWD from a different microcontroller (an ESP32) connected via UART and SWD lines (I asked here a previous question). I ...
-1 votes
1 answer
1k 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 ...
0 votes
0 answers
11 views

Multi threads ADC read and save on local file rpi pico

im trying to create a voice recorder using max9814 and raspberry pi pico with circuitpython/micropython and my problem is when it saves the recordings on .wav file some parts of the audio loses ...
0 votes
1 answer
742 views

raspberry pico and circuitpython with ethernet and ntp server sync

I am trying to built a clock with rpi pico and circuitpython. For iot connection I use a WIZNET5K module and so I used the adafruit_wiznet5k library. It connects alright. The next step is to sync the ...
0 votes
1 answer
109 views

raspberry pi pico temperature reading and output to zabbix

there is a raspberry pi pico that I want to configure as a temperature sensor, and output data to zabbix raspberry pi pico I have, connected to a computer with ubuntu 22.04 via usb, I have a code for ...
0 votes
1 answer
77 views

Understanding what happens with Raspberry Pi Pico in idle

I am verry new to Pico and I want to understand something. This is just a microcontroler, not a mini computer like RPi 4. From what I study so far, they say that it has a 125 MHz fixed clock and it ...
0 votes
0 answers
36 views

Memory allocation failed (OV5640 VGA format, RGB565) with Raspberry Pico

I'm new to this forum and new to Pico. I'm currently working on a laser scanner using an OV5640 5Mpx I2C CAM and a Raspberry Pico. However, I'm encountering an issue when attempting to increase the ...
0 votes
0 answers
48 views

Raspberry Pi Pico COM port setting

I have successfully loaded the firmware onto the (new) Pico WH and printed "Hello" from the web page as directed on Raspberry's "Getting Started" web page, but other than seeing (...
0 votes
2 answers
1k views

Could a raspberry pi pico power a PC fan

I have recently soldered a 90mm PC fan to a USB cable and it works great. I was wondering if it would be possible to power said fan off of the 5v output pin on the pico, and solder the black wire to ...
0 votes
1 answer
342 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, # ...
-1 votes
1 answer
228 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 ...
0 votes
1 answer
535 views

Can I use an HM10 connected to a Raspberry Pi Pico to read from a BLE notification?

I have a Raspberry Pi Pico and would like to read BLE notify data from an external sensor should using an HM10. I've seen the HM-10 datasheet and don't see anything there that would be of help. Is it ...

1
2 3 4 5 6