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
2
votes
1 answer

Is it possible to run OpenCV on Raspberry Pi Pico onboard?

I need to build standalone module which records video from rasberry pi camera to sd card (through external module) when the motion on video is detected. So, I need to run OpenCV that I will use for motion detection. Is it possible to run it on…
Robotex
  • 1,064
  • 6
  • 17
  • 41
2
votes
0 answers

Is there a CMake equivalent of VS Code's includePath?

I'm trying to develop a project in Visual Studio Community 2022 using CMake as my build tool. The project is supposed to use some functionality from the Raspberry Pi Pico SDK (see https://github.com/raspberrypi/pico-sdk), but it could be any other…
2
votes
1 answer

Can't modify peripheral registers on the rp2040

I'm scratching my head because I can't write and read some/most peripheral registers. I'm using Rust here and the setup code from the rp2040-hal. The following code tries to write 0x42 to the DMA's CH0_READ_ADDR register (0x50000000) and reads it…
Jounathaen
  • 803
  • 1
  • 9
  • 23
2
votes
0 answers

MicroPython: Scheduling

I am very inexperienced with Python so bear with me. I am trying to set a schedule in a RaspiPico to turn a RaspPi 3B+ on at given times. The RaspPi 3B+ turns itself off at the 57th minute of every hour, the Pico is supposed to turn it on at the…
2
votes
0 answers

Build cannot be Generated on Raspberry Pi Pico + not recognized as internal and external error

I was trying to build files from pico-examples but due to no recognition of path it throws the error. I cross checked path everywhere, environment variable, extension settings but can't seem to find the source of error. [build] Starting build …
Raj Patel
  • 21
  • 1
2
votes
1 answer

Raspberry Pi Pico DMA to a I2C device

I'm using the C/C++ SDK of the Pi Pico and trying to use the DMA to read I2C data in the background. However, there is no example script in Pico-Examples that shows how to use the DMA to read from I2C. There is one for SPI, called spi-dma. But It…
SKrish
  • 43
  • 6
2
votes
2 answers

Error initializing ssd1306 oled connected to Pi Pico

Just trying to understand what's going on here. i2c.scan() returns [60], as in should. from machine import Pin, I2C import ssd1306 i2c = I2C(0, sda=Pin(0), scl=Pin(1), freq=400000) oled=ssd1306.SSD1306_I2C(128, 64, i2c) Traceback (most recent…
2
votes
1 answer

Problem with machine.Timer() and _thread on Raspberry Pi Pico (RP2040)

I am trying to run balance() function on one thread and use Timer on a separate one. Both methods when run separately work fine, but when I try to use them both at once the issr() function which is called by a Timer just stops working after few…
AntCwo
  • 21
  • 3
2
votes
1 answer

UART communication Raspberry Pi Pico to Raspberry Pi

I am trying to communicate with a raspberry pi pico with my raspberry pi 4 over uart. The below code does transmit data, but I am only receiving data from the print statement. import os import utime from machine import ADC …
merit_2
  • 461
  • 5
  • 16
2
votes
2 answers

Device descriptor request failed

I tried working with my RPi Pico today and my computer doesn't recognize the usb I triple checked the cable is power and data. And yes I'm holding the button
Xy77
  • 41
  • 3
2
votes
1 answer

Weirdness using the raspberry pi pico uart with the c sdk

I am extremely disconcerted. I'm making a remote controlled machine using a pi pico to drive the motors and read some sensors, and a raspberry pi 4 to send commands to the pi pico via serial and host the web interface. The following code seems to…
2
votes
1 answer

How do I read and analyse csv files in micropython?

I'm setting up a Raspberry Pi Pico to log temperature, humidity etc. to a csv file and to show data on a small OLED screen. Every hour it will log a new line of data delimited by commas to the file. I want to be able to show the maximum and minimum…
Chris A
  • 23
  • 1
  • 5
2
votes
1 answer

How to read from UART peripheral with a DMA channel?

I struggled to figure out, how to read from a UART peripheral into a larger queue with DMA. The documentation does provide quite a bit of information, but I found it difficult to figure out how to connect everything together. The UART peripheral is…
asynts
  • 2,213
  • 2
  • 21
  • 35
2
votes
2 answers

Raspberry pi pico usb debbuging on Windows

I recently bought raspberry pi pico and I follow the How to get started with raspberry pico in C/C++ tutorial, but I have only windows computer. I want to debug my pico with usb. I compiled the example hello world project with cmake usb…
Šimon Vyhnis
  • 408
  • 3
  • 9
2
votes
2 answers

CMake is not enabling exceptions

I have a small C++ program that I need to use exceptions in. When I try to compile it I get the error: error: exception handling disabled, use '-fexceptions' to enable In my CMakeLists.txt I set the C++ version to 11 and enable…
Mr.Samson
  • 49
  • 1
  • 4
1 2
3
33 34