Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

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

Setting RTC alarm

I'm somewhat confused by the use of rtc.irq, more precisely the trigger argument. If I wanted to blink a LED every second using IRQ, the docs say that trigger has to be RTC.ALARM0. Do I have to use ...
Ecir Hana's user avatar
  • 121
1 vote
1 answer
57 views

Powering a pico with a lipo battery charged by a bike dynamo

So, I am building a gps tracker build on raspberry pico and a neo 6m gps module. Now, I want to power this project with a lithium battery that can offer some autonomy. I was thinking of using a , ...
Edoardo Balducci's user avatar
0 votes
0 answers
32 views

Connect Raspberry Pi Pico to 93C46 trought Microwire (3-wire Protocol)

i searched to know if someone did that before, but i didn't find anything, some C code to read and write using Arduino, but when i try to convert it i failed because i'm new at MicroPython and ...
Hitotam's user avatar
1 vote
0 answers
26 views

Can't download file from Raspberry Pi Pico to MacBook Pro

I'm using a Raspberry Pi Pico to control a coffee machine. As part of tuning the PID controller, I'm writing to a data.csv file on the pico, then downloading that to my MacBook Pro Silicon running ...
Andrew Dyall's user avatar
0 votes
0 answers
34 views

Where does Pico micropython print go with main.py?

If you load a main.py file onto the Pico with micropython firmware running, it will run on startup. I can tell that this is working because I observe GPIO outputs changing, etc. However, I'm not sure ...
alex's user avatar
  • 21
1 vote
1 answer
79 views

Debugging using raspberry debug probe fails with SWD error

I am trying to debug some code on a Raspberry Pi Pico W. I'm using PlatformIO. After some Issues with the OpenOCD version shipped with PlatformIO (Access Violations), which I fixed by replacing the ...
Lukas's user avatar
  • 11
1 vote
2 answers
203 views

One time timer interrupt? (Pico W, C/C++)

Is there a way to set a one time timer interrupt on the Raspberry Pi Pico? I.e. in code, I would be able to tell the hardware timer to interrupt me in a specified period of time. Example pseudocode ...
alex's user avatar
  • 21
0 votes
2 answers
65 views

Shorted power to ground through resistor (Raspberry Pi Pico)

I have a similar question to this post: Shorted Raspberry Pi Pico 3v3 pin to GND I have shorted pin 36 to 38 through a 1.5k resistor. I assume that because of the resistor there should have been ...
alex's user avatar
  • 21
0 votes
1 answer
47 views

Controlling multiple electromagnets from one Raspberry Pi

I have a need to build a spring mounted table, 12" square solid top in red, springs in blue and bottom in green, as in the diagram I need to place a solid ball on the top board so it rolls ...
Nicholas Walton's user avatar
0 votes
1 answer
64 views

How to use PIO one bit shift to FIFO on Pico in micropython?

I'm trying to port the Pico C/C++ SDK example on PIO FIFOs into micropython. I'm unable to get the out() instruction to work as intended. I've tested the generic micropython pio_blink.py sample, ...
Dan's user avatar
  • 101
0 votes
0 answers
20 views

Use external power supply

I'm a newbie I have a circuit which requires 12v to drive some ESCs that go to brushless motors and 5V that goes to pin 39 of a raspberry pi pico, they share a neutral / negative to complete the ...
Simon B's user avatar
  • 101
0 votes
1 answer
42 views

Pico Disconnects from Thonny when a relay is activated

Apologies if this is not a pico question, not sure where the problem lies... I have a small hobby motor (5v) mounted with a hobby fan: that is connected to Normally Open on a relay and 5V Wall Power ...
james6125's user avatar
  • 101
0 votes
0 answers
99 views

Why does 5V make this relay not work properly vs 3.3 V on the pi pico?

