2022 Developer Survey is open! Take survey.

Questions tagged [pi-pico]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

raspberry pico and circuitpython

I am building a clock using rpi pico, max7219 and wiznet5k. I am trying to incorporate mqtt functionality, in order to show important short messages to the max7219 every now and then. I have run into ...
user avatar
0 votes
0 answers
31 views

RP2040 PIO vs DMA for PWM audio output [closed]

In order to turn audio data, stored in an array on flash, into PWM audio output, I believe Pico's RP2040 gives me - apart from bit-banging - these two options: DMA PIO What are the pros and cons of ...
user avatar
0 votes
2 answers
20 views

(Pico) USB serial connection having noise?

I'm having some trouble trying to make a simple USB IO demo to test the Pico. Apparently, the USB serial connection seems to be noisy, and always puts something into the UART buffer even though I am ...
user avatar
0 votes
1 answer
23 views

raspberry pi pico to pc communication

I have a raspberry pi pico and want it to execute files on my windows pc(for example: if I press a button it opens a file). Because I am new to microcontrollers I have no idea how to do this. there is ...
user avatar
1 vote
1 answer
23 views

rPi Pico IRQ with callback freezes Pico

I am trying to configure rp2040 function gpio_set_irq_enabled_with_callback on Pico using Arduino IDE with installed Arduino mbed OS because i need some libraries. When called interrupt happens but ...
user avatar
  • 21
0 votes
1 answer
34 views

How to store an array in flash memory (only) using the pico sdk?

The RP2040 on my board (Seeeduino XIAO) comes with 2MB of flash ram. How can I store an array that is too large to fit into RAM in flash, using C and the pico sdk? As the array exceeds a certain size, ...
user avatar
1 vote
0 answers
66 views

Frequency counter with external reference

I'd want to use the RPi-pico to measure the ratio between two frequencies, one stable F0 = 10MHz, the other F1 about 14MHz, both externally fed to two GPIOs. 20 bit accuracy is fine. That could be e.g....
user avatar
  • 551
0 votes
0 answers
21 views

PiPico Quad Spi library to controll NOR flash modules

