← UNNC-FabLab · Group assignments

UNIT 08 · FAB ACADEMY 2026

Group Work 2026 - Learn and Test Our Desktop CNC

Assignment: Characterize the design rules for our in-house PCB production process / Submit a PCB design to a board house.


Milling Machine

In 2026, we continued to use the Roland MDX-40 for desktop CNC machining and PCB-related fabrication tasks. The Roland MDX-40 3D Milling Machine is a versatile desktop milling machine suitable for prototyping, model making, educational use, and small-scale subtractive manufacturing.

The machine provides a relatively large working area for a desktop CNC system, adjustable spindle speed, and compatibility with Roland machining software. These features make it suitable for both general machining and experimental PCB production.

Electronics Production documentation image 26

Safety First

When operating the Roland MDX-40, the following safety precautions should be followed:


Equipment Usage

Roland MDX-40 Machine Notes


Clamping the Workpiece

Before machining, clean the platform and make sure the workpiece is flat. We used double-sided tape to secure the material firmly to the machining platform.

Electronics Production documentation image 16

Correct clamping is especially important for PCB milling because even a small height difference can affect milling depth and trace quality.


Setting the Origin

Use the direction keys to move the tool above the workpiece. Adjust the X, Y, and Z axes to the required machining origin, then press ENTER to complete the origin setting.

Electronics Production documentation image 28

For PCB milling, the Z-axis origin is particularly important because the copper layer is very thin. An incorrect Z origin can cause incomplete isolation cuts or excessive cutting depth.


Software for Roland

The software used with our Roland MDX-40 is MODELA Player 4.

Machining Workflow

First, import the 3D model into MODELA Player 4.

Electronics Production documentation image 29

After importing the model, confirm the model orientation, machining direction, margin, and machining area. Then add the correct cutting tool and specify its diameter.

Electronics Production documentation image 33

Configure the machining parameters for the selected tool, including the cutting conditions appropriate for the workpiece and machining stage.

Electronics Production documentation image 34

Finally, set the machining process, such as roughing or finishing, before generating and running the toolpath.

Electronics Production documentation image 35

Problems and Improvements Found During Testing

Problems

During machine testing, we observed several common problems:

Optimization Solutions

Electronics Production documentation image 36

Group Work 2026 - Submit a PCB Design to a Board House

For the board-house part of the assignment, we continued to develop a custom expansion board based on the Seeed Studio XIAO ESP32-C3 using LCEDA / EasyEDA.

The board is designed to connect with A4988 stepper motor driver modules, allowing one XIAO ESP32-C3 to control four stepper motors independently. The workflow includes component selection, schematic design, PCB layout, trace routing, ground-plane design, design-rule checking, and manufacturing-file generation.


PCB Design Process

The PCB design was created using LCEDA / EasyEDA, which can be accessed online through EasyEDA.

Project Initialization

Create a new electronic design project in EasyEDA and select Project.

Electronics Production documentation image 38

After creating the project, save it and enter the schematic workspace.


Component Library Preparation

Open the component Library and search for "XIAO ESP32C3 PCB". Select the required component model and place it in the schematic. The A4988 and other required components are added using the same method.

Electronics Production documentation image 41

Hardware Specification Analysis

Pin Definitions

The figure below shows the pin definitions used for the XIAO ESP32-C3 and A4988. Based on these definitions, four A4988 modules can be connected so that four stepper motors can be controlled independently.

Electronics Production documentation image 45

A4988 Technical Specifications

Parameter Type Specification
Motor Output Voltage 8 V – 35 V
Logic Input Voltage 3 V – 5.5 V
Continuous Current per Phase 1 A
Maximum Current per Phase 2 A
Microstepping Resolution Full, 1/2, 1/4, 1/8, 1/16

Power System

The A4988 requires two power connections:

The motor-power input should use suitable decoupling capacitors to stabilize the supply during rapid motor-current changes.

Microstepping Control

The A4988 supports microstepping through MS1 / MS2 / MS3.

A NEMA 17 motor with a 1.8° step angle has 200 full steps per revolution. In quarter-step mode:

200 × 4 = 800 microsteps per revolution

Motion Control


Pin Assignment Plan

XIAO Pin Function
D0 Motor 1 STEP
D1 Motor 1 DIR
D2 Motor 2 STEP
D3 Motor 2 DIR
D4 Motor 3 STEP
D5 Motor 3 DIR
D6 Motor 4 STEP
D7 Motor 4 DIR
GND All A4988 ENABLE
GND All A4988 GND
5V All A4988 VDD

This assignment allows independent STEP and DIR control for four motor-driver channels.


Circuit Design Implementation

Schematic Design

After placing the required components, connect the XIAO ESP32-C3, A4988 drivers, power rails, switches, resistors, and other circuit nodes. Check for incorrect connections, short circuits, and missing connections before proceeding to PCB layout.

Electronics Production documentation image 47

PCB Design

After completing the schematic, transfer the design to the PCB layout environment.

Component Placement

Place the XIAO ESP32-C3, A4988 interfaces, switches, resistors, connectors, and other components on the PCB. The placement should consider signal routing, power routing, assembly access, and mechanical interference.

Electronics Production documentation image 51

Routing Traces

For our board, we used the following trace widths:

The wider power traces are used for higher-current paths, while smaller signal traces can use narrower routing.

Electronics Production documentation image 52

Ground Connection

Use the Copper Area function to connect the GND network and create a ground plane.

Electronics Production documentation image 55

The ground plane simplifies ground routing and provides a more consistent return path for the circuit.


PCB Design Review

Before manufacturing, perform a Design Rule Check (DRC) and verify:

This step helps identify PCB layout problems before fabrication.


Generating Manufacturing Files

Export Gerber Files

Use the LCEDA export function to generate the Gerber files required by the PCB manufacturer.

Electronics Production documentation image 56

Before submission, check that the manufacturing package contains the required board outline, copper layers, solder mask, silkscreen, and drill information.

Bill of Materials (BOM)

Update the BOM with the component values, part numbers, package types, and quantities used in the final design.

Electronics Production documentation image 57

A correct BOM is important for component procurement and PCB assembly.


2026 Group Findings

This group exercise allowed us to compare in-house desktop CNC fabrication with professional PCB board-house production.

For the Roland MDX-40, the most important factors are accurate clamping, correct origin setting, suitable spindle and cutting parameters, and conservative settings for small tools.

For the PCB board-house workflow, the most important factors are correct schematic connectivity, suitable footprints, trace-width selection, ground-plane design, DRC checking, and correct Gerber and BOM generation.

In-house milling is useful for rapid prototyping and immediate testing, while board-house manufacturing provides better repeatability, finer production capability, solder mask, silkscreen, plated holes, and a more production-ready PCB.