I have a small hobby motor (5v) mounted with a hobby fan that is connected to Normally Open on the Relay (pic) and 5V Wall Power supply (via a barrel/terminal block adapter.) On the input side, the ...
james6125's user avatar
  • 101
2 votes
2 answers
133 views

Cannot use global variable in pio function

I am working on a project in which I need to control a brushless motor with a microcontroller. I have chosen the Pico as I already have some on hand and there is a high chance of it being completely ...
lpinfinity's user avatar
1 vote
1 answer
172 views

Help with pico-sdk directory structure and CMake

Background: I am writing C++ code for the Pico on Windows using VS Code and CMake. What was working before: I have been writing programs successfully using the recommended directory structure: + ...
Rocketmagnet's user avatar
0 votes
0 answers
65 views

CIRCUITPYTHON drive not showing on rear USB ports

So I have a Raspberry Pi Pico running circuitpython and other prerequisites for the pico rgb keypad, and as shown in the title above, for some reason the circuit python drive only shows and the ...
fozzy's user avatar
  • 1
0 votes
0 answers
41 views

Voltage from Sensor drops when connecting to ADC pin of Raspberry Pi Pico

I'm trying to measure the voltage using a voltage sensor. If the power source is activated, the sensor outputs 2.6V, and if deactivated it outputs around 20mV. However, If I connect the signal pin to ...
Profi5000's user avatar
0 votes
2 answers
26 views

Where to find LED values of the Raspberry Pi Pico MicroPython Learning Kit?

