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
Free, cloud-based, easy to learn, integrated with JLCPCB manufacturing
Cadence OrCAD
Industry-standard, powerful simulation, professional-grade features
Recommendation: Use EasyEDA for this project. It’s sufficient for simple power distribution and wiring diagrams, and integrates seamlessly with PCB manufacturers.
EasyEDA (Recommended)
Getting Started
Create Account
Visit easyeda.comClick Sign Up and create free account (or use Google/GitHub login)
Access EasyEDA Editor
Click EDA → Schematic or Go to EditorInterface loads in browser (works on Chrome, Firefox, Edge)
Interface 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)
Add Power Rails
Place → Power PortCommon symbols:
- VCC / +12V: Battery positive
- +5V: Buck converter output
- +3.3V: ESP32 regulator output
- GND: Ground (common reference)
Annotate Components
Components auto-assigned designators (R1, C1, U1, etc.)Add values by double-clicking component:
- Resistors: “10kΩ”
- Capacitors: “100nF”
- ICs: Part number (e.g., “LM2596”)
Example: Power Distribution Circuit
Designing a PCB (Optional)
If you choose to design a PCB:Convert Schematic to PCB
Click Convert to PCB button (top toolbar)EasyEDA imports footprints and nets automatically
Arrange Components
Drag components to logical positions:
- Large components (connectors) near board edges
- Group related circuits (power, ESP32, sensors)
- Keep signal paths short
Route Traces
Track (T): Draw copper traces connecting padsWidth guidelines:
- 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
Tools → Copper AreaDraw polygon covering board → Assign to GND netGround plane reduces noise and improves heat dissipation
Design Rule Check (DRC)
Tools → Design Rule CheckValidates:
- Trace width and spacing
- Clearance to board edges
- No overlapping components
Order PCB (via JLCPCB)
Fabrication → Generate GerberExports ZIP file with manufacturing dataUpload to jlcpcb.com for pricing:
- 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:Configure Simulation
Simulate → New SimulationChoose analysis type:
- DC Sweep: Test voltage/current ranges
- Transient: Time-domain analysis
- AC Analysis: Frequency response
Simulation is optional for this project but useful for understanding power distribution
Exporting Schematics
Cadence OrCAD (Advanced)
Installation (RMIT Students)
Access RMIT Software Portal
Visit RMIT Software DownloadCheck if Cadence OrCAD is available (varies by semester)
Alternative: Free Version
Download OrCAD Lite (free, limited to 2-layer PCBs)Visit orcad.com/products/orcad-lite
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
Use same schematic approach as PCB designFocus on clear labeling and logical grouping
Add Wire Colors
Double-click wires → Change color:
- Red: +12V, +5V, +3.3V (power)
- Black: GND (ground)
- Yellow/Green: Signal wires (GPIO, I2C, serial)
Annotate Connections
Add text labels for:
- Pin numbers (e.g., “ESP32 GPIO4”)
- Wire gauge (e.g., “16 AWG for 12V”)
- Terminal block numbers
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
Solutions:
- 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'
Solutions:
- 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'
Symptoms: Traces too close to each other or padsSolutions:
- 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)
Symptoms: White/yellow lines (airwires) remain after routingSolutions:
- 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
Solutions:
- 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 |
| … | … | … | … | … |
Learning Resources
EasyEDA Tutorial
Official documentation and video tutorials
PCB Design Basics
YouTube: Phil’s Lab - PCB design fundamentals
Power Supply Design
Texas Instruments app note on buck converters
EasyEDA Community
Ask questions and share designs
Next Steps
PCB Design Tutorial
Step-by-step electrical design for the robot
Power System
Understand battery, voltage regulation, and safety
CAD Design
Design mechanical chassis to mount electronics
ESP32 Wiring
ESP32 pinout and connection diagrams