Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

Filter by
Sorted by
Tagged with
0 votes
1 answer
386 views

Use raspberry pi pico to open programs on host PC

I have both a raspberry pi pico and pico w, and am attempting to connect either one to a toggle switch, and use the input of said switch to either open or close an application on the host PC (...
John's user avatar
  • 1
0 votes
1 answer
695 views

Raspberry Pi Pico not mounting

My raspberry pi pico has been (auto) mounting fine so far but suddenly it has stopped doing so. More specifically, when I was plugging it into the usb port (pushing down BOOTSEL) of an Ubuntu machine (...
Sidisyom's user avatar
0 votes
1 answer
2k views

Raspberry Pico SDK - I2C Write to one Register Address (to set mode) then Read data from 2nd Register Address

I'm a bit confused by i2c_write_blocking() and how to specify the device_address, register_address and data to prime a device for reading and then to read data from another 2nd_register_address in the ...
David C. Rankin's user avatar
3 votes
3 answers
7k views

Pi Pico W: what is the practical difference between RUN and 3V3_EN pins?

Pi Pico W datasheet states: 3V3_EN connects to the on-board SMPS enable pin, and is pulled high (to VSYS) via a 100kΩ resistor. To disable the 3.3V (which also de-powers the RP2040), short this pin ...
Vadim's user avatar
  • 567
1 vote
1 answer
385 views

Code not running on RPI Pico

I have the following code on the RPi Pico W: include "pico/stdlib.h" #define LED 25 int main() { gpio_init(LED); gpio_set_dir(LED, GPIO_OUT); while (true) { ...
Diogo Ferreira's user avatar
1 vote
1 answer
163 views

RF22 library for Raspberry Pi Pico

I want to use this RF22 module (in a breakout board) with a Raspberry Pi Pico. However, I have tried both the RadioHead (which is for teensy boards, as i found out later) and RF22 library without any ...
MIKE PAPADAKIS's user avatar
1 vote
0 answers
1k views

Set/Change PID / VID on Raspberry Pi Pico

I want to change the Product ID and Vendor ID of my Raspy Pico. After some research I found the TinyUSB library and there seems to be settings for Device Descriptor. As soon as I integrate the library ...
0i9n's user avatar
  • 11
2 votes
2 answers
721 views

Debian-based distro for Raspberry Pi Pico development

The "Getting started with Raspberry Pi Pico" guide states in chapter 2: The following instructions assume that you are using a Raspberry Pi Pico and some details may differ if you are using ...
Velvet's user avatar
  • 123
1 vote
1 answer
2k views

How can I connect my Raspberry Pi Pico W to an Eduroam WiFi access point (WPA authentication)?

For a teaching demo about autonomy in scientific research, it will likely be a major blocker if students cannot connect the Pico W to their school's WiFi. Someone suggested MAC spoofing, and I agree ...
Sterling's user avatar
  • 111
2 votes
2 answers
4k views

Power Pi Pico by applying 5 V to VSYS—any experiences with or thoughts on additional safety measures?

The official Pico datasheet chapter 4.5 suggests using either a Schottky diode or a P-channel MOSFET (P-FET; or a combination of both) when powering the Pico from an external power source (at least if ...
Manuel Popp's user avatar
2 votes
1 answer
1k views

Raspberry Pi Pico mic and speaker

Id like to connect a microphone, a speaker and a usb memory stick to the Pico. But as I understand both analog mic(https://www.adafruit.com/product/1713) and audio shield(https://thepihut.com/products/...
options666's user avatar
1 vote
1 answer
423 views

missing libusb-1.x to install openOcd to use picoprobe

I am trying to set up a picoprobe in order to program my rp pico using only wires (using another rp pico). I am following these instructions in Appendix A. I have windows 11 at the moment. When i try ...
MIKE PAPADAKIS's user avatar
0 votes
1 answer
166 views

How to control existing button with a Raspberry Pi? [closed]

I've got a simple standing with two buttons up/down. It has built in overload protection, i.e. when it's blocked. I'm pretty sure the controller behind the up/down button does that. As my first Pico ...
Boland's user avatar
  • 111
2 votes
2 answers
421 views

Controlling 5 DC motors with Pi Pico

I have a robotic arm which I want to control using Pico W. The issue is the arm has 5 motors but I was only able to find driver boards which can handle up to 4 DC motors using I2C. Are there boards ...
Alexander Vorobiev's user avatar
0 votes
1 answer
463 views

Raspberry Pi Pico: Input Not Working as Expected

I was following the Pico tutorial and got stuck on the inputs part as my Pico does not show value 1 even when the button is pressed the outputs are working fine, I continued and got stuck again on ...
Fquak's user avatar
  • 1
0 votes
1 answer
280 views

Prevent Raspberry Pi Pico From Opening Files Explorer When It's Plugged In

I just finished turning my Raspberry Pi Pico into a Macro Keyboard. The most annoying thing about it is that Windows treats it as a USB drive, and opens file explorer every time it is plugged in. ...
Greenreader9's user avatar
1 vote
0 answers
485 views

BME280 sensor on I2C 0 stopped working after adding another one on I2C 1

I have two similar BMP280 sensors. First, I connected one of them to GPIO 16, 17 (SDA, SCL) as well as 3V3 and GND. I ran the following script in MicroPython to read temperature and other measurements:...
Manuel Popp's user avatar
0 votes
1 answer
420 views

Does the Pi Pico need any kind of shutdown switch?

I am using the Pico to monitor voltage and amperage outputs of some solar panels (gotta love science fair) and am concerned with possible data loss. Is there a chance for data loss if the Pico is ...
Noah S's user avatar
  • 1
0 votes
1 answer
784 views

New Raspberry Pi Pico disconnects during MicroPython installation

I have a problem setting up a new RaspPi Pico. I pressed the BOOTSEL button, connected it via USB to my Windows machine and released the button. I copied the .uf2 file previously downloaded for this ...
Manuel Popp's user avatar
-1 votes
1 answer
53 views

Can't get the correct serial response between Raspberrypi 4 and Pico

I'm trying to make a little connection between both my Raspberry pi 4 and my Pico. Everything was ok until the pico suddenly stoped recieving what I'm sending from the Raspberrypi. Expected Outcome I ...
mr.xed's user avatar
  • 21
1 vote
1 answer
1k views

PN532 with Raspberry Pi Pico

I have PN532 NFC Module that looks like this I am trying to connect this NFC Module with Pico, but I have no luck in finding library that allows me this. What can I do to control it? Can you ...
M.Simel's user avatar
  • 23
1 vote
1 answer
281 views

Pi Pico w website, not working, loads up % on site instead of number [closed]

Pi Pico w website, not working, loads up % on site instead of number My code does not work, I based it of an example here is how it looks: # Based on sample code provided here : # https://www....
Cobwebblox's user avatar
1 vote
1 answer
2k views

Rpi Pico receiving on multiple UARTs

Expected behavior: in hardware I connect UART of a number 0/1 to the correct Pin numbers tx/rx and get it based on that connection Actual behavior: in hardware I connected UART of a number 0/1 to the ...
mr.xed's user avatar
  • 21
1 vote
0 answers
165 views

Connecting Waveshare ov2640 camera, Raspberry Pi Pico and external SD Card for capturing images and saving to sd card.Code is throwing "pin in use"err

Using the below code for connecting Waveshare OV2640 camera and External SD Card to Raspberry Pi Pico. The code throwing the following error import os import board import busio as io import digitalio ...
Jasline's user avatar
  • 11
0 votes
0 answers
129 views

SPI Interrupt Bit-Offset / Too Early

I´m running an SPI Slave on my Pico and executing an interrupt when 16 bits of Data are received. I visualized the interrupt with a gpio spike on the beginning and end of the interrupt to see when it´...
0i9n's user avatar
  • 11
0 votes
2 answers
2k views

How to control 5V fan speed using Raspberry Pi Pico PWM and MicroPython?

I dont if this is the correct place to ask this. Please give me feedback any kind will do. How can I control fan speed using PWM on Raspberry Pico ? Lets say if I have 5V fan, and a Raspberry Pico. ...
Trisk Khan's user avatar
0 votes
1 answer
568 views

How to set SPI master on RPI Pico to some exact frequency?

I want to have SPI master on my RPI Pico, and I require it to have exactly 4.8 MHz clock. But I don't know how to set it up properly, since SPI clock doesn't allow every value. I read about peripheral ...
PookyFan's user avatar
  • 133
0 votes
1 answer
343 views

Pi Pico giving error when trying to enable custom hid device

The following is my boot.py file. It's a copypaste from adafruit site. import usb_hid GAMEPAD_REPORT_DESCRIPTOR = bytes(( 0x05, 0x01, # Usage Page (Generic Desktop Ctrls) 0x09, 0x05, # ...
REVOLUTION's user avatar
1 vote
0 answers
654 views

Raspberry Pi Pico not booting after power outage

My Pi Pico is working fine when connected to the laptop and running the program. It is also connected via Pin 39 (VSYS) and ground. When I unplug the usb the Pi keeps running without issue. However, ...
markus902's user avatar
-1 votes
1 answer
1k views

Is it possible to overwrite scripts? (OTA Update)

I'm having a hard time finding information about remote updates on PICO W. I watched a bunch of videos demonstrating how MicroPython can be used to manipulate the flash storage - so would it be ...
php_nub_qq's user avatar
1 vote
0 answers
218 views

Issues with custom RP2040 board

I have made a custom RP2040 PCB. When I connected the PCB using USB to PC, it is attaching as mass storage device. But when I am copying a uf2 file for blink and it got unmounted. But nothing is ...
Robot's user avatar
  • 21
0 votes
3 answers
459 views

Can a raspberry pi power a 5v and 1 amp Peltier module

I am considering a project that involves the following part. https://www.amazon.com/Dilwe-Thermoelectric-TEC104901-Semiconductor-Heatsink/dp/B08YFBZW64/ref=sr_1_16?crid=DYBHWMJ9VUJN&keywords=5+...
UNKNOWN's user avatar
  • 79
0 votes
1 answer
179 views

Why do I get "compile_time_choice.S: No such file or directory" when building the blink example?

I'm roughly following this tutorial but with cygwin instead: https://shawnhymel.com/2096/how-to-set-up-raspberry-pi-pico-c-c-toolchain-on-windows-with-vs-code/ I use cygwin for another project so I ...
afarley's user avatar
  • 101
0 votes
0 answers
105 views

RPi Pico + Arduino IDE: Compiler generates FPU instructions for a device without an FPU

I've bought a SSD1306-compatible display for my Raspberry Pi Pico. However, it uses some kind of non-standard encoding and the typical Adafruit libraries don't work. The seller says I should use the ...
m93a's user avatar
  • 101
7 votes
1 answer
5k views

Maximum power draw on Pi Pico 3.3V rail with USB power

The Pi Pico datasheet recommends a maximum power draw on the 3V3 pin (pin 36) of 300mA. However, the RT6154B datasheet indicates that up to 3A can be drawn when Vin > 3.6V, which is the case when ...
ma3oun's user avatar
  • 273
0 votes
0 answers
841 views

How to give the on-chip RTC a power backup in Raspberry Pi Pico?

I need a power backup for the on-chip RTC on the Raspberry Pi Pico, like a button cell which is quite common. Someone suggested placing a 1.5V button cell between the VSYS pin and the ground. Would ...
Yatharth's user avatar
2 votes
1 answer
3k views

upip is not installed

I'm new to the pico world and micropython. Needless to say, one of the first things anyone should learn is the ability to set up environments and know the structure of the pico. I have read the ...
Gabe Morris's user avatar
0 votes
1 answer
760 views

Reasons the Pico W doesn't work when powered by new CR2032 battery?

Currently connected to GPIO Pins as per guide/datasheet and it's not powering up. Meanwhile I've got another same unit with the same simple setup/circuit except it's powered by 2 AA batteries and it's ...
Flood's user avatar
  • 147
0 votes
1 answer
37 views

Help on placing a LiPo in casing

I'm planning on building a portable Pico Prototyping box using a Pimoroni Pico LiPo and a LiPo battery. My question is if you put all of the parts in a case, is electrical shielding needed between the ...
Commodore 64's user avatar
1 vote
0 answers
200 views

PI PICO OUTPUT PEN PROTECTION FROM REVERSE VOLTAGE

I am running a BLDC motor with Rasberry Pi PICO using DShot ESCs. Everything is good well when I run 1 or 2 motors. However when I try to run 4 motors at the same time. It fries my PICO. It seems ...
ZAK's user avatar
  • 11
0 votes
1 answer
537 views

Can I use an HM10 connected to a Raspberry Pi Pico to read from a BLE notification?

I have a Raspberry Pi Pico and would like to read BLE notify data from an external sensor should using an HM10. I've seen the HM-10 datasheet and don't see anything there that would be of help. Is it ...
b73hdh's user avatar
  • 1
1 vote
2 answers
4k views

What is the power consumption of Pico W and competitors for wireless IoT devices?

Does someone have numbers on the power consumption of the Pico W, i.e. the new version of the Pico with Wifi capabilities (and maybe how it compares to competing platforms such as ESP, Arduino etc.)? ...
fuenfundachtzig's user avatar
2 votes
2 answers
484 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'...
anon512's user avatar
  • 31
1 vote
1 answer
249 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 ...
zapshe's user avatar
  • 111
0 votes
2 answers
4k 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.', ...
Andreas's user avatar
0 votes
2 answers
2k 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 ...
Bobby's user avatar
  • 1
1 vote
0 answers
223 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 ...
Antifa's user avatar
  • 141
0 votes
0 answers
234 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 ...
HighElfWisard's user avatar
1 vote
1 answer
268 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 ...
Francisco Ayrolo's user avatar
1 vote
0 answers
384 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 ...
Robot's user avatar
  • 21