Questions tagged [pi-pico]

The tag has no usage guidance.

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

Why VGA VSYNC and HSYNC need 47 Ohm resistors in this schematic?

In Chapter 3 in this document there is a schematic showing a connection to VGA: https://datasheets.raspberrypi.com/rp2040/hardware-design-with-rp2040.pdf Why is there a 47 Ohm resistor connected to ...
user avatar
  • 131
1 vote
1 answer
44 views

Is the waveshare 2.7 e-paper HAT ink display the right display for a pico?

I'm very new to programming on raspberry pi's and I haven't coded anything in about 5 years so bear with me. My company is asking me to connect a 2.7 e-paper hat INK display to a raspberry pi pico. I'...
user avatar
  • 21
0 votes
1 answer
27 views

GPCLK vs PWM using micropython with Pico

I have a DC motor I can spin via ESC connected with a Raspberry Pi 4, but I want to use a Raspberry Pi Pico instead. Using GPIO4, that has the clock, I have this code that works for spinning the motor ...
user avatar
  • 101
1 vote
0 answers
39 views

Shorted Raspberry Pi Pico 3v3 pin to GND

I accidentally shorted the 3v3 pin (36) to GND pin (38) for a split second. It turned off, but after that it seems to be working. Did I damage it in some way? Is it safe to use after this?
user avatar
  • 131
0 votes
0 answers
19 views

Problem Connecting Raspberry pi Pico with Thonny

Whenever i download the micropython uf2 file from Thonny and wait for it to reboot i get this message: Unable to connect to COM4: could not open port 'COM4': PermissionError(13, 'Access is denied.', ...
user avatar
0 votes
0 answers
31 views

multiple ds18b20 raspberry pico

with a raspberry pi zero you use the temp sensor ids with python code. Not sure how to add 2 of the same DS18B20 sensor to pico. I am pissed at myself as I damaged the pi zero onewire input on the ...
user avatar
  • 1
1 vote
0 answers
42 views

Arduino-Pico RF433 Rf-Tx cheap modules

I currently use Arduino IDE to program Raspberry Pico, using this as reference. Arduino-pico Github My intention, is to use RadioHead library which is not available in MicroPython, to send and receive ...
user avatar
  • 121
0 votes
0 answers
26 views

Back and forth communication between Pico and PC

I am making a Pico powered PWM fan controller, and I currently have 2 potentiometers to control the fan speed. I am however thinking about writing some software in Python to modify the speed. The ...
user avatar
0 votes
0 answers
37 views

GDB pointing to the wrong file when debugging with picoprobe + openOCD

I'm trying to debug a Raspberry Pi Pico project using openOCD + Picoprobe. I go through the steps that appear to be correct to do all this from my Linux PC (the Get started with Pico and C++ guide is ...
user avatar
1 vote
0 answers
43 views

Having issues interfacing SPS30 with Pico

I am trying to interface SPS30 via UART, but I am not able to start the fan. I am getting some response but it won't match any possible response from the datasheet. Using Micropython. Below is the ...
user avatar
  • 11
0 votes
0 answers
49 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 ...
user avatar
0 votes
2 answers
34 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
43 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
61 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
63 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
131 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
26 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
71 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
45 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
41 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
167 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
  • 117
0 votes
1 answer
122 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
  • 117
2 votes
0 answers
299 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
  • 117
0 votes
1 answer
37 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
73 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
1 vote
1 answer
272 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
107 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
135 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
165 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
297 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
  • 121
1 vote
0 answers
80 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
236 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
87 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
38 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
260 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
196 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
133 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
56 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
  • 121
0 votes
0 answers
23 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
181 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
  • 482
0 votes
2 answers
575 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
  • 482
0 votes
0 answers
131 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
35 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
135 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
176 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
1 vote
2 answers
2k 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
91 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
141 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
411 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
48 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