Four-layer STM32 board with USB
Design a four-layer board with an STM32 and a USB connector, route the USB lines as an impedance-controlled differential pair, and make it enumerate on a laptop.
What this proves to recruiters
- You can design multi-layer boards.
- You understand impedance and differential pairs.
- You can bring up a USB device.
Skills you will use
- Four-layer stack-up
- Differential pairs
- USB 2.0
- Signal integrity
Parts list
You can buy the listed parts online here:
| Part | Qty | Approx. price | Shop |
|---|---|---|---|
| PCB order: 5 boards, 4 layers, with shipping | 1 | ₹2,500 | |
| SMD parts for the board (MCU, regulator, passives, USB connector) | 1 | ₹700 | |
| Soldering iron kit with stand, solder and wick | 1 | ₹700 | Find on Amazon |
| ST-Link V2 programmer | 1 | ₹350 | Find on Amazon |
| Total, about | ₹4,250 | ||
Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.
As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.
Free software
- KiCad
- Your PCB maker’s impedance calculator
- STM32CubeIDE
Steps
- Choose a stack-up: signals, ground, power, signals. Keep a solid ground under the USB pair.
- Use the maker’s calculator to set trace width and gap for 90 Ω differential impedance.
- Route D+ and D− together with matched lengths and no vias if possible.
- Place decoupling capacitors on every STM32 power pin and add a 3.3 V regulator.
- Order the boards, assemble them (hot air or a stencil helps) and program with ST-Link.
- Run a USB CDC example and check the board appears as a serial port on your laptop.
Make it stand out
- Make it a USB keyboard or MIDI device.
- Add ESD protection on the USB lines.
Put it on your resume
Designed a four-layer STM32 board with 90 Ω differential USB routing; assembled and brought up USB CDC enumeration.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 4, “High-speed design and bring-up”, of the Hardware and PCB design roadmap. See also how freshers get into PCB layout engineer jobs.