Questions tagged [pi-pico]
Questions regarding the Raspberry Pi Pico.
144
questions with no upvoted or accepted answers
2
votes
0
answers
203
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 ...
2
votes
0
answers
419
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 ...
2
votes
0
answers
628
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 ...
2
votes
0
answers
360
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 ...
2
votes
1
answer
193
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 ...
2
votes
0
answers
211
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 ...
2
votes
1
answer
719
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 ...
2
votes
0
answers
688
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, ...
2
votes
1
answer
338
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 : ...
2
votes
0
answers
2k
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 ...
2
votes
0
answers
791
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 ...
2
votes
1
answer
449
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....
2
votes
0
answers
468
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 ...
1
vote
0
answers
33
views
How can I display small black and white images on a e-paper spi display with a Raspberry Pi Pico W?
I have purchases a Raspberry Pi Pico W and have wired it to the Waveshare 1.54 inch e-Paper display module V2 I have used the code available at the github page, specifically the epd1in54b.py and the ...
1
vote
0
answers
180
views
Pico: upload without pressing the BOOTSEL?
I'm on Windows (11).
I'm using VS Code with PlatformIO.
I have an Adafruit QT Py RP2040 board.
I need to mount it into an enclosure so I won't access to the buttons.
USB-C port is exposed
How can I ...
1
vote
0
answers
201
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
0
answers
149
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
0
answers
166
views
Can't make DRV8833 work with Raspberry Pico
I'm building a toy car for my nephew. I want to drive a small DC motor with a Raspberry Pico with a DRV8833 motor controller. The controller is powered through the Pico. I seems fine, there is voltage ...
1
vote
0
answers
57
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 ...
1
vote
0
answers
111
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,...
1
vote
1
answer
1k
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 ...
1
vote
2
answers
3k
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 ...
1
vote
0
answers
67
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 ...
1
vote
1
answer
981
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 ...
1
vote
0
answers
159
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 ...
1
vote
0
answers
634
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 ...
1
vote
0
answers
51
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 ...
1
vote
0
answers
209
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 ...
1
vote
0
answers
114
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 ...
1
vote
0
answers
283
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 ...
1
vote
0
answers
64
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 ...
1
vote
0
answers
150
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:...
1
vote
0
answers
120
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/...
1
vote
0
answers
2k
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 ...
1
vote
2
answers
104
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 ...
1
vote
1
answer
1k
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 ...
1
vote
1
answer
380
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:...
1
vote
0
answers
38
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
1
vote
1
answer
666
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 ...
1
vote
0
answers
655
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 ....
1
vote
0
answers
255
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/...
1
vote
0
answers
464
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 ...
1
vote
0
answers
470
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: ...
1
vote
0
answers
400
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 ...
1
vote
0
answers
137
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. ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
460
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
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 ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
486
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 ...