Mill Board Electronics -- February 2015
LaserMill Electronics Hardware Last Updated June 2024

Conceptual Design

This project was initially to create a low-cost, custom electronics board capable of driving six stepper motors. Because my mill design was unusual in requiring six stepper motors, currently-available boards such as the RAMPS board and other electronics were not be capable of driving my mill.

To construct the electronics board, I prototyped a PCB with KiCad and send the design out for manufacturing to OSH Park. Because OSH Park charges for the total rectangular surface area used, I attempted to collapse a 12-pin keypad, a 128x64 LCD display, six stepper motor drives and an ATmega328P-PU microcontroller all on the single board. To support all of these devices, I also used a few serial-to-parallel chips to increase the total number of I/O pins available.

Pins required: Finally, to complete the design I ensured that:
The final KiCad schematic, after adding in all the design elements I desired in this board.
The final KiCad schematic, after adding in all the design elements I desired in this board.

PCB Design

<b>Version 1:</b> Functionally correct, but not space efficient.<br/><small>Used for KiCad experimentation only.</small>
Version 1: Functionally correct, but not space efficient.
Used for KiCad experimentation only.
<b>Version 2:</b> More space efficent, but with room for improvement.<br /><small>This layout also puts the keypad and display at unusual right angles to each other.</small>
Version 2: More space efficent, but with room for improvement.
This layout also puts the keypad and display at unusual right angles to each other.
<b>Version 3:</b> Very efficient, but still messy (lots of long traces, several vias, etc).<br /> By using smaller traces, I was able to route wires through the space between pins.
Version 3: Very efficient, but still messy (lots of long traces, several vias, etc).
By using smaller traces, I was able to route wires through the space between pins.
<b>Version 4:</b> The final result.<br /> I added a ground pane and selected this design for shipping. This only cost $50 for three of these 2-layer ENIG boards.
Version 4: The final result.
I added a ground pane and selected this design for shipping. This only cost $50 for three of these 2-layer ENIG boards.

Resulting board

After about a month of lead time, I received the order I had submitted.
The front of the manufactured prototype PCB.
The front of the manufactured prototype PCB.
The rear of the manufactured prototype PCB.
The rear of the manufactured prototype PCB.

Testing

I went through two main phases testing these boards -- mechanical and electrical -- to verify the operation of the device.

Mechanical Design Errors

Electrical Design Errors

Although the mill was functional, the ATmega328 microcontroller had a hard time running the whole operation at a reasonable rate.

End result

The prototype PCB board in my electrical testing rig