Questions tagged [pi-pico]

Questions regarding the Raspberry Pi Pico.

Raspberry Pi Pico is a low-cost, high-performance microcontroller board with flexible digital interfaces based on the RP2040 microcontroller chip designed by Raspberry Pi.

Dual-core Arm Cortex M0+ processor 264kB of SRAM, and 2MB of on-board flash memory USB 1.1 26 × multi-function GPIO pins 2 × SPI, 2 × I2C, 2 × UART, 3 × 12-bit ADC, 16 × controllable PWM channels Accurate clock and timer on-chip Temperature sensor Accelerated floating-point libraries on-chip 8 × Programmable I/O (PIO) state machines for custom peripheral support

307 questions
12
votes
2 answers

How to get 5V power output from Raspberry pi Pico

After going through the Raspberry pi Pico datasheet it has only 3.3V power output. I want to power some devices that require 5V from the Pico. How can I get 5V output from the Raspberry Pico?
Nyagaka Enock
  • 221
  • 1
  • 2
  • 4
10
votes
2 answers

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 allows access to a simulator: you write your C code for a…
sdbbs
  • 237
  • 3
  • 8
4
votes
1 answer

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 myProject That empty project builds fine: cd…
Chris
  • 181
  • 5
3
votes
2 answers

Raspberry Pi Debug Probe fails with `Error: Failed to connect multidrop rp2040.dap0`

I am trying to debug a Raspberry Pi Pico with the debug probe and am following the Raspberry Pi Debug Probe tutorial. When I try and upload my first program to the pico I get the following error. $ sudo openocd -f interface/cmsis-dap.cfg -f…
Edwin Shepherd
  • 181
  • 2
  • 9
3
votes
1 answer

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 on a GPIO port (reference:…
Vivek
  • 131
  • 3
3
votes
3 answers

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 low. and RUN is the RP2040 enable pin, and has…
Vadim
  • 565
  • 3
  • 12
3
votes
2 answers

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 the Picos, the one which coordinates with the…
Davide
  • 181
  • 2
  • 6
2
votes
5 answers

Raspberry Pi Pico W - how to connect an external antenna

I am just trying to find info about connecting an external antenna to the board. Is it possible to use some of the pins to solder to the coaxial cable and connect to the external antenna? I want to use an antenna: 3db wifi antenna If anyone can…
2
votes
1 answer

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 : RP2040 Flash Bank Command Info : Listening on port…
APA
  • 21
  • 2
2
votes
1 answer

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…
options666
  • 21
  • 2
2
votes
2 answers

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 supporting more than 4 motors? If no are there any…
2
votes
1 answer

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 #include "pico/stdlib.h" volatile int chars_rxed = 0; int main() { stdio_init_all(); while (true) { printf("%d: chrx…
sdbbs
  • 237
  • 3
  • 8
2
votes
0 answers

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 block after having written 269312 bytes to…
Grammin
  • 121
  • 2
2
votes
1 answer

Is it safe to recharge 5v power bank from Raspberry Pi Pico VBUS?

My project uses a small 5v power bank to power my RPP. Rather than adding a USB socket for recharging the power bank, I would like to use the existing one on the Pico, connecting the VBUS pin to the charging input of the power bank. My understanding…
Ozpico
  • 21
  • 3
2
votes
5 answers

Installing an executable or MicroPython script on a Pico to run without a computer attached

I've searched and not found an answer.. I'm proficient in C and Micro-python and developing and running programs is easy enough. However I can't figure out how I install a program I've written to the Pico so that when I supply it purely power it…
Simon Banks
  • 529
  • 4
  • 14
1
2 3 4