Hardware Design with the RP2040: Custom PCB Based on the Raspberry Pi Pico | Digi-Key Electronics

DigiKey June 21, 2021
Video Thumbnail
DigiKey Logo

DigiKey

@digikey

About

DigiKey Corporation is an industry leader in the distribution of quality electronic components, including Electromechanical, Interconnect, Optoelectronics, Passives, Power, RF & Wireless, Semiconductors, Sensors, Thermal Products and Test Tools. Whether small quantities for prototype design or large volumes for production, the company is committed to product availability, service and performance. Search, find, buy from a manufacturer authorized distributor. Same-day shipment, next-day delivery on orders entered by 8:00pm Central Time (USA). Access product information, datasheets, application notes, product photos, catalog, industry links can be found at http://www.digikey.com

Video Description

The Raspberry Pi RP2040 is a new microcontroller with a dual-core Arm Cortex-M0+ and 264 kB of internal RAM. One of the most interesting features of the RP2040 is that it can be configured to debug another RP2040. In this video, we walk you through the design process of creating your own PCB around the RP2040. The board shown is a stackable “shoe” that can be used to debug a separate Raspberry Pi Pico. Design files can be found here: https://github.com/ShawnHymel/rpi-pico-debugger-shoe. They can be opened in KiCad (tested on v5.1). The Raspberry Pi RP2040 Hardware Design guide is a great place to start to learn about creating a custom PCB for the RP2040: https://datasheets.raspberrypi.org/rp2040/hardware-design-with-rp2040.pdf. Note that the video is not a complete walkthrough of how to design a board. Rather, it is a collection of lessons learned and design decisions that went into creating a custom PCB for the RP2040 along with the various mistakes to get to the end product. The schematic is similar to the bare minimum schematic found in the Hardware Design guide. An LED was added to give status codes. An external flash memory chip is necessary for the RP2040 to run code from a nonvolatile storage location. However, we found that the Winbond W25Q series flash chips were necessary for proper function. Using a non-Winbond part resulted in code not executing. Note that non-Winbond flash memory chips may be used, but you will likely need to modify header files in a custom board definition package for your particular design. The board has a similar shape to the Raspberry Pi Pico so that a Pico could stack on top of it. The PCB fabrication service used (DKRed) requires a minimum of 1 inch on either dimension. As a result, the board outline was made slightly wider than the Pico’s so that it could be fabricated. Soldering the RP2040 (QFN package) proved quite difficult, and the soldering job required rework. The QFN could be reseated or removed altogether using flux and a hot air station. Additionally, solder bridges could be fixed using flux and a small, clean soldering iron tip. In the end, the board was able to run the picoprobe firmware and could provide step-through debugging of a Raspberry Pi Pico. Chapter Timestamps: 0:00 - About the RP2040 Hardware 9:57 - Adding Part Libraries to KiCad 12:10 - Schematic 22:18 - PCB Layout 33:11 - Generate Gerbers 38:05 - Reflow Soldering 43:54 - Inspection and Rework 49:02 - Testing Product Links: Raspberry Pi RP2040 - https://www.digikey.com/en/products/detail/SC0908(7)/2648-SC0908(7)CT-ND/14306013?itemSeq=367989738 Related Videos: Intro to KiCad Part 1 - https://www.youtube.com/watch?v=vaCVh2SAZY4 How to Make a Raspberry Pi CM4 Carrier Board Part 1 - https://www.youtube.com/watch?v=ypcPJC_umPQ Related Project Links: Creating a Raspberry Pi CM4 Carrier Board - https://www.digikey.com/en/maker/projects/creating-a-raspberry-pi-compute-module-4-cm4-carrier-board-in-kicad/7812da347e5e409aa28d59ea2aaea490 Related Articles: How to Route Differential Pairs in KiCad - https://www.digikey.com/en/maker/projects/how-to-route-differential-pairs-in-kicad-for-usb/45b99011f5d34879ae1831dce1f13e93 Hardware Design with the Raspberry Pi RP2040 Part 1: Schematic - https://www.digikey.com/en/maker/projects/hardware-design-with-the-rp2040-part-1-schematic/c4326f0fd813413698d617cf625125ee Hardware Design with the Raspberry Pi RP2040 Part 2: PCB Layout - https://www.digikey.com/en/maker/projects/hardware-design-with-the-rp2040-part-2-pcb-layout/850cdf59974a4de3b749f94aa318c1f5 Hardware Design with the Raspberry Pi RP2040 Part 3: Soldering - https://www.digikey.com/en/maker/projects/hardware-design-with-the-rp2040-part-3-soldering-and-testing/5cc550e86cb24327aeb451f879e18e8d Learn more: Maker.io - https://www.digikey.com/en/maker Digi-Key’s Blog – TheCircuit https://www.digikey.com/en/blog Connect with Digi-Key on Facebook https://www.facebook.com/digikey.electronics/ And follow us on Twitter https://twitter.com/digikey

