Overview
Printed Circuit Board (PCB) design tools are used in WP2 to create electrical schematics and design custom circuit boards for the mecanum robot. This course recommends EasyEDA (web-based, beginner-friendly, free) with Cadence OrCAD as an advanced alternative for students with prior PCB design experience.EasyEDA
Cadence OrCAD
EasyEDA (Recommended)
Getting Started
Create Account
Access EasyEDA Editor
Create New Project
mecanum_robot_pcbClick SaveInterface Overview
- Canvas (center): Schematic or PCB layout workspace
- Wiring Toolbar (left): Components, wires, labels
- Libraries Panel (right): Search and place components
- Bottom Tabs: Switch between Schematic, PCB, and Simulation views
- Layers Panel: Manage copper layers, silkscreen, and soldermask
Creating a Schematic
Workflow Overview
Place Components
- Click Libraries icon (right panel)
- Search for component (e.g., “ESP32”, “voltage regulator”)
- Click component → Place → Click on canvas to position
- ESP32-WROOM-32 DevKit
- LM2596 buck converter (12V → 5V)
- Fuses (10A for motor power)
- Terminal blocks (battery input, motor output)
- Capacitors (100nF, 10µF for decoupling)
Draw Connections
Add Power Rails
- VCC / +12V: Battery positive
- +5V: Buck converter output
- +3.3V: ESP32 regulator output
- GND: Ground (common reference)
Annotate Components
- Resistors: “10kΩ”
- Capacitors: “100nF”
- ICs: Part number (e.g., “LM2596”)
Electrical Rules Check (ERC)
- No unconnected pins
- No power rail conflicts
- Correct component connections
Example: Power Distribution Circuit
Designing a PCB (Optional)
If you choose to design a PCB:Convert Schematic to PCB
Arrange Components
- Large components (connectors) near board edges
- Group related circuits (power, ESP32, sensors)
- Keep signal paths short
Route Traces
- Power traces (12V, 5V): 1.5mm+ (high current)
- Signal traces (GPIO, I2C): 0.3-0.5mm
- Ground pour: Flood fill with copper
Add Ground Plane
Design Rule Check (DRC)
- Trace width and spacing
- Clearance to board edges
- No overlapping components
Order PCB (via JLCPCB)
- 5× PCBs: ~$2 USD + shipping
- Lead time: 2-5 days production + shipping
EasyEDA Features
Component Libraries
EasyEDA has extensive built-in libraries:| Category | Search Examples |
|---|---|
| Microcontrollers | ESP32, STM32, Arduino Nano |
| Power Management | LM2596, AMS1117, L7805 |
| Sensors | MPU6050, BMP280, DHT22 |
| Connectors | Terminal block, JST-XH, USB-C |
| Passives | Resistors, capacitors, LEDs |
- Search LCSC (EasyEDA’s component database)
- Import from SnapEDA or SymbolStock
- Create custom symbol/footprint (advanced)
Simulation (SPICE)
EasyEDA supports basic circuit simulation:Add Simulation Components
Configure Simulation
- DC Sweep: Test voltage/current ranges
- Transient: Time-domain analysis
- AC Analysis: Frequency response
Run and View Results
Exporting Schematics
Cadence OrCAD (Advanced)
Installation (RMIT Students)
Access RMIT Software Portal
Alternative: Free Version
Install OrCAD
OrCAD vs. EasyEDA
| Feature | EasyEDA | Cadence OrCAD |
|---|---|---|
| Cost | Free | ~$1,500 (or RMIT license) |
| Platform | Web (cross-platform) | Windows only |
| Learning Curve | Easy (1-2 hours) | Steep (weeks) |
| Simulation | Basic SPICE | Advanced PSpice |
| PCB Layers | Unlimited | Lite: 2, Full: Unlimited |
| Libraries | Good (LCSC/JLCPCB) | Excellent (industry parts) |
| Industry Use | Hobbyist, startups | Aerospace, automotive |
| Collaboration | Easy (cloud) | File-based (harder) |
- Complex multi-layer PCBs (6+ layers)
- Advanced signal integrity analysis
- Professional projects requiring industry tools
- Not recommended for this course (overkill for simple power boards)
Wiring Diagrams (Alternative to PCB)
Most students create wiring diagrams instead of custom PCBs, using:- Perfboard / Protoboard: Solder connections manually
- Breadboard: Temporary prototyping (not recommended for final robot)
- Terminal blocks: Connect wires to power rails
Creating Wiring Diagrams in EasyEDA
Draw Schematic
Add Wire Colors
- Red: +12V, +5V, +3.3V (power)
- Black: GND (ground)
- Yellow/Green: Signal wires (GPIO, I2C, serial)
Annotate Connections
- Pin numbers (e.g., “ESP32 GPIO4”)
- Wire gauge (e.g., “16 AWG for 12V”)
- Terminal block numbers
Export Diagram
Example Wiring Diagram
Best Practices
Schematic Clarity
- Use net labels for long connections
- Group related components (power, sensors, motors)
- Add notes explaining critical connections
- Use color coding (red=power, black=ground)
Power Design
- Add fuses on power rails (prevent battery fires!)
- Use appropriate wire gauge (see power.mdx)
- Include decoupling capacitors (100nF near ICs)
- Keep power traces short and thick
Documentation
- Export PDF of final schematic
- Include in WP2 report
- Add BOM (Bill of Materials) table
- Document any deviations from original design
Safety First
- Never bypass fuses (fire hazard!)
- Verify polarity before connecting battery
- Use heat shrink tubing on soldered connections
- Test voltage rails with multimeter before powering electronics
Common Schematic Symbols
Troubleshooting
Can't find component in EasyEDA library
Can't find component in EasyEDA library
- Search LCSC Parts Library (integrated with EasyEDA)
- Try alternative part numbers (e.g., “LM2596” → “LM2596S”)
- Search SnapEDA or PCB Libraries for import
- Create custom symbol (advanced):
- Library → New Part → Create Symbol
Schematic ERC errors: 'Unconnected pins'
Schematic ERC errors: 'Unconnected pins'
- Check all component pins have wires or power symbols
- Use No Connect (X) flag for unused pins
- Verify power pins connected to VCC/GND nets
- Check for duplicate net names (case-sensitive!)
PCB DRC errors: 'Clearance violation'
PCB DRC errors: 'Clearance violation'
- Increase trace spacing:
- Design → Design Rule → Clearance: Min 0.2mm
- Move components farther apart
- Re-route traces with more space
- Reduce trace width if space-constrained
PCB traces not connecting (ratsnest visible)
PCB traces not connecting (ratsnest visible)
- Manually route remaining traces (click Track tool)
- Use Auto Router (may not route 100% successfully)
- Add vias to switch between top/bottom layers
- Check if pads are on correct net (may need re-annotation)
Gerber export fails or JLCPCB rejects files
Gerber export fails or JLCPCB rejects files
- Verify board outline exists:
- Must have closed polygon on Board Outline layer
- Run DRC before export (fix all errors)
- Use EasyEDA’s JLCPCB Fabrication button (auto-generates compatible Gerbers)
- Check minimum trace width: 0.15mm (JLCPCB standard)
Project Deliverables (WP2)
For the course submission, include:Schematic Diagram
- Complete electrical schematic (PDF export)
- Clearly labeled components with values
- Power rails and ground clearly marked
- Include in report as Figure
Wiring Diagram
- Simplified diagram showing physical connections
- Color-coded wires (red/black/yellow)
- Pin numbers and wire gauges labeled
- Use as assembly guide
Bill of Materials (BOM)
| Component | Quantity | Part Number | Supplier | Price |
|---|---|---|---|---|
| ESP32 DevKit | 1 | ESP32-WROOM-32 | AliExpress | $5 |
| Buck Converter | 1 | LM2596 | Jaycar | $8 |
| … | … | … | … | … |
Assembly Notes
- Component substitutions (e.g., used LM2596S instead of LM2596)
- Wiring modifications from original design
- Troubleshooting steps taken