> ## Documentation Index
> Fetch the complete documentation index at: https://docs.buildwithtrace.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Your First PCB

> A step-by-step guide to designing a complete PCB with Trace.

In this guide, we'll build a **USB-C powered LED indicator board** with 3 LEDs, a voltage regulator, and current-limiting resistors.

## What We're Building

* **Power**: USB-C input (5V) with AMS1117-3.3 regulator
* **LEDs**: 3x 0805 LEDs (Red, Green, Blue)
* **Resistors**: 3x 100Ω current-limiting resistors
* **Board**: 30mm x 20mm, 2-layer PCB

## Step 1: Create a New Project

Open Trace and click **New Project**. Name it "LED-Indicator" and choose a save location.

## Step 2: Describe Your Circuit

Open the chat panel (`Ctrl+I`) and describe what you want:

```
Design a USB-C powered LED indicator board with:
- USB-C connector for 5V power input
- AMS1117-3.3 voltage regulator (5V to 3.3V)
- 3 LEDs (red, green, blue) in 0805 package
- 100 ohm current limiting resistors for each LED
- Decoupling capacitors for the regulator
```

## Step 3: Review the Plan

Trace presents a component list and circuit plan. Review the selected parts, values, and connections. Approve to proceed or request changes.

## Step 4: Generate Schematic

Trace generates the schematic with all components wired correctly. Review in the schematic editor and make any manual adjustments.

## Step 5: Set Board Parameters

Configure your board:

* **Size**: 30mm x 20mm
* **Layers**: 2 (Front and Back copper)
* **Design rules**: 0.2mm min trace, 0.2mm min clearance

## Step 6: Place Components

Switch to the PCB editor (`F8` to update from schematic). Arrange components logically:

* USB-C connector on one edge
* Regulator near the connector
* LEDs in a row on the opposite side

## Step 7: Route Traces

Use the autorouter or route manually:

* Power traces: use wider traces (0.4mm+)
* Signal traces: standard width (0.2mm)
* Add a ground pour on the back layer

## Step 8: Run DRC

Run **Inspect → Design Rules Checker** to verify everything passes. Fix any violations before exporting.

## Step 9: Export for Manufacturing

Export your design:

* **Gerber files** — For PCB fabrication
* **Drill files** — For hole drilling
* **BOM** — For component ordering

See [Exporting Designs](/guides/exporting) for detailed export instructions.
