Questions tagged [rp2040]
33 questions
6
votes
2 answers
Programming RP2040 with ST-LINK
Disclaimer: This is my first time using OpenOCD and programming ARM microcontroller, so I really don’t know what I am doing.
I’m trying to program Raspberry Pi Pico (RP2040) board using ST-LINK/V2 (mini) from Waveshare and OpenOCD. This programmer…

urhen
- 411
- 4
- 8
5
votes
0 answers
Custom RP2040 PCB Not Detected by PC
I designed a custom RP2040 to control some 24V LED strips. The official hardware design guide from the Raspberry Pi Foundation is what I followed for my design. It was then sent out to JLCPCB for the fab and I used their stencil to solder the SMD…

Agriculex
- 475
- 4
- 12
4
votes
2 answers
How is this peak DNL error in RP2040 ADC realised in actual use?
The errata of RP2040 datasheet mentions a peak DNL error in some values. I'm a newbie on ADCs but I always thought the DNL error is usually the same all over the range. Here itsays that it "peaks" in some values with a large error:
There's another…

Tirdad Sadri Nejad
- 1,735
- 1
- 9
- 17
3
votes
2 answers
AC current on relay causes Pi Pico to reboot continuously
I'm working on a project that involves a Pi Pico driving two 4-channel relay modules. With no power supplied to the modules, everything works great - they open and close as designed for my application. One of the two modules is driving four arrays…

Psyferre
- 31
- 3
2
votes
1 answer
Connect two peripherals on the same SPI bus with RP2040
I'm using a RP2040 for a personal project.
I'm already using the SPI0 with GPIO 3 to 6, and SPI1 with GPIO 11 to 14. Is it possible to use the SPI0 with GPIO 16 to 19 at the same time with another device?
I'm asking this question because I feel like…

Bouboubi
- 144
- 9
2
votes
2 answers
Custom RP2040 board detection and uploading issues
I have designed and tested a custom RP2040 board for simple GPIO ON/OFF functioning and everything worked just fine.
Now, we have ordered 30 more of the same circuits (with same design and components).
From the stack of 30, we are facing issues with…

Samiksha
- 61
- 5
2
votes
1 answer
Problem working with MIDI on hardware serial port on Raspberry Pi Pico 2040
I'm trying to make to make a simple MIDI communication with a Raspberry Pi Pico (2040) microcontroller (Arduino core/PlatformIO).
I've successfully made it work using USB MIDI with this code (using tinyUSB):
#include
#include…

risk
- 213
- 2
- 7
2
votes
2 answers
Requesting help in identifying a potential short-circuit on a microcontroller board
Recently I've been developing a board, which for me was the most complex I've ever built.
Almost all components are SMT, which was new to me. And I'm running into some point of trouble. All relevant board files are available on GitHub.
A schematic…

justSem
- 43
- 5
1
vote
1 answer
External voltage reference MCU RP2040 - Use of series reference?
I designed a board that uses the RP2040 Pico for its ADC and I/O.
To improve the ADC of RP2040 I wanted to use an external reference. In the past, for other projects, I used as external reference a LT1019 (a shunt or series reference) and it worked…

Kostr
- 73
- 4
1
vote
2 answers
Pico / FT232H FIFO bad data
So. I've been trying for several days to get parallel data transfer from a Raspberry Pico through a FT232H to a host computer. I'd like ~25MB/s, which is why I'm trying this route in the first place.
I have a Raspberry Pico W, and two FT232H…

Erhannis
- 167
- 7
1
vote
0 answers
Can the RP2040 be powered by two AAA batteries alone?
I want to power the RP2040 using two AAA batteries. In the official documentation it says, if I don't care too much about USB and a good ADC, I can go as low as 1.8 V to power the chip. I don't want to use USB, I just want to control a L9110…

Thez
- 46
- 3
1
vote
1 answer
Micropython problems on custom board using RP2040
I am designing a custom board using the RP2040 and have used the PiPico design as a reference design. I have encountered two problems with micropython:
First, an anomaly - I noticed when mounting as a USB drive in bootloader mode to copy the…

Scott
- 171
- 4
1
vote
0 answers
How to provide frequency source for RP2040?
I have a few basic questions about providing a "stable external frequency source" as recommended by "Hardware design with RP2040".
I would just copy the schematic from section 2.3, but JLCPCB does not have the ABLS-12.000MHZ-B4-T crystal in stock,…

cg_f
- 11
- 2
1
vote
2 answers
How can I pass serial data through a Raspberry Pi Pico from USB to GPIO pins to be read in another Pi Pico?
I read that the Pi Pico/RP2040 has 2 UARTs.
If I want to send data from a computer to a Pi Pico, how should I create a UART that uses USB? Micropython expects pin numbers to create a UART. If I use one UART to receive from the PC and one to transmit…

Suresh Subedi
- 121
- 1
- 6
1
vote
5 answers
How to design configurable optocoupled I/O
I am designing an I/O board based on the RP2040. One of the design requirements states that I/O terminals must be isolated hence I'm going for optocoupled I/O using something like 6N137S1 or similar.
Now, the RP2040 provides 30 multifunction…

Miki
- 121
- 5