Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

135 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
427 views

I accidentaly lightly hit my bread board with my pi pico and ili9341 on it now the ili9341 is just white

So i was in my chair and i clicked run script and when i got up i tripped and lightly hit my breadboard and then the screen (ili9341) went white. Before i hit it, it was working but not anymore. I ...
PythonKid's user avatar
2 votes
0 answers
122 views

Pi-Pico reading data from UART0 working while powered via USB but receiving garbage when powered via VSYS or VBUS

When I power the pico by usb (either from my pc or a powerbank) and run my micropython script to read from UART0, it reads the incoming data (NMEA sentences) perfectly fine. However, if I power the ...
Ryan Jennings's user avatar
2 votes
0 answers
211 views

Pico Debugger can upload code once but not twice (when touching sysclk)

I've been playing around with the new Pico Debugger, and it is very nice. I have been running into some issues when using an external GPIO clock as the debugger does not seem able to detect the CPU's ...
Edwin Shepherd's user avatar
2 votes
0 answers
386 views

Responsive web interface for Pico W

I'm working on a project where I need to control a device remotely using a web page (on a phone) as a remote control - think of it as steering controls for a remote control car. This device also has ...
G.H.'s user avatar
  • 151
2 votes
0 answers
276 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
2 votes
1 answer
125 views

Trouble with RPI Pico and Waveshare SIM868 Module

I need some help with SIM868 GSM/GPRS/GNSS Module for Raspberry Pi Pico. A few months ago I bought SIM868 module and RPI Pico, and it works just fine together. But recently I bought another pair of ...
Ihor's user avatar
  • 21
2 votes
0 answers
154 views

Multiple SPI reads on Pi Pico requires reinitialisation

I'm playing around with reading in analogue inputs from an MCP3208 ADC via SPI. However, reading multiple inputs seems to cause a seg fault unless I reinitialise the SPI on each read/write. I've ...
user151296's user avatar
2 votes
0 answers
491 views

Raspberry Pi Pico - USB host with USB hub has anyone got it to work

Has anybody got a USB hub working with the Raspberry Pi Pico. I've got a person project that i want to use a mouse and a keyboard but when i add a hub it all falls apart. So I wen't and tried the ...
used_up_user's user avatar
2 votes
0 answers
397 views

Pico-ETH-CH9121 complete use case example

I purchased Waveshare's Pico-ETH-CH9121 and followed the instructions at https://www.waveshare.com/wiki/Pico-ETH-CH9121. Unfortunately, I do not understand what to do to establish a TCP/IP connection, ...
Twonky's user avatar
  • 133
2 votes
1 answer
949 views

Raspberry Pi Pico doesn't create tty file

I've been using Raspberry Pi Pico for some time already and I'm using minicom for serial communication. But one day Pico stopped generating tty/ATCM0 when connected to USB port. Before this everything ...
Omicron's user avatar
  • 121
2 votes
1 answer
208 views

Debuging Pico W

I have followed the instructions for using openocd to debug an program, but the output I get from openocd is: Info : Hardware thread awareness created Info : Hardware thread awareness created Info : ...
APA's user avatar
  • 21
2 votes
0 answers
1k views

How do I Install pillow on Raspberry pi pico?

I'm using Thonny to interface with my raspberry pi pico. I went to Tools->Manage packages... and typed in pillow but I get an error about 13% into the installation that says: Could not write next ...
Grammin's user avatar
  • 121
2 votes
0 answers
625 views

use internal clock (ROSC) to set system clock (clk_sys) to run at 32 MHz in RP2040

I am trying to set the system clock of my RP2040 to 32MHz using the internal clock(rosc) as source clock. When the pico board is powered on, the ROSC's frequency is around 5 MHz which lies in the ...
user8737703's user avatar
2 votes
0 answers
312 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
2 votes
0 answers
317 views

Design of Pico hardware divider

I recently found out that Pico has "8-cycle signed/unsigned divide/modulo circuit, per core" [1]. To my untrained embedded eye this seems very fast, does anyone know how they did it? What ...
Ecir Hana's user avatar
  • 121
