Design an RP2040 board with KiCad: Creating Raspberry Pi Pico-compatible PCBs
By Jo Hinchliffe and Ben Everard
()
About this ebook
Design and make your own microcontroller board using the same chip that powers the popular Raspberry Pi Pico
KiCad is an amazing piece of free and open-source software that allows anyone, with some time and effort, to make high-quality PCB designs. Couple this amazing software with numerous PCB fabrication companies and even PCBA services (companies that will make and assemble your PCB designs) and there's never been a better time to get into this aspect of making.
This book provides a gentle introduction to PCB design using the RP2040 microcontroller chip (the same chip that's at the heart of the Raspberry Pi Pico). You'll learn how to create a schematic for a microcontroller board using the RP2040, from assigning schematic symbols to creating a footprint for individual components. You'll quickly move on to laying out the PCB design and preparing it for manufacture!
That's right--after your board is designed, this book will show you how to send it off to be manufactured and assembled. You'll find out about the various materials (or substrates) you can choose for your board, and learn how to pick the right manufacturer. Once you have your board in hand, you'll also learn what you can do (and make!) with it, and there will be plenty of ideas for expansions, such as motor drivers.
Jo Hinchliffe
Jo Hinchliffe (AKA Concretedog) is a constant tinkerer and is passionate about all things DIY space. He loves designing and scratch-building both model and high-power rockets, and releases the designs and components as open-source. He also has a shed full of lathes and milling machines and CNC kit!
Related to Design an RP2040 board with KiCad
Related ebooks
Get started with MicroPython on Raspberry Pi Pico: The Official Raspberry Pi Pico Guide Rating: 0 out of 5 stars0 ratingsSolderless Breadboard Explorations: Unveiling the Wonders of Electronic Prototyping Rating: 0 out of 5 stars0 ratingsThe Official Raspberry Pi Handbook 2023: Astounding projects with Raspberry Pi computers Rating: 0 out of 5 stars0 ratingsRaspberry Pi Sensors Rating: 0 out of 5 stars0 ratingsThe Official Raspberry Pi Beginner's Guide: How to use your new computer Rating: 4 out of 5 stars4/5Arduino Solutions Handbook: Design interesting DIY projects using Arduino Uno, C and C++ (English Edition) Rating: 0 out of 5 stars0 ratingsRaspberry Pi Super Cluster Rating: 0 out of 5 stars0 ratingsThe Official Raspberry Pi Projects Book Volume 2: 200 Pages of Coding and Creating Rating: 0 out of 5 stars0 ratingsPython Programming for Arduino Rating: 5 out of 5 stars5/5Raspberry Pi LED Blueprints: Design, build, and test LED-based projects using the Raspberry Pi Rating: 0 out of 5 stars0 ratingsRaspberry Pi: 40 Outstanding Raspberry Pi Tips and Tricks for Absolute Beginners Rating: 0 out of 5 stars0 ratingsArduino Projects with Tinkercad: Designing and programming Arduino-based electronics projects using Tinkercad Rating: 0 out of 5 stars0 ratingsThe Official Raspberry Pi Projects Book Volume 5: 200 Pages of Ideas Rating: 0 out of 5 stars0 ratingsRaspberry Pi Cookbook for Python Programmers Rating: 0 out of 5 stars0 ratingsArduino Essentials Rating: 5 out of 5 stars5/5Arduino Home Automation Projects Rating: 3 out of 5 stars3/5Raspberry Pi Mechatronics Projects HOTSHOT Rating: 5 out of 5 stars5/5Raspberry Pi Home Automation with Arduino - Second Edition Rating: 0 out of 5 stars0 ratingsRaspberry Pi Essentials Rating: 0 out of 5 stars0 ratingsRaspberry Pi for Python Programmers Cookbook - Second Edition Rating: 0 out of 5 stars0 ratingsCutting-Edge Computing with Raspberry Pi Rating: 5 out of 5 stars5/5Arduino: The ultimate guide to Arduino, including projects, programming tips & tricks, and much more! Rating: 0 out of 5 stars0 ratingsRaspberry Pi Insider Guide Rating: 0 out of 5 stars0 ratingsArduino For Dummies Rating: 3 out of 5 stars3/5Taking Tinkercad to the Next Level: Enhance your ability to design, model, and 3D print with one of the most intuitive CAD programs Rating: 0 out of 5 stars0 ratingsC Programming for Arduino Rating: 4 out of 5 stars4/5Microsoft .NET Gadgeteer: Electronics Projects for Hobbyists and Inventors Rating: 0 out of 5 stars0 ratingsMake Your Own PCBs with EAGLE: From Schematic Designs to Finished Boards Rating: 5 out of 5 stars5/5
Computers For You
How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5The ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 4 out of 5 stars4/5Technical Writing For Dummies Rating: 0 out of 5 stars0 ratingsSlenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5Tor and the Dark Art of Anonymity Rating: 5 out of 5 stars5/5Elon Musk Rating: 4 out of 5 stars4/5The Self-Taught Computer Scientist: The Beginner's Guide to Data Structures & Algorithms Rating: 0 out of 5 stars0 ratingsCompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsCompTIA Security+ Get Certified Get Ahead: SY0-701 Study Guide Rating: 5 out of 5 stars5/5Standard Deviations: Flawed Assumptions, Tortured Data, and Other Ways to Lie with Statistics Rating: 4 out of 5 stars4/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Alan Turing: The Enigma: The Book That Inspired the Film The Imitation Game - Updated Edition Rating: 4 out of 5 stars4/5An Ultimate Guide to Kali Linux for Beginners Rating: 3 out of 5 stars3/5Data Analytics for Beginners: Introduction to Data Analytics Rating: 4 out of 5 stars4/5Why Machines Learn: The Elegant Math Behind Modern AI Rating: 3 out of 5 stars3/5The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution Rating: 4 out of 5 stars4/5Computer Science I Essentials Rating: 5 out of 5 stars5/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsQuantum Computing For Dummies Rating: 3 out of 5 stars3/5
Reviews for Design an RP2040 board with KiCad
0 ratings0 reviews
Book preview
Design an RP2040 board with KiCad - Jo Hinchliffe
Design an RP2040 board
with KiCad, 1st Edition
Design an RP2040 board with KiCad
by Jo Hinchliffe and Ben Everard
ISBN: 978-1-916868-13-7
Copyright © 2024 Jo Hinchliffe and Ben Everard
Printed in the United Kingdom
Published by Raspberry Pi Ltd., 194 Science Park, Cambridge, CB4 0AB
Editors: Ben Everard, Brian Jepson
Interior Designer: Sara Parodi
Production: Nellie McKesson
Photographer: Brian O’Halloran
Illustrator: Sam Alder
Graphics Editor: Natalie Turner
Publishing Director: Brian Jepson
Head of Design: Jack Willis
CEO: Eben Upton
September 2024: First Edition
The publisher, and contributors accept no responsibility in respect of any omissions or errors relating to goods, products or services referred to or advertised in this book. Except where otherwise noted, the content of this book is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)
Welcome
KiCad is an amazing piece of free and open-source software that allows anyone, with some time and effort, to make high-quality PCB designs. Couple this amazing software with numerous PCB fabrication companies and even PCBA services — companies that will make and assemble your PCB designs — and there’s never been a better time to get into this aspect of making.
This book provides a gentle introduction to PCB design using the RP2040 microcontroller chip (the same chip that's at the heart of Raspberry Pi Pico). You'll learn the basics of creating schematics and PCB designs in KiCad and learn how to work with artifacts such as component footprints that you create yourself (or get from another source). You’ll find out how to get a PCB design manufactured — and populated with surface-mount components.
You’ll also learn how to make your PCBs stand out from more generic boards, whether by adding your own artwork, using the PCB as a structural component, or augmenting your design with 3D-printed parts. You’ll also find out about the difference PCB materials available, including flexible PCBs, and learn tips and tricks for working with fabricators to make sure your boards come out as intended.
You can find this book’s example code, errata, and other resources in its GitHub repository at hsmag.cc/kicad_book_files. If you’ve found what you believe is a mistake or error in the book, please let us know by opening an issue in that GitHub repository.
About the authors
Jo Hinchliffe (AKA Concretedog) is a constant tinkerer and is passionate about all things DIY space. He loves designing and scratch-building both model and high-power rockets and releases the designs and components as open source. He also has a shed full of lathes and milling machines and CNC kit!
Ben Everard enjoys working at the intersection of art and technology. He has a particular interest in light and his primary reason for making PCBs is to find more ways of adding LEDs to things. He lives in a house in Bristol with his wife, two daughters and too many animals.
Colophon
Raspberry Pi is an affordable way to do something useful, or to do something fun.
Democratising technology — providing access to tools — has been our motivation since the Raspberry Pi project began. By driving down the cost of general-purpose computing to below $5, we’ve opened up the ability for anybody to use computers in projects that used to require prohibitive amounts of capital. Today, with barriers to entry being removed, we see Raspberry Pi computers being used everywhere from interactive museum exhibits and schools to national postal sorting offices and government call centres. Kitchen table businesses all over the world have been able to scale and find success in a way that just wasn’t possible in a world where integrating technology meant spending large sums on laptops and PCs.
Raspberry Pi removes the high entry cost to computing for people across all demographics: while children can benefit from a computing education that previously wasn’t open to them, many adults have also historically been priced out of using computers for enterprise, entertainment, and creativity.
Raspberry Pi eliminates those barriers.
Raspberry Pi Press
store.rpipress.cc
Raspberry Pi Press is your essential bookshelf for computing, gaming, and hands-on making. We are the publishing imprint of Raspberry Pi Ltd. From building a PC to building a cabinet, discover your passion, learn new skills, and make awesome stuff with our extensive range of books and magazines.
The MagPi
magpi.raspberrypi.com
The MagPi is the official Raspberry Pi magazine. Written for the Raspberry Pi community, it is packed with Pi-themed projects, computing and electronics tutorials, how-to guides, and the latest community news and events.
Chapter 1
Working with schematics
Before you design the PCB, you must design the circuit
PCB design has a steep learning curve. With that in mind, we want to start this book with a hack. In the first two chapters, you’ll create a PCB design to the point of getting it manufactured. To ease up on the learning curve, you will cut some corners. Don’t worry, we’ll explain what corner were cut, and you’ll learn the correct approach in subsequent chapters, once you have the basics down.
Figure 1-1: The board you’ll start to design in this chapter
Start by downloading and installing KiCad from kicad.org — at the time of writing, the stable version was 8. KiCad is available across a wide range of operating systems – Windows, macOS, and lots of Linux distributions.
With it installed, click on the main blue Ki KiCad icon to open the main application. You should see a screen that looks like Figure 1-2. KiCad isn’t really a single application, it’s more like a suite of applications that work together. While you can jump into any application from here, the most common workflow for KiCad is to first work in the Schematic Editor and after creating a schematic, move to the PCB Editor to lay out the PCB physically.
You’ll create an add-on board for the Raspberry Pi Pico. It’s going to be a prototyping or ‘kludge’ board with not too many features on it. It’s going to have all the Pico pins broken out to through-hole pads, it will have a power-indicating LED, and it will have a reset button. After this, any spare area on the board will have a grid of simple through-hole pads (sometimes called a prototyping area) on it to allow you to connect experiments to the board. It’s a bit rudimentary but will help you learn some KiCad basics.
Figure 1-2: The opening page of KiCad with the different applications that make up the KiCad suite listed
Your first action should be to set up a new project. Click File > New Project to create a new project. It’s worth putting projects into their own folder as each KiCad project generates around five project files and a folder in which it automatically generates some project backup files.
Once the new project is created, open the Schematic Editor application by clicking the top icon. The first time you run the Schematic Editor, KiCad will ask you to configure your global symbol library table. Choose Copy default global symbol library table (recommended) and click OK.
Quick Tip
If you hover over any tool icon in KiCad, you get a description of the tool. We’ll use these tooltips to describe tool icons throughout this book.
You’ll see a blank page ready for you to draw a schematic (Figure 1-3). In the lower right-hand corner, you will see a small collection of text boxes which include various fields for the name of the sheet, the revision number of the schematic, and more. If you click somewhere on this section and then press the E key, the Page Settings dialogue will appear. You can edit this to add any text details or comments you want to add to this section, but you can also change the page dimensions (it defaults to A4), the orientation, and more. Experiment inserting text into the Page Settings window to see where the text appears on the schematic.
Figure 1-3: A blank Schematic sheet with text boxes for various schematic labelling and
version numbering
With your page set up, you can now begin to add schematic symbols to the schematic. The most correct way to make a Pico add-on board would be to place a Pico in the schematic and connect everything to it, but you are going to use a workaround to do this in a much simpler way. The main idea of the target add-on board is for you to be able to solder in rows of header sockets so that you can connect it onto the pins of a Pico. In turn, you also still want to be able to solder to those pins, so you need each side row of pins to be broken out to another collection of pads.
To do this add two 20-pin connectors, one on each side of the schematic. To add the first one, click the Add a Symbol icon — the third icon down on the right-hand column. The first time you click this