I am getting started with a pico and I got the Raspberry Pi Pico MicroPython Learning Kit from waveshare (https://thepihut.com/products/raspberry-pi-pico-micropython-learning-kit-pico-included) It ...
Another_coder's user avatar
0 votes
1 answer
185 views

Invalid pin error Raspberry Pi Pico micropython

I'm currently doing a project using all of the GPIO pins on the raspberry pi pico. I want to configure pins 31, 32 and 34 (GP26, 27 and 28) as outputs but keep getting the 'invalid pin' error. No idea ...
lia12's user avatar
  • 1
1 vote
1 answer
108 views

Is it possible to use both interrupts and ADC on the same pin of the RPi Pico?

In order to use the Raspberry Pi Pico ADC on a pin, the adc_gpio_init function is used, which disables all digital functions (https://www.raspberrypi.com/documentation/pico-sdk/hardware.html#...
Anton's user avatar
  • 121
0 votes
1 answer
114 views

Playing audio on a Waveshare audio module

I've bought a Pico Audio module - assuming, maybe incorrectly, that being built to fit the Pico, speakers included etc it would be reasonably straightforward to get it working. https://thepihut.com/...
Oli's user avatar
  • 101
0 votes
0 answers
175 views

How would I get audio input to a pi pico?

I’m trying to make an audio visualiser with the pi pico, and I want to connect it to my computer. I need to read the audio from the computer to do this. I could use an audio jack, but I can’t find ...
Commodore 64's user avatar
0 votes
1 answer
79 views

Get package temperature of a Raspberry Pi pico using C

I'm working on a Raspberry Pi pico and I'm using the C pico-sdk. I want to get the temperature of my package so I followed the datasheet of the rp2040 (page 565) and I've used the following code : ...
Bibibou's user avatar
  • 13
1 vote
0 answers
69 views

Desktop Weather Display using Pi-pico-w

I'm trying to replicate this (https://mustardcorner.com/desktop-weather) project but I'm trying to use the Pico w instead of the Pizero w he was using. But the code obviously does not work on the Pico,...
Jesse gudgeon's user avatar
0 votes
0 answers
89 views

Can't connect via to server from http C client Pico W lwIP

I just try for already 3 days to make a http GET request, used a lot of examples, but all of them do not work. The code below, I checked, succesfully connects to WiFi, and resolves dns - obtains ip ...
isagsadvb's user avatar
0 votes
0 answers
83 views

I am trying to print "Hello World" 15 times from my Raspberry Pi Pico to a text file on my windows desktop via serial communication

Here is my code: Main.py (PICO code) import time for i in range(15): print("Hello World") time.sleep(1) Windows Desktop Python Code import serial port = "COM5" ser = ...
HEL's user avatar
  • 1
1 vote
0 answers
244 views

Update software of a Pico remotely

I'm using a raspberry Pi Pico and I'm struggling to find if it's possible to update my script remotely (I cannot use neither SWD or USB). Currently my new firmware (can be .uf2, .bin or .hex file) is ...
Bibibou's user avatar
  • 13
0 votes
1 answer
143 views

Why does this Pico circuit use so many resistors?

I've just started working through the Freenove ultimate starter kit for the Pi Pico, and I'm having trouble understanding why it has so many resistors in this circuit. I'm following the tutorial ...
AngelsJinx's user avatar
0 votes
0 answers
15 views

A Micropyhton abstract robot library for pi-pico based robot kits

I'm looking for a slightly higher level Micropyhon library for pi-pico based robot kits. There seem to be many simple robot kits with similar hardware on the market at reasonable prices, but the ...
NeilenMarais's user avatar
0 votes
0 answers
20 views

COM disconnects and program fails when including code trying to initialize SD card (RP2040 Pi Pico W running Arduino)

I'm having an issue where anytime I run a program such as the SD card read write example (Below) the COM port disconnects. The only changes I have made to the example code is I am using SPI1 instead ...
Rian Noble's user avatar
0 votes
0 answers
60 views

raspberry pi pico temperature reading and output to zabbix

there is a raspberry pi pico that I want to configure as a temperature sensor, and output data to zabbix raspberry pi pico I have, connected to a computer with ubuntu 22.04 via usb, I have a code for ...
Леонид's user avatar
0 votes
0 answers
22 views

Can the PIO perform 888 RGB to 565 RGB?

In my latest RP2040 project I'm using a little ST7789 based LCD screen, who's pixel format is 565 RGB, and I would like to run this screen as fast as possible. It's capable of 60 FPS, which requires ...
Rocketmagnet's user avatar
0 votes
0 answers
35 views

Using Electret Microphones with Raspberry Pi Pico

I am looking to have the ability to store/analyze audio using a Raspberry Pi Pico. I have found that electret microphones are a good option, since it only requires an ADC, which is already built-in to ...
Gabe Morris's user avatar
1 vote
1 answer
396 views

How many UARTs can I add to RP2040 using PIO?

There are a few examples of using the RP2040's PIO capability to add additional UARTs, e.g., the uart_tx example. The RP2040 data sheet describes "two PIO blocks with four state machines each&...
rgov's user avatar
  • 213
0 votes
0 answers
51 views

Raspberry Pi Pico accurate sunrise time

Is there a way to access or calculate sunrise and sunset times according to latitude and longitude with a raspberry pi pico ? I can do it with my raspberry pi 3b+ and astral but astral doesnt seem to ...
Coder's user avatar
  • 11
0 votes
0 answers
51 views

Pi Pico won't mount on Ventura

When I hold down the BOOTSEL button and connect my Pico to my M1 Macbook Air running Ventura, a dialogue box quickly pops up then disappears asking "Allow Accessory to Connect?". It ...
tomh's user avatar
  • 126
0 votes
1 answer
49 views

Mecanum Robot for Pico

I'm trying to build the Keyestudio mecanum 4WD car for pico for a summer camp I run for high schoolers. I have no programming knowledge or background, and neither do the kids. I've been following the ...
Joanna Gannon's user avatar
0 votes
2 answers
492 views

Improving sampling frequency of Raspberry Pi Pico's ADC pin to sample at frequency of 48 KHz

I am trying to use Raspberry Pi pico to sample signal of frequency of around 24 KHz and store the values in an array. From Nyquist criteria, the sampling frequency should be 48 KHz. But I can properly ...
Nimesh's user avatar
  • 1
0 votes
2 answers
122 views

How to program an RP2040 micro controller (NOT Raspberry pi pico) and transplant it into a PCB?

I'm posting this here because after going through several forums this one seemed the most appropriate; I am working on miniaturizing a project (remote control car), I already have the first version ...
Rodolfo BocaneGra's user avatar
0 votes
0 answers
236 views

Raspberry Pi Pico with PN532 reading cards with the use of interrupt

The setup is as follows: Raspberry Pi Pico PN532 connected via SPI with pico. Pin IRQ on the PN532 is connected to GPIO20 on the pico Micro python Micro python PN532 NFC/RFID control library (SPI) ...
thermike's user avatar
0 votes
0 answers
56 views

IR Receiver gives invalid start pulse with screen attached, nothing without screen

I am trying to display the value of an IR signal on a screen using a Pico and an IR sensor, but with the screen attached to the Pico and the output of the sensor on GPIO pin 4, the printed value is an ...
Commander Of The Wind's user avatar
0 votes
1 answer
177 views

SIM800L with Raspberry Pi Pico takes too much time to make http request

I am using a Raspberry Pi Pico with SIM800l and NEO6M to make a GPS tracker. But it takes about 8s (from recording the GPS signal) to make a http request to the the server. I'm using this library as a ...
Lakshyajeet Jalal's user avatar
0 votes
1 answer
304 views

How to receive data longer than 32bytes through PICO UART?

I have wrote a code to process data received in a PICO from Raspi PI. I have a slider which sends number to the PICO(through UART) to set some values. If the slider is dragged slowly or clicked the ...
Paul Jose's user avatar
1 vote
2 answers
336 views

Raspberry Pi Pico -- Read USB Midi Input

I'm new to programming with Raspberry Pi's. I have a Yamaha p45 electric keyboard that outputs MIDI over a USB cable (not the 5-pin midi cable) and I need to read the midi input into my Raspberry Pi ...
deastmon's user avatar
0 votes
0 answers
151 views

OSError: [Errno 5] EIO wit a raspberry pi pico

I am using the Raspberry Pi Pico with this code: #Pico Invaders! # # TODO : Implement alien shots, Shields, Sound from machine import Pin, I2C, ADC, PWM from ssd1306 import SSD1306_I2C import time ...
Hogarth's user avatar
0 votes
1 answer
48 views

Pico Pi giving synthax error on pillow library

I am running a main.py file on the Pico Pi that imports a test file in a SD card that is connected by a module. The test.py file then imports PIL from the same directory as the file. I believe this ...
Maxence Lapatrie's user avatar
0 votes
1 answer
146 views

RGB565 on the Waveshare RP2040 LCD 1.28

I'm trying to use the Waveshare LCD 1.28 module found at https://www.waveshare.com/wiki/RP2040-LCD-1.28 which based upon their demo python code, the module should support RGB565 for color definitions, ...
Matt Brailsford's user avatar
0 votes
1 answer
378 views

How do I connect a 4th analog input to a Raspberry Pi Pico?

I have to connect 4 different analog inputs to the raspberry pi pico. However there are only 3 pins available for usage. Is it possible to use the PWM pins for additional analog inputs? or should i ...
Anamika's user avatar
0 votes
0 answers
57 views

Pico LCD Display

is the screen in the link compatible with Raspberry Pi Pico? https://www.waveshare.com/wiki/2.4inch_LCD_Module I will be happy if you can tell me the circuit diagram and sample code
MEnsar55's user avatar
0 votes
1 answer
706 views

ModuleNotFoundError: No module named 'digitalio' HELP

I have been following a YouTube tutorial on how to setup the Raspberry Pi Pico H as a midi device. While programming, I came accross an error ModuleNotFoundError: No module named 'digitalio'. I'm ...
Pixel's user avatar
  • 1

1
2 3 4 5 6