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.

Machine and Process Description

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 and Design Rules

The experiments revealed clear thresholds for reliable PCB fabrication:

Below these limits, traces became discontinuous and electrical isolation failed.

Thermal effects were identified as the main limiting factor, requiring careful parameter tuning.

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.

Step — 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