1 vote
0 answers
26 views

Can't download file from Raspberry Pi Pico to MacBook Pro

I'm using a Raspberry Pi Pico to control a coffee machine. As part of tuning the PID controller, I'm writing to a data.csv file on the pico, then downloading that to my MacBook Pro Silicon running ...
Andrew Dyall's user avatar
1 vote
1 answer
75 views

Debugging using raspberry debug probe fails with SWD error

I am trying to debug some code on a Raspberry Pi Pico W. I'm using PlatformIO. After some Issues with the OpenOCD version shipped with PlatformIO (Access Violations), which I fixed by replacing the ...
Lukas's user avatar
  • 11
1 vote
0 answers
69 views

Desktop Weather Display using Pi-pico-w

I'm trying to replicate this (https://mustardcorner.com/desktop-weather) project but I'm trying to use the Pico w instead of the Pizero w he was using. But the code obviously does not work on the Pico,...
Jesse gudgeon's user avatar
1 vote
0 answers
237 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 ...
Bibibou's user avatar
  • 13
1 vote
0 answers
49 views

Is there a toolchain to the Pico 20240 available for Ada?

For nostalgia's sake I was just unearthing some of my Ada texts from the 80's when I came upon this site Ada on the Raspberry Pi Pico. GNAT Ada is available easy enough for RaspberryOS though having a ...
Nick's user avatar
  • 776
1 vote
0 answers
79 views

TF03 LiDar Distance Sensor UART Issues with Pico

I'm having issues getting a pico to receive data from a Benewake TF03 Rangefinder LiDar distance sensor. The User guide/Documentation mentions it working from 5-24V and it uses low voltage (3.3V) TTL ...
Isaac Flaum's user avatar
1 vote
0 answers
388 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
1 vote
0 answers
34 views

Pi Pico. use it as a middleman between mouse and computer, Possible?

connect a usbafemale to the gpio pins(not sure which pins exactly) and connect the pico to the computer. can it just send the data it receives from the mouse and send it out without modifying anything ...
Abhishek AK's user avatar
1 vote
0 answers
121 views

How to read RFID tag value using Wiegand protocol?

I am trying to read RFID tag values using Paxton P75 reader. Here I have already connected reader with wiznet w5500 pico. and apply https://github.com/Rajan244/RFID/blob/main/wiegand.py to read the ...
R. Baraiya's user avatar
1 vote
0 answers
43 views

Making Clones of Pico

I am trying to find information to clone one pico with everything already set up and programmed to 5 new picos without manually copying the files and libraries. I am using Thonny to program them in ...
Michael H.'s user avatar
1 vote
0 answers
156 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
1 vote
0 answers
57 views

help 32 by 64 rgb matrix pong game

Hi there i want to make a pong game i can currently get a image to display or images scrolling if anyone out there that knows how to do this or can help any info is much aprecitated import time from ...
sam's user avatar
  • 11
1 vote
0 answers
111 views

how to give power and ETH to pi pico W at same time?

Learning following project https://github.com/sbcshop/Raspberry-Pi-Pico-RFID-Expansion. Now the requirement is to connect project with Ethernet network, also provide power supply at same time. Qustion:...
R. Baraiya's user avatar
1 vote
0 answers
100 views

I get an error when trying to find my pico in thonny

This is the error: Traceback (most recent call last): File "/app/lib/python3.10/site-packages/tkinter/__init__.py", line 1705, in __call__ return self.func(*args) File "/app/lib/...
Trevor Smith's user avatar
1 vote
0 answers
994 views

Configuring a pico w as an access point and web server works with default ifconfig, but breaks with 172.16.x.x

I have a pico w that I'm setting up as an access point: ap = network.WLAN(network.AP_IF) ap.config(essid=xxxx, password=xxxx) ap.active(True) and then I'm serving a "tell me how to connect to ...
David Arno's user avatar
1 vote
1 answer
64 views

