Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

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

Controlling leds with potentiometer and a button on a raspberry pi pico

I am trying to control Leds with a button to change if one is on or off and a potentiometer to control the brightness of the Leds. I am using a Raspberry Pi Pico. Is there a way to do this.
The Amazing Banana Guy's user avatar
1 vote
1 answer
82 views

Serial data over 30meter shielded Cat5e cable in industrial environment

I'm designing an industrial solution for monitoring and controlling some large raw-material processing machines. What I want to have is an RPi Pico at each piece of equipment that can standalone ...
flamewave000's user avatar
0 votes
0 answers
44 views

Use raspberry pi pics to record rpm on a wheel

I would like to use a raspberry pi pick to record the rpm of a wheel on a rc car. There will be a contact on the wheel, and a contact on the body of the car. As the wheel turns, if the two contacts ...
user112167's user avatar
-2 votes
2 answers
254 views

How can I connect a raspberry pi pico to an oscilloscope to measure power consumption?

I have loaded a neural network onto a Raspberry pi pico and I want to know how to connect it to the oscilloscope to measure its power consumption over time. I have the necessary components for wiring ...
ahahahahana's user avatar
3 votes
1 answer
2k views

How to do rising-edge detection on a Raspberry Pi Pico

Is there a non-polling way to detect when an input goes from OFF to ON with the Raspberry Pi Pico MicroController? I see the Raspberry Pi allows one to do something like below to detect rising edges ...
Vivek's user avatar
  • 131
0 votes
1 answer
264 views

How to send data between two already configured HC-05 modules

I'm new to electronics and microcontrollers, and I'm building an small project in which I'd like to send information from a master HC-05 bluetooth module to an slave one, I've already synced them ...
Rodolfo BocaneGra's user avatar
1 vote
0 answers
124 views

How to connect SD card and battery to Pico?

I have been looking into components I need for a MicroPython project. I needs to be battery powered and be able to read/write to a removable SD card. For this, I have discovered SD breakout boards. ...
SamTheProgrammer's user avatar
2 votes
0 answers
567 views

Pico-ETH-CH9121 complete use case example

I purchased Waveshare's Pico-ETH-CH9121 and followed the instructions at https://www.waveshare.com/wiki/Pico-ETH-CH9121. Unfortunately, I do not understand what to do to establish a TCP/IP connection, ...
Twonky's user avatar
  • 133
2 votes
1 answer
2k views

DS18B20 OneWire Library with Raspberry Pi Pico W and Micropython

Good day, I am using a Raspberry Pi Pico W with a temperature sensor among other things. I tried finding code online to make the temperature sensor work and it returns the following error. Found DS ...
Pranav's user avatar
  • 23
1 vote
1 answer
1k views

Raspberry Pi Pico doesn't create tty file

I've been using Raspberry Pi Pico for some time already and I'm using minicom for serial communication. But one day Pico stopped generating tty/ATCM0 when connected to USB port. Before this everything ...
Omicron's user avatar
  • 119
2 votes
1 answer
280 views

Debuging Pico W

I have followed the instructions for using openocd to debug an program, but the output I get from openocd is: Info : Hardware thread awareness created Info : Hardware thread awareness created Info : ...
APA's user avatar
  • 21
0 votes
1 answer
830 views

Why am I getting this syntax error in micropython?

I am testing the raspberry pi pico, and am getting a strange syntax error. I have no idea why. from time import sleep led = Pin(25, Pin.OUT) wait = 0.1 while True for x in range(9) wait += ...
Sad Man's user avatar
1 vote
1 answer
308 views

RpiZero and RpiPico communication through nrf24l01 not receiving packages

I am trying to implement a wireless communication between RpiZero and RpiPico through NRF24l01 modules. Pico is the receiver, and Zero is the transmitter. I have successfully started the Pico ...
Antifa's user avatar
  • 139
0 votes
1 answer
408 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
776 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
8k 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
  • 565
1 vote
1 answer
415 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
170 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
780 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
2k 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
441 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
179 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
452 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
486 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
316 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
503 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
446 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
829 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
61 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
284 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
171 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
130 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
624 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
355 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
696 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
225 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
475 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
184 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
113 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
6k 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
893 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
4k 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

1 2 3
4
5
7