I need to use quad SPI NOR flash modules (W25Q128JV) for a project and I bought a Pi Pico as a simple way of validating the design before moving to an FPGA for the final project (the project is real-...
user avatar
  • 11
0 votes
1 answer
36 views

raspberry pico and circuitpython with ethernet and ntp server sync

I am trying to built a clock with rpi pico and circuitpython. For iot connection I use a WIZNET5K module and so I used the adafruit_wiznet5k library. It connects alright. The next step is to sync the ...
user avatar
0 votes
0 answers
29 views

Why does Pi Pico duplicate and mix-up characters received over UART when programmed in C?

I have a Raspberry Pi Pico whose Tx and Rx pins are wired to the Rx and Tx pins of a Wemos D1 Mini development board. The Wemos and the Pico are powered via an external 5V power supply (common ground)....
user avatar
1 vote
1 answer
33 views

Cannot get code to run on pico

I just got a pico. I placed the uf2 micropython file on it. The device then is unmounted from the system (Ubuntu 20.04). It is never automatically mounted back like all tutorials say. Anyway, i unplug ...
user avatar
0 votes
1 answer
77 views

How to clear UART RX error for pico (RP2040)?

While working with a RPi Pico UART RX routine in C using pico-sdk, I have realized that uart_get_hw(uart0)->rsr; reports an error - that is, it has a value different from 0 (in my case 13, which is ...
user avatar
  • 107
0 votes
1 answer
77 views

Raspberry Pi Pico (RP2040) - wrong order of printf arguments?

I've just started working with RPi Pico (RP2040), and I tried the following simple program: #include <stdio.h> #include "pico/stdlib.h" volatile int chars_rxed = 0; int main() { ...
user avatar
  • 107
1 vote
0 answers
178 views

Emulator for RP2040?

I'm starting to explore RP2040/Raspberry Pi Pico, however, I was wondering about something: is there a "proper" emulator/simulator for RP2040? From earlier Atmel experience, Atmel Studio ...
user avatar
  • 107
0 votes
1 answer
31 views

Pico providing power to PIR sensor and relay module from gpio pins

I am trying to power (not at the same time) a pir sensor, and a relay board, via pico's gpio pins. The project is a camera that is turned on when the sensor is triggered. I am using the relay board to ...
user avatar
0 votes
0 answers
51 views

Pi Pico nrf24l01 on arduino ide

I have made an Rx and Tx with nrf24l01, when I have both serial monitors open (Rx& Tx) the communication is fine I can see package receiving, but when I close e.g. the serial monitor of Tx. I don'...
user avatar
2 votes
1 answer
167 views

Accessing Raspberry Pi Pico REPL from Android Serial USB Terminal App with main.py present

I discovered that I can plug a Raspberry Pi Pico into my Android phone and use the app 'Serial USB Terminal' as a serial monitor. However, if the Pico has a main.py script uploaded to it, then it ...
user avatar
0 votes
0 answers
83 views

So I have been trying to work past a problem when connecting my Pico, how do I fix "Usb device not recognized"

I can't access the Pico as it is not even showing up as mass storage? To be more specific the only thing that shows up after holding the bootsel and connecting or the reset button and connecting is &...
user avatar
0 votes
0 answers
106 views

How do I use the TinyUSB module in my local c/c++ projects of RP2040?

I am trying to set the pico in usb device mode. The example code given work fine, but as per my application I want to use the tinyUSB module locally. How do I do that? Consider the example of pico-...
user avatar
1 vote
0 answers
124 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 ...
user avatar
  • 111
-1 votes
1 answer
224 views

Circuitpython: ValueError: GP0 in use. How to reset GPIO pin?

Error Message After having written a function that sets output and values to specific GPIO pins, I'm running into the following error: ValueError: GP0 in use. Code The function is: def ...
user avatar
  • 131
0 votes
0 answers
57 views

Transmit a string from one Pico to another Pico via i2c using Micropython

I want to transmit a string from one pico to another pico via I2C protocol , but I some how cant find a way to do it , my I2C scan function doesnt seem to detect another pico at all, is there a way to ...
user avatar
0 votes
1 answer
158 views

Full speed of Pico ADC faster than USB -- how to capture? SPI? Compression?

I am using a few Picos (connected together via I2C -- but I will switch soon to SPI) as a single USB peripheral connected to a computer and they are working ok. The computer obviously sees only one of ...
user avatar
  • 141
0 votes
0 answers
65 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 ...
user avatar
1 vote
0 answers
34 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....
user avatar
1 vote
1 answer
199 views

What read protection method is available in RP2040?

I went through the data sheet but could not find any specific details about read protection. If anyone has worked on that specific area in RP2040, then can you please give your inputs about it?
user avatar
0 votes
0 answers
155 views

Slow write speeds to Rasberry Pi Pico flash using LittleFileSystem/LittleFS

I have a Sparkfun Things Plus RP2040 with 16MB of onboard flash. I am trying to write a program which uses the flash as a buffer (let's say to store 5MB of data) before writing to an SD card. The idea ...
user avatar
0 votes
1 answer
111 views

Neopixel not working with Raspberry Pi Pico

My neopixels aren't working when I run them, I am using curcuitpython and using all libraries required import neopixel from adafruit_led_animation.animation.solid import Solid from ...
user avatar
0 votes
1 answer
46 views

Detecting connections between non-GPIO and GPIO pins in Pico?

XY-problem I have a keyboard that consists of two halves. Each half uses 16 pins. The pins in each half are aligned in a 8x8 matrix yielding 64 key presses that can be detected, and two times 64=128 ...
user avatar
  • 131
0 votes
0 answers
22 views

what is the project structure of a c/c++ project for rp2040(pico)?

When we make a project for STM32 environments, we get a structure where all the header and .c files are stored in separate directories like src, include, etc which depends on the IDE that is being ...
user avatar
-2 votes
1 answer
155 views

UART make sure to prevent data loss; choppy binary transmission [closed]

If I use UART to send sensor data from a Pi Pico to another computer (received via /dev/tinyUSB0), does the "default protocol" have any sort of error correction? I guess I don't need to ...
user avatar
  • 502
1 vote
2 answers
507 views

Possible to send data from a Pi Pico via USB while running CircuitPython?

I have a question on the interaction between Pi Pico, CircuitPython, and USB. I need a way to send a data stream from the Pico to another computer where it will be received on a USB port (it's the ...
user avatar
  • 502
0 votes
0 answers
100 views

what is schmitt trigger gpio mode in rpi2040?

I have been studying RPi2040 GPIO's function and I don't understand this Schmitt Trigger Mode of the GPIO. I have a background in STM32, can someone please explain this mode relating to STM's GPIO ...
user avatar
0 votes
0 answers
31 views

DFRobot_RGB1602 library does not work properly with DFRobot DFR0554 and Raspberry Pi Pico

Problem summary: set_cursor(0,0) brings text to (2,1) and set_cursor(0,1) brings text to (3,1), texts goes to imaginary 3rd line before 2nd line as if a 20x4 display. I modified the Python code to ...
user avatar
1 vote
0 answers
121 views

Rasssbery pi pico bricked

So, I own a Raspberry Pi pico that has a broken BOOTSEL button. Beacuse I had micropython installed previosuly, I reset the pico with the command: machine.bootloader(). Then I flashed the fuzix.uf2 ...
user avatar
1 vote
0 answers
137 views

Loading firmware into RP2040 SRAM via SWD

I have to upload a new firmware in the Raspbery PI PICO external flash via SWD from a different microcontroller (an ESP32) connected via UART and SWD lines (I asked here a previous question). I ...
user avatar
  • 31
2 votes
1 answer
1k views

Rpi Pico MicroPythpn Controlling TMC2208 / TMC2209 / TMC2225 Stepper Motor Driver Problem

I am new to using stepper motors and micropython. I am having trouble getting my stepper motor to turn. I am using a raspberry pi pico and a tmc 2208 driver to control my stepper motor. I can hear the ...
user avatar
0 votes
1 answer
79 views

Wiring an Omron Thermal Printer to a Pi Pico

I'm trying to connect an old Omron thermal printer (PRT-1 Z, companion of the 705CP Blood Pressure Monitor) to a Raspberry Pi Pico. The idea is being able to print something using the Pico. The ...
user avatar
  • 123
1 vote
0 answers
114 views

Problems Installing ssd1306 library on rpI pICO

Using Manage Packages in Thonny I had successfully installed the ssd1306 library onto my Pico and had the OLED working successfully. When showing a student how to download the library I got the ...
user avatar
  • 11
-2 votes
1 answer
314 views

Can I compute with float and double on a Pi pico?

I did not see float capabilities on cortex M0+, is it possible anyway ? The Pico sdk provides float capabilities: did I misread about the M0+ or is it done in some way ? How ? https://raspberrypi....
user avatar
  • 97
0 votes
1 answer
42 views

Can I run raspberry pi pico software on a pi 3B?

So in this video he uses a pico to automatically rickroll someone. Can I just follow the same steps? https://www.youtube.com/watch?v=e_f9p-_JWZw And there's a different guide for the same prank, but ...
user avatar
1 vote
0 answers
162 views

Control Google Home devices with Raspberry Pi Pico [closed]

I have a pile of buttons and raspberry pi pico’s (I went a bit overboard when they went on sale), and wish to connect them to Google Home to control my devices. Basically, I want each button to do a ...
user avatar
0 votes
0 answers
22 views

How can I run a python script on boot on an RPi-Pico, 2040? [duplicate]

I'm new to the Pico and RPi and haven't tried this on any system so far, but the Pico looks like something I would like to just hook-up to a power supply and let it run, like an Arduino. I haven't ...
user avatar
2 votes
2 answers
355 views

Does a UART connection require shared ground?

I'm a novice with electronics but not Linux. This situation has had me scratching my head for two nights. I connected a Pi Pico to a Raspberry Pi 4 via UART, and managed to receive messages sent from ...
user avatar
1 vote
0 answers
54 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 ...
user avatar
  • 111
2 votes
1 answer
169 views

Why does introducing C++ to a Pico project result in "error: duplicate 'inline'" due to using wrong stdio.h version

I have a Raspberry Pi (3) with a Pico SDK freshly installed via the recommended script. I've added the pico-project-generator and created a project as follows: ./pico-project-generator/pico_project.py ...
user avatar
  • 161
1 vote
0 answers
310 views

Communication between Pico and PC over USB with Circuit Python

How do i send text/json or bytes data over USB cable from my PC to Raspberry Pi Pico using Circuit Python. I tried to do that using a text file and then editing it from PC but it was taking over 1 ...
user avatar
0 votes
0 answers
47 views

RP2040- Memory architecture

I am designing an RP2040 board that has external access to the QSPI chip. I need to be able to program the microcontroller externally without USB, and I thought this would be the easiest method. I'm ...
user avatar
1 vote
1 answer
44 views

Why does Thonny get this error?

I am currently programming a Raspberry Pi Pico with the explorer base, and I am using the examples at https://github.com/pimoroni/pimoroni-pico (NOTE: I am using MicroPython in the Thonny IDE to ...
user avatar
  • 13
2 votes
1 answer
100 views

How to send Data from the Ras Pi Pico to Ras Pi 4.0?

I have a Ras Pi Pico which I am using for data collection due to the required sampling frequency. I would like to collect that data and send to the Ras Pi 4.0 so I can use the data elsewhere. Is this ...
user avatar