Display same content on 2 I2C LCD modules

I am trying to build a motorized head of puppet/animatronics and for the eyes, I am using 2 LCD LED Module SSD1306 (1 per eye). I am using a Raspberry Pi pico. I got the code working to display ...
Sirode's user avatar
  • 119
1 vote
1 answer
692 views

How do I check the memory written into a Raspberry Pi Pico W from the compiler?

I'm uploading a simple C program into a Raspberry Pi Pico and I would like to check the memory this program is occupying in the Pico. The program only has an empty main function. What I want to do is ...
bro's user avatar
  • 21
1 vote
1 answer
236 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
31 views

Redirect pico sd card to pc

How can I redirect an sd card in the pi pico sd adapter to a computer? I want to get the data from the sd card on my pc
Sytze's user avatar
  • 19
1 vote
1 answer
298 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 ...
Christoph Wintersteiger's user avatar
1 vote
0 answers
463 views

How do I use FreeRTOS in C on a Raspberry Pi PicoW using Visual Studio Code and PlatformIO?

I'm trying to run FreeRTOS on a Raspberry Pi PicoW. I'm using Visual Studio Code with PlatformIO to connect to the Pico. I have a folder for the project where I put the FreeRTOS include files and the ....
bro's user avatar
  • 21
1 vote
0 answers
170 views

Cannot locate the raspeberry pi pico on my computer (`UF2_Board ` instead of `/dev/cu.usbserial-0001`)

I want to connect to upload code on my raspberry-pi-pico but my computer does not recognize it. When using the arduino cli it seems to be recognized under the UF2_Board instead of the classical /dev/...
ecjb's user avatar
  • 111
1 vote
0 answers
351 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
1 vote
0 answers
361 views

Setting up Raspberry Pi Pico Examples on Windows and CLion

I am attempting to just get the the Raspbery Pi Pico SDK examples working but I am running into an issue.... System: windows 10 IDE: CLion 2022.2.4 CMAKE: 3.25.0-rc3 Arm GNU Toolchain: 12.2.0 Python: ...
Michael's user avatar
  • 11
1 vote
0 answers
307 views

Pico C programming: Make all projects use the USB port

I'm in the learning process for the RPi Pico using the C SDK. So far, the interesting examples I've followed output their results over the serial port. I've learned that some of the examples include a ...
Seamus's user avatar
  • 21.1k
1 vote
0 answers
111 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
1 vote
1 answer
262 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
341 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) { ...
Diogo Ferreira's user avatar
1 vote
0 answers
1k views

Set/Change PID / VID on Raspberry Pi Pico

I want to change the Product ID and Vendor ID of my Raspy Pico. After some research I found the TinyUSB library and there seems to be settings for Device Descriptor. As soon as I integrate the library ...
0i9n's user avatar
  • 11
1 vote
1 answer
377 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 ...
MIKE PAPADAKIS's user avatar
1 vote
0 answers
446 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
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 ...
M.Simel's user avatar
  • 23
1 vote
0 answers
149 views

Connecting Waveshare ov2640 camera, Raspberry Pi Pico and external SD Card for capturing images and saving to sd card.Code is throwing "pin in use"err

Using the below code for connecting Waveshare OV2640 camera and External SD Card to Raspberry Pi Pico. The code throwing the following error import os import board import busio as io import digitalio ...
Jasline's user avatar
  • 11
1 vote
0 answers
572 views

Raspberry Pi Pico not booting after power outage

My Pi Pico is working fine when connected to the laptop and running the program. It is also connected via Pin 39 (VSYS) and ground. When I unplug the usb the Pi keeps running without issue. However, ...
markus902's user avatar
1 vote
0 answers
205 views

Issues with custom RP2040 board

I have made a custom RP2040 PCB. When I connected the PCB using USB to PC, it is attaching as mass storage device. But when I am copying a uf2 file for blink and it got unmounted. But nothing is ...
Robot's user avatar
  • 21