Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

Filter by
Sorted by
Tagged with
1 vote
1 answer
270 views

raspberry pico, circuitpython and how to receive mqtt feeds reliably while showing time on pico

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 ...
thermike's user avatar
0 votes
2 answers
507 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 ...
Francisco Ayrolo's user avatar
0 votes
1 answer
617 views

how to power motors correctly on raspberry pi pico

I was using my raspberry pi pico and testing motors, and it worked just fine(pins was in GND + 3v3 pins). Then I wanted to use On/Off function in C, And i used the pin GP28_A2 to use it. But it wont ...
Stigl's user avatar
  • 9
0 votes
1 answer
769 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 ...
Chao wingching hongfingshong p's user avatar
1 vote
1 answer
722 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 ...
tmajz's user avatar
  • 21
2 votes
1 answer
3k 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, ...
Evgeniy Berezovsky's user avatar
1 vote
2 answers
2k 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....
fgrieu's user avatar
  • 583
1 vote
1 answer
405 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-...
OM222O's user avatar
  • 121
0 votes
1 answer
742 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 ...
thermike's user avatar
0 votes
0 answers
595 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)....
straits's user avatar
1 vote
1 answer
489 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 ...
user1584421's user avatar
1 vote
1 answer
1k 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 ...
sdbbs's user avatar
  • 237
2 votes
1 answer
939 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() { ...
sdbbs's user avatar
  • 237
10 votes
2 answers
8k 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 ...
sdbbs's user avatar
  • 237
-1 votes
2 answers
397 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 ...
James Bowler's user avatar
1 vote
1 answer
2k 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 ...
cornerpocket's user avatar
2 votes
0 answers
1k 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 ...
Grammin's user avatar
  • 121
1 vote
1 answer
3k 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 ...
a.t.'s user avatar
  • 171
1 vote
0 answers
438 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 ...
Mohith Tallam's user avatar
3 votes
2 answers
3k 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 ...
Davide's user avatar
  • 181
2 votes
0 answers
685 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 ...
user8737703's user avatar
2 votes
0 answers
353 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....
lemmings's user avatar
1 vote
1 answer
846 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?
user8737703's user avatar
0 votes
0 answers
1k 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 ...
Jamie Macaulay's user avatar
0 votes
1 answer
777 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 ...
WellActually...'s user avatar
0 votes
1 answer
156 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 ...
a.t.'s user avatar
  • 171
-2 votes
1 answer
788 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 ...
0__'s user avatar
  • 502
0 votes
2 answers
2k 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 ...
0__'s user avatar
  • 502
0 votes
0 answers
142 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 ...
Syed Omar Noor's user avatar
1 vote
0 answers
370 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 ...
Toni Poede's user avatar
1 vote
1 answer
1k 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 ...
Luca's user avatar
  • 31
1 vote
2 answers
8k 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 ...
TiVe's user avatar
  • 21
1 vote
1 answer
375 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 ...
corbin-c's user avatar
  • 133
1 vote
0 answers
525 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 ...
Fred's user avatar
  • 11
-1 votes
1 answer
3k 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....
Soleil's user avatar
  • 107
0 votes
1 answer
417 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 ...
Anum Barr's user avatar
1 vote
0 answers
1k 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 ...
Greenreader9's user avatar
3 votes
2 answers
3k 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 ...
lowercasename's user avatar
2 votes
0 answers
375 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 ...
Ecir Hana's user avatar
  • 121
4 votes
1 answer
338 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 ...
Chris's user avatar
  • 181
1 vote
0 answers
1k 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 ...
MaciejkaG's user avatar
0 votes
1 answer
414 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 ...
AWESDUDE COOL's user avatar
1 vote
1 answer
114 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 ...
dbubbis's user avatar
  • 13
2 votes
1 answer
622 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 ...
Ben Watson's user avatar
0 votes
1 answer
558 views

Pi Pico- How to use XIP

I am trying to boot my Pico from an external NOR flash module, but I'm not sure how to do it. The QSPI pins on the RP2040 look to be used already, is there any way I can access these externally or set ...
AWESDUDE COOL's user avatar
0 votes
1 answer
502 views

"Expected 84 but got 2 pulses" error with DHT22 thermal sensor on raspberry pico

I followed this tutorial to setup DHT22 thermal sensor on a raspberry pico: https://peppe8o.com/dht11-humidity-and-temperature-sensor-with-raspberry-pi-pico-and-micropython/?unapproved=7929&...
Bakaburg's user avatar
  • 109
1 vote
0 answers
2k views

Transmitting and Receiving messages through RF433 using Raspberry Pico

I'm currently working in a new DIY project, where I need to send a message through RF from Raspberry Pico, and receive it in an other Raspberry Pico through RF. I have bought some common RF433 ...
Antifa's user avatar
  • 141
1 vote
2 answers
8k views

What is the PICO max SPI frequency?

What is the raspberry pi pico maximum SPI frequency? I wwould like to know the theoretical maximum given no overclocking and the maximum that is stable,
DrakeJest's user avatar
0 votes
1 answer
82 views

Does GPIO27 need special handling when used as digital input?

I have three rotary encoders (with switch) connected to GPIOs (16,17,18), (19,20,21), (22,26,27). For quick testing of working I/O, I put all of them to input mode, with internal pull-up, and watch ...
eudoxos's user avatar
  • 129
1 vote
1 answer
3k views

UART communication Raspberry Pi Pico to Raspberry Pi

*Update, new main.py for pico and read_serial for RPI 4. *I am having the same problem with uart.write(), see below. I am trying to communicate with a raspberry pi pico with my raspberry pi 4 over ...
merit_2's user avatar
  • 111