Questions tagged [raspberry-pi-pico]

For questions relating to the Raspberry Pi Pico microcontroller.

The Raspberry Pi Pico is a microcontroller designed by the Raspberry Pi Foundation. It supports MicroPython, CircuitPython, and C.

The first Pico version was released in 2021.

512 questions
1
vote
0 answers

Raspberry Pico branch discrepancy

So I have some Raspberry Pico PIO code. There was a branch that wasn't working; it was only yielding x = 2. As an afterthought I refactored it, in a way that shouldn't have changed the end result, but it did. Here's the former code: ... …
Erhannis
  • 4,256
  • 4
  • 34
  • 48
1
vote
0 answers

C/C++ PlatformIO RPi Pico: Code fails only when second core is activated

I'm running into an issue with the Pico W device where it hangs when using the second core. I am trying to parse through a config file using Regex and the code halts at the following: smatch match; for (auto it = sregex_iterator(data.cbegin(),…
flamewave000
  • 547
  • 5
  • 12
1
vote
0 answers

How to transfer images between two Raspberry Pi Pico over SPI?

I'm doing a hobby project and I have a task to make an exchange of information between two Raspberry Pi Pico. I want to take an image from the memory of Pi Pico #1 and send it using SPI to the memory of Pi Pico #2. I wrote CircuitPython code for…
Anton9101
  • 11
  • 3
1
vote
0 answers

**PICO PI** UART: How to receive (and process) chunks of serial data using DMA

Using a Raspberry Pi Pico (i.e RP2040 chip), I want to receive and process serial data (no TX). The data comes in 500 byte chunks, @9600baud,8N1. A new data chunk is sent roughly every second. Using the UART, it was possible for me to obtain the…
user12537
  • 11
  • 1
1
vote
1 answer

How to flash an RPI board wirelessly?

How can I achieve wireless flash of an RPI Pico W board? I need this because during testing of my device, I will need to tune it and flash the board frequently which will save time rather then connecting it to my PC all the time.
1
vote
1 answer

Read value from SPI on Raspberry Pi Pico using Rust

I am trying to read a value from a sensor, BMP280 over SPI on a Raspberry Pi Pico. But I am getting an unexpected value. I created a new repo based on the rp2040-project-template and modified it to add SPI functionality. I added these imports: use…
Jonas
  • 121,568
  • 97
  • 310
  • 388
1
vote
2 answers

How to set up and run Raspberry Pi Pico W bluetooth examples?

I am trying to run the spp_counter.c example in the pico-sdk. When I run make I am getting this error: fatal error: btstack.h: No such file or directory 58 | #include "btstack.h" The code is from the repository.…
David Davis
  • 23
  • 1
  • 5
1
vote
1 answer

wlan.scan() returning empty list & cant connect to network micropython

I'm trying to create a sever with my raspberry pi pico w, but for some reason I'm not able to connect to the network. That is, after calling wlan.connect(), no matter how long I wait, it doesn't connect. I've been following this tutorial to a T, so…
Drago627
  • 11
  • 2
1
vote
0 answers

Rasberry pi pico W HTTP Get request failing when strcpy line uncommented

I am trying to make a http get request with my rasberry pi pico w using the IWip client libary, I was trying to have the TCPIPSERVER dns name as an attribute of the object but that wasnt working so I currently have it hard coded into the function,…
Chris22
  • 21
  • 3
1
vote
1 answer

With the Lwip TCP stack, what happens if the received message is larger than the buffer?

I have been doing a small tcp project, in C, on a Raspberry Pi Pico, experimenting with the lwIP api. One of the sources of help has been the pico-sdk-examples. When the lwip stack receives a message, it summons a callback to a method of the…
1
vote
1 answer

Issue when making a tkinter interface to write data over a serial cable using the pyserial package?

I'm currently writing a Python program intended to write data out to a Raspberry Pico microcontroller using the pyserial module, with a Tkinter graphical user interface. However, the Pico doesn't appear to be picking up what I write to it over the…
Nate
  • 11
  • 1
1
vote
0 answers

CMake is unable to find library on Raspberry Pi Pico project. ld cannot find -lcustom_gpio: No such file or directory

I have been learning to write drivers for a Pi Pico and I implemented my own GPIO library. But I am unable to get it to build as the linker is not able to find the library (-lcustom_gpio). This is how my project directory looks. . └── LED_Blink/ …
1
vote
0 answers

tinyusb: can't set config on USB device

I'm using tinyusb in RPI Pico SDK to allow my device to communicate with host computer through USB 1.1 port. I'm not sure if the fact that my project is RPI Pico based is important or not, as I feel that my problems come from misunderstanding how to…
PookyFan
  • 785
  • 1
  • 8
  • 23
1
vote
1 answer

Streaming mp3 audio from a URL in circuitPython

I want to stream mp3 audio from a URL using the Raspberry Pi Pico W. This is my code: import adafruit_requests import wifi import socketpool import ssl import board import audiomp3 import audiobusio import os audio = audiobusio.I2SOut(board.GP10,…
1
vote
1 answer

how to turn raw audio output from analog microphone into mp3 file?

I am working with a RPI Pico w, I have an analog microphone connected correctly and outputting raw audio data, how do I convert it into a file I can listen to?? I am using the micro python language.
SweetWhite
  • 61
  • 7