Essential PCB Design Tools

AI-recommended products based on this video

Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
Microcontroller Board for Pico RP2040, Dual Core ARM Cortex M0+Processor Flexible Microcontroller Module (Transparent White)

Microcontroller Board for Pico RP2040, Dual Core ARM Cortex M0+Processor Flexible Microcontroller Module (Transparent White)

(0)
$9.82
FREE delivery Thu, Jun 19 on your first order
Loading...
Microcontroller Board for Pico RP2040, Dual Core ARM Cortex M0+Processor Flexible Microcontroller Module (Black)

Microcontroller Board for Pico RP2040, Dual Core ARM Cortex M0+Processor Flexible Microcontroller Module (Black)

(4)
$25.38
FREE delivery Thu, Jun 19 on your first order
Loading...
UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

UGREEN USB to USB C Adapter & USB C to USB Adapter Combo 4-Pack, 10Gbps Type-C Converter, Car Charger Compatible with MacBook Pro, iPad Mac mini, iPhone 17/16, Galaxy, PC/Laptop, Hard Drive Enclosure

(86)
$9.74
Prime
Loading...
Syntech USB C to USB Adapter Pack of 2 USB C Male to USB3 Female Adapter Compatible with MacBook Pro 2021 iMac iPad Mini 6/Pro MacBook Air 2020 and Other Type C or Thunderbolt 4/3 Devices Space Grey

Syntech USB C to USB Adapter Pack of 2 USB C Male to USB3 Female Adapter Compatible with MacBook Pro 2021 iMac iPad Mini 6/Pro MacBook Air 2020 and Other Type C or Thunderbolt 4/3 Devices Space Grey

(144,783)
$10.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
Elebase USB to USB C Adapter 4 Pack,USBC Female to A Male Car Charger,Type C Converter for iPhone 16 Pro Max,15 14 13 12 11 Plus,Apple Watch iWatch 10 9 8,Airpods,iPad Air Mini 6 7,Samsung Galaxy S25

Elebase USB to USB C Adapter 4 Pack,USBC Female to A Male Car Charger,Type C Converter for iPhone 16 Pro Max,15 14 13 12 11 Plus,Apple Watch iWatch 10 9 8,Airpods,iPad Air Mini 6 7,Samsung Galaxy S25

(54,858)
$12.99
FREE delivery Sat, Jun 14 on your first order
1K+ bought in past month
Loading...
TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

TP-Link USB to Ethernet Adapter (UE306) - Foldable USB 3.0 to Gigabit Ethernet LAN Laptop Network Adapter, Supports Nintendo Switch, Windows, Linux, Apple MacBook OS 10.11- OS 12, Surface

(11,241)
$13.97$9.43
FREE delivery Sun, Jun 22 on your first order
500+ bought in past month
Loading...
Liquid Solder Flux Dropper, Liquid Soldering Flux, No Clean Liquid Flux, Electrical Liquid Rosin Flux Solder, Liquid Flux Soldering Squeeze Bottle (30 mL/1.05Oz.)

Liquid Solder Flux Dropper, Liquid Soldering Flux, No Clean Liquid Flux, Electrical Liquid Rosin Flux Solder, Liquid Flux Soldering Squeeze Bottle (30 mL/1.05Oz.)

(6)
$11.99
FREE delivery Sun, Mar 22 on your first order