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
0
votes
0 answers

Pop-up for connecting raspberry pi pico w to wifi

I'm trying to find a way to have a raspberry pi pico w connect to wifi without needing to write in the SSID and password into the code. I'm using a non-touch screen with it and no keyboard. Is there a way to have the pico automatically create a…
user1633930
  • 61
  • 1
  • 2
  • 10
0
votes
0 answers

Raspberry Pi Pico W , Timer

I am developing a project using pico w. My objective is to add a timer to it. How can I do it ? I want to create a timer like this: When it is 04:00 in the U.T.C. time zone, the kitchen lamp will be turned on." I want to add something like this.…
0
votes
1 answer

Compiler error says "Function is not declared in this scope" but the function is public

I'm setting up an IRQ on a Raspberry Pi Pico in C++ but when I compile my code it tells me the callback function is "Not declared in this scope". I've been beating my head against the wall for hours because the function is declared and it's…
Taylor
  • 35
  • 6
0
votes
0 answers

How to tell if an entire request is recieved with the LWIP stack

I am trying to write a http server for the Pi Pico using LWIP. I understand that a request will arrive in some number of pbuf chains. I can read these chains and put their payload in a buffer ready to process, but how do I know when the request is…
0
votes
1 answer

Creating an IRQ for the Raspberry Pi Pico works in C but not C++?

When I compile this code in C it runs perfectly but when I try to compile it in C++ it sends an error which I'll add below. I've tried declaring the function with every variable type I could think of which didn't change anything. I also searched…
Taylor
  • 35
  • 6
0
votes
1 answer

How to count milliseconds on the Raspberry Pi Pico?

I want to count milliseconds on my Pico to make nonblocking code in C++. Arduino has the millis() function, but after looking though all the example programs and scouring the internet I couldn't find anything like that for the Pico using C++. This…
Taylor
  • 35
  • 6
0
votes
1 answer

Micropython MemoryError when trying to get image from URL

Hi I’ve bought the dispay pack2 (https://shop.pimoroni.com/products/pico-display-pack-2-0?variant=39374122582099) and am trying to display an image. If I download the image and put it on the pi pico w then the image displays OK. I’m trying to get…
0
votes
0 answers

How to use SPIto communicate with a AD7705 on raspberry PICO?

I connect the CS to GND, so there's no cs set in code. code spi = SoftSPI(baudrate=100_000, polarity=1, phase=1, bits=8, sck=Pin(18), mosi=Pin(16), miso=Pin(19)) dr = machine.Pin(21, machine.Pin.IN, Pin.PULL_UP) # 0010 0000 select clock…
Limin
  • 143
  • 2
  • 7
0
votes
1 answer

Using SD card module on SPI1 instead of SPI0 raspberry Pico with Arduino core

So I am trying to connect and then launch the SD card reader to Raspberry Pico using SPI1 and not the default pico one because the default one is taken by a LoRa module. I am using the arduino core. SPI1.setRX(12); // 16 12 SPI1.setTX(15); // 20…
0
votes
1 answer

Raspberry pi Pico W is halting at random whilst making consecutive http get requests

I am developing a project using the pi pico w and I need to make get and post request to a website to report that the device is live and to send temperature data and to receive commands for now the only request I'm making is to…
Farouk
  • 261
  • 1
  • 10
0
votes
0 answers

Using time.sleep inside of a function causing syntax error

I'm trying to get started with my Raspberry Pi pico H, and I thought of a cool little project to translate text into morse code using the onboard LED to flash as dots and dashes, but to do that I need to turn the LED off at specific intervals. I…
0
votes
0 answers

Raspberry Pi Pico W, Micropython, Threading and Requests, code stops working

So, the basics of this project is to obtain temperature data from an API for an industrial oven on the same network as the pico W, and then display that output to a multiplexed 4 digit, 7 segment display. I've been doing this through urequests, and…
0
votes
1 answer

AttributeError: 'module' object has no attribute 'disable_autoreload'

im trying to disable auto update in Circutpython 8.0 beta on the pico W and every time I run import supervisor supervisor.disable_autoreload() I always get this error >>> supervisor.disable_autoreload() Traceback (most recent call last): File…
0
votes
1 answer

my raspberry pi pico oled display code is returning 'OSError: [Errno 5] EIO'

I've been trying to use an ssd1306 oled display with a raspberry pi pico but every time I run the code it returns an error. I don't know what the error means and can't really find anything online for it. I was able to "fix" it yesterday by changing…
odog
  • 1
  • 2
0
votes
0 answers

raspberry pico: failed to build

I used pico_project.py to generate a project but failed to build it with vscode. I can build it with ubuntu terminal,just use the command "make".I want to vscode to program the raspberry pico. my computer:HP Zhan66 Pro G1 Ubuntu20.04 I just…
Cunjiang
  • 1
  • 2