Industrial FABLAB UCuenca

WEEK 08 — Electronics Production

XIAO ESP32C3 + Fiber Laser PCB Manufacturing

Week Objective

This week focused on understanding the complete workflow of PCB fabrication, from the conceptual electronic design to the validation of a fully functional embedded system.

The main goal was not only to fabricate a PCB but to understand how fabrication parameters directly affect electrical performance. A 50W fiber laser machine was used as an alternative manufacturing method, replacing traditional CNC milling or chemical etching processes.

This required developing an understanding of digital manufacturing processes, thermal material behavior, and iterative experimentation.

GROUP ASSIGNMENT — Fiber Laser PCB Characterization

The group assignment consisted of analyzing and characterizing the fabrication capabilities of a 50W fiber laser machine when applied to PCB production.

PCB Manufacturing: Dual Technology Approach

In this assignment, PCB fabrication will be explored using two complementary manufacturing technologies: CNC milling with a high-speed spindle and fiber laser machining. The goal is to compare precision, speed, and manufacturing constraints of each method.

Image 1 Image 2

.

View Week 08 Group Assignment

1. CNC Milling Machine

2. Fiber Laser Machine (JPT 90W)

Image 1 Image 1

Objective

Both technologies will be evaluated to determine their effectiveness in PCB fabrication, focusing on resolution, reliability, and workflow efficiency.

PCB Design Rules: CNC & Fiber Laser Manufacturing

This section defines the minimum design constraints and fabrication rules for producing PCBs using two in-house technologies: CNC milling and JPT 90W fiber laser. These rules ensure manufacturability, reduce errors, and improve repeatability in the production process.

CNC Milling Design Rules

Fiber Laser (JPT 90W) Design Rules

These rules define the baseline for PCB layout design before fabrication. Proper adherence ensures higher yield, reduced iteration cycles, and compatibility with both CNC and laser manufacturing workflows.

Image 1 Image 2

Machine and Process Description

PCB Test Production: Trace Fabrication Trial

We used the provided drawings for the traces to generate a controlled fabrication test. The objective was to evaluate resolution, precision, and repeatability in both CNC milling and fiber laser processes under real manufacturing conditions.

Image 1

CNC Milling Process

Fiber Laser (JPT 90W) Process

This comparative test highlights the differences between subtractive CNC milling and non-contact fiber laser machining, focusing on precision, repeatability, and fabrication efficiency.

The fiber laser machine operates by emitting high-frequency pulses of energy that remove copper from the PCB surface through thermal ablation. This process is entirely contactless and controlled digitally.

Unlike milling, there is no mechanical force applied to the board. However, the process introduces thermal energy that can affect both the copper layer and the substrate.

Critical parameters:

Understanding the interaction between these variables is essential for achieving reliable PCB results.

Test Board and Experimental Strategy

A test PCB was designed to explore the limits of the fabrication process. This board included a range of geometries to evaluate resolution, spacing, and engraving quality.

The experimentation followed a structured iterative process:

  1. Prepare the copper board by cleaning oxidation and residues
  2. Generate monochrome design files for laser input
  3. Select initial parameter combinations
  4. Execute engraving process
  5. Inspect traces visually using magnification
  6. Test electrical continuity and isolation
  7. Adjust parameters and repeat

This process was repeated multiple times to ensure consistent results and identify optimal fabrication conditions.

Results

PCB Test Results: CNC vs Fiber Laser

This section summarizes the results obtained from the PCB trace fabrication tests using two different manufacturing technologies: CNC milling and JPT 90W fiber laser. The comparison highlights performance differences, advantages, and limitations observed during the process.

CNC Milling Results

Pros

Cons

Image 1

Fiber Laser (JPT 90W) Results

Pros

Cons

Image 1

Overall, CNC milling is more practical for fast prototyping and educational environments, while fiber laser machining provides superior precision and repeatability for advanced PCB fabrication.

INDIVIDUAL ASSIGNMENT — LED Roulette PCB

The individual assignment focused on applying the characterized process to fabricate a functional PCB capable of producing a LED roulette animation using a XIAO ESP32C3.

Bill of Materials

ComponentQuantityDescription
XIAO ESP32C31Main microcontroller
LEDs7Visual output
Resistors 220Ω7Current limiting
Copper PCB1Base material

Step 1 — Schematic Design (KiCad)

The design process began with the creation of a schematic in KiCad. This stage defines the logical structure of the circuit.

Each LED was connected to a dedicated GPIO pin from the XIAO ESP32C3 through a 220Ω resistor. This ensures proper current limiting and protects both the LED and the microcontroller.

Special attention was given to:

Introduction Evidence 1 Introduction Evidence 1

Electrical Rule Check (ERC) was executed to detect connection errors before proceeding.

Step 2 — PCB Layout Design (KiCad)

After validating the schematic, the design was transferred to the PCB editor.

Components were placed with a clear intention: LEDs arranged in a circular geometry to visually simulate a roulette effect.

Routing required careful planning:

Introduction Evidence 1 Introduction Evidence 1
Introduction Evidence 1

The design rules obtained in the group assignment were strictly followed to ensure manufacturability.

Step 3 — File Preparation in Inkscape

The PCB layout was exported and processed in Inkscape to generate a file compatible with the fiber laser.

This step is critical because the laser interprets graphical information directly.

Detailed process:

Introduction Evidence 1

Any graphical error at this stage results in fabrication defects.

Image Processing and G-code Generation using Fab Modules (Mods)

For this project, Fab Modules (Mods) were used to process the PCB design images and generate the corresponding G-code required for digital fabrication. This step is critical because it translates visual design data into machine instructions.

The workflow in Mods follows a modular structure where each node processes specific information. The objective was to convert a monochrome PCB image into precise toolpaths that define how the machine removes copper.

Detailed Process

  1. Open Mods in a web browser (local or online version)
  2. Select the program: PCB → mill traces (1/64) or equivalent depending on machine
  3. Load the PNG image exported from KiCad or Inkscape
  4. Verify image resolution and scale (DPI must match design)
  5. Adjust threshold if necessary to ensure clean black/white separation
  6. Define tool diameter according to fabrication method
  7. Configure cut depth and max depth
  8. Set offset number (number of passes around traces)
  9. Adjust step-over for precision
  10. Define feed rate (speed of tool movement)
  11. Set spindle speed or equivalent parameter (if required)
  12. Generate toolpath preview
  13. Inspect for errors such as disconnected traces or unwanted cuts
  14. Calculate toolpath
  15. Export G-code file
Introduction Evidence 1 Introduction Evidence 1

Important Considerations

This step ensures that the digital design is accurately translated into machine movements, enabling precise PCB fabrication.

Step 4 — Laser Engraving Process

The engraving process defines the electrical circuit by removing copper.

Detailed workflow:

  1. Fix PCB securely on machine bed
  2. Adjust focus to match surface height
  3. Import design file into control software
  4. Configure engraving parameters
  5. Execute test pass if necessary
  6. Run full engraving process
  7. Inspect engraved traces

Parameter selection is critical:

Multiple passes were used to improve precision without overheating.

Step 5 — Drilling Process

Once engraving was completed, holes were drilled for through-hole components.

Detailed process:

Improper drilling can lift copper pads or misalign components.

Step 6 — PCB Cutting

The final board shape was defined using a laser cutter.

Steps:

Cutting must be carefully aligned to preserve all traces and components.

Step 7 — Soldering

All components were assembled using manual soldering.

Detailed process:

Polarity verification was essential for LEDs.

Step 8 — Programming

The XIAO ESP32C3 was programmed using Arduino IDE.

The code implemented a sequential activation of LEDs, simulating a rotating effect with progressive acceleration and final blinking.

Download Arduino Code (.ino)

Step 9 — Testing and Validation

The system was tested to verify functionality.

Step 10 — Hero Shot

The final documentation included a high-quality image of the working PCB.

This image highlights the final result and demonstrates successful integration of design, fabrication, and programming.

section class="section-box">

Download Files

Final Reflection

This project demonstrated that PCB fabrication is not only a design challenge but also a manufacturing challenge.

The fiber laser method offers flexibility and speed, but requires precise calibration and understanding of thermal effects.

The integration of all stages resulted in a functional and well-documented embedded system.

Conclusion

This assignment demonstrated the complete workflow of PCB fabrication, integrating design, manufacturing, and programming into a single process. The use of a fiber laser introduced a non-traditional method that required careful parameter calibration and a deep understanding of thermal effects on materials.

Through iterative testing, it was possible to establish reliable design rules and validate the feasibility of this fabrication method. The integration of tools such as KiCad, Inkscape, and Fab Modules (Mods) ensured a consistent transition from digital design to physical implementation.

The final result, a fully functional LED roulette controlled by the XIAO ESP32C3, confirms that the workflow was successful. This process reinforced the importance of precision, testing, and multidisciplinary integration in digital fabrication.

Final Checklist — Electronics Production Assignment