
Download Circuit Diagram
I Built a Handwriting CNC Machine at Home (100% Working) Step-by-Step
20 Minute I MAKE the Top Best Homework Writing CNC Machine Vary in High Performance QUALITY GOOD
1. Executive Summary & Design Architecture
A desktop pen plotter translates digital 2D vector paths into real-world handwriting and line drawings. Rather than a standard 3D printer hotend or a heavy router spindle, this machine carries a pen holder on a high-speed, low-mass Cartesian gantry.
Core Kinematic Layout
- X-Axis (Carriage Travel): Moves the writing carriage horizontally left and right across the gantry beam.
- Y-Axis (Gantry Travel): Drives the gantry bridge forward and backward along two parallel guide rails.
- Z-Actuator (Pen Lift): A fast micro-servo mechanism that drops the pen tip onto paper or lifts it during travel moves.
2. Bill of Materials & Technical Specifications
A. Mechanical Motion Components
- Smooth Guide Rods: Hardened linear chrome shafts (8mm/10mm) cut to working length.
- Linear Bearings: LM8UU / LM10UU linear ball bushings (or long-body variants) to support smooth travel.
- Drive Hardware:
- 2 mm pitch GT2 timing belts (fiberglass-reinforced neoprene).
- 20-tooth GT2 aluminum drive pulleys (5mm bore for NEMA 17 shafts).
- Smooth/toothed idler pulleys with ball bearings.
- Structural Hardware: Custom-machined bearing couplings, motor mounts, end plates, and M3/M4/M5 machine screws with locknuts.

B. Electronics & Actuation
- Motors: 2 × NEMA 17 bipolar stepper motors (1.8° step angle, 200 steps/rev).
- Z-Lift Actuator: 1 × TowerPro SG90 micro servo (9g).
- Controller Board: Arduino Uno R3.
- Expansion Shield: CNC Shield V3.00.
- Stepper Drivers: A4988 or DRV8825 modules with aluminum heat sinks.
- Power Unit: 12V DC, 3A to 5A regulated power supply.
C. Software Pipeline
- Vector Creation: Inkscape (with Hershey single-stroke fonts and G-code export plugins).
- Motion Firmware: GRBL configured for servo/PWM pen-lift control.
- Machine Interface: Universal Gcode Sender (UGS) or LaserGRBL.

3. Mechanical Assembly Phase-by-Phase
Phase 1: Base Frame & Y-Axis Rails
- Bed Alignment: Secure the two main Y-axis guide rods parallel to each other using the custom CNC-machined bearing couplings.
- Squaring the Rails: Measure diagonal distances between rail ends. Equal diagonals confirm a square frame, preventing skew in written lines.
- Rigid Fastening: Bolt down the rail blocks to maintain consistent track spacing along the entire stroke.
Phase 2: Dual Gantry Carriage
- Press the linear ball bushings into the gantry bearing holders.
- Slide the carriages onto the parallel Y-rods. They should glide smoothly without binding or tight spots.
- Bolt the cross-beam bridge across both carriages, forming the foundation of the X-axis.
Phase 3: X-Axis Carriage & Motor Mounts
- Mount the horizontal guide rods across the gantry frame.
- Install the NEMA 17 stepper motors onto their respective brackets on the frame and gantry.
- Press-fit and lock the GT2 drive pulleys onto the motor shafts, seating grub screws firmly against the shaft flat spots.
Phase 4: GT2 Belt Routing & Tensioning
- Route the belts around the motor drive pulleys and opposing idlers.
- Anchor belt ends to the carriages using tension clamps.
- Tension Rule: Belts should feel firm with minimal slack (yielding a clear acoustic note when plucked) without placing excessive lateral force on motor shafts.
Phase 5: Z-Axis Pen Slider & Servo Mount
- Assemble the vertical pen slide on the X-carriage. The pen carriage must drop freely under its own weight.
- Attach the SG90 micro-servo arm above or below the pen slider.
- Fit the pen clamp (using thumbscrews or flexible bands) to hold pens, markers, or pencils securely at a fixed angle (80°–90° relative to the page).

4. Electrical Wiring & Driver Configuration
[12V Power Supply] ---> [CNC Shield V3 DC Inputs]
[Arduino Uno] ---> [USB Cable to PC]
[CNC Shield] ---> [X-Stepper (Carriage)]
---> [Y-Stepper (Gantry)]
---> [Servo PWM Output (Z-Lift)]
1. Jumper Settings & Microstepping
- Place jumpers on the CNC Shield pins under each driver socket to enable 1/16 microstepping (MS1, MS2, and MS3 pulled high on A4988). This yields smooth, low-vibration vector curves.
2. Driver Current Limit Tuning ($V_{\text{ref}}$)
Before powering the motors, adjust driver potentiometers to protect the coils from overheating: $$V_{\text{ref}} = I_{\text{max}} \times 8 \times R_{\text{sense}}$$ Aim for a conservative current (0.8A to 1.0A) to keep motor temperatures reasonable during long writing sessions.
3. Servo Signal Connection
- Connect the servo’s signal lead to the shield’s PWM/Spindle control pin (typically
D11on modern GRBL pinouts), and run the power leads to 5V and GND.

5. Software Setup, Firmware, and G-Code Workflow
Step 1: Flashing the Firmware
- Upload the servo-compatible build of GRBL to your Arduino Uno using the Arduino IDE.
Step 2: Calibrating Steps/mm
Use the standard formula to find your initial motion scale: $$\text{Steps per mm} = \frac{200 \times 16}{20 \times 2} = 80\ \text{steps/mm}$$ Set $100=80 (X-axis) and $101=80 (Y-axis) in the GRBL console, then verify accuracy over a commanded 100mm travel move.

DOWNLOAD LINK:
ARDUINO SOFTWARE
GRBL CODE
Grbl Servo Master
Inkscape 0.92.5
4xiDraw & Km Laser
G Code Sender Download (UGS)
JLCCNC BEARING COUPLING FILE DOWNLOAD
How to Make G-CODE File of Any Image for CNC Machine /INKSCAPE – Video
Step 3: Configuring Pen Lift (Servo Angles)
- Pen Up: Commanded via
M5orM3 S0(lifts pen clear of paper for rapid travel). - Pen Down: Commanded via
M3 S[value](lowers pen to touch the page with steady, light contact).
Step 4: Text Preparation with Single-Stroke Fonts
Standard computer fonts outline letters in closed loops, which causes dual strokes. For genuine handwriting:
- Open Inkscape.
- Render text using the Hershey Text extension, which uses single-line center paths.
- Optional: Apply path jitter/displacement extensions to add subtle variations in letter tilt and spacing.
- Export the toolpath to G-code using your preferred plotter extension.
Step 5: Running the Job
- Tape down your paper sheet flat to the build surface.
- Jog the pen carriage to your page origin (bottom-left or top-left corner).
- Zero the work coordinates (
G92 X0 Y0 Z0). - Load the G-code file into UGS or LaserGRBL and start the job.
How to a Make CNC Machine for Handwritten Homework in Just 20 Minutes
Here are the deep dives into all three sections so you have everything needed to document or build the project from scratch:
1. Complete Wiring & Pinout Schematic
+----------------------------------------+
| 12V DC Power Supply |
+-------------------+--------------------+
|
[+] [-]
| |
v v
+--------------------+
| CNC Shield V3 |
| (Power Terminals)|
+---------+----------+
|
+--------------------------------+--------------------------------+
| | |
v v v
+--------+ +--------+ +-------+
| X-Axis | | Y-Axis | | Servo |
| Driver | | Driver | | Pin |
| (A4988)| | (A4988)| | Header|
+---+----+ +---+----+ +---+---+
| | |
| 4-Pin Lead | 4-Pin Lead | 3-Pin Lead
v v v
+---------------+ +---------------+ +-------------+
| NEMA 17 Motor | | NEMA 17 Motor | | SG90 Servo |
| (X - Carriage)| | (Y - Gantry) | | Signal -> Z+|
+---------------+ +---------------+ | (D11 PWM) |
| VCC -> 5V|
| GND ->GND|
+-------------+
Key Wiring Details:
- Microstepping Jumpers: Place all 3 jumper caps underneath each A4988 driver socket (connecting MS1, MS2, MS3 to 5V). This sets the drivers to 1/16 microstepping, which gives smooth, quiet handwriting without jagged curves.
- Micro Servo Connections:
- Brown / Black wire (GND): Connect to any
GNDpin on the shield. - Red wire (+5V): Connect to the
5Vrail on the shield. - Orange / Yellow wire (Signal): Connect to
Z+(which maps to Arduino digital pinD11for hardware PWM in modern GRBL builds).
- Brown / Black wire (GND): Connect to any
- Driver Current Limit ($V_{\text{ref}}$): Measure between the driver potentiometer wiper and ground using a multimeter. For typical 1.5A NEMA 17 motors with an A4988 driver ($R_{\text{sense}} = 0.1\ \Omega$), set $V_{\text{ref}}$ to approximately 0.6V to 0.7V to provide steady torque without overheating.
2. Exact GRBL Configuration Settings
Connect your Arduino to your computer, launch a serial monitor or G-code sender at 115200 baud, and verify or update these settings:
| Setting | Value | Description & Purpose |
|---|---|---|
$100 | 80.000 | X-axis resolution (steps/mm): Based on a 200 step/rev motor, 1/16 microstepping, and a 20-tooth GT2 (2mm pitch) pulley: $\frac{200 \times 16}{20 \times 2} = 80$. |
$101 | 80.000 | Y-axis resolution (steps/mm): Same calculation as the X-axis. |
$110 | 3000.000 | X maximum rate (mm/min): Travel speed along the gantry. |
$111 | 3000.000 | Y maximum rate (mm/min): Travel speed along the base. |
$120 | 500.000 | X acceleration (mm/sec²): High enough for snappy movement, low enough to avoid shaking the pen carriage. |
$121 | 500.000 | Y acceleration (mm/sec²): Prevents inertia wobble on the larger moving bridge. |
$30 | 255 | Maximum spindle speed: Defines the upper PWM range used to rotate the servo to full travel. |
$31 | 0 | Minimum spindle speed: Defines the 0% PWM point. |
$32 | 0 | Laser mode: Must be disabled (0) so the spindle PWM commands do not force instantaneous moves without pen-lift pauses. |
Servo Command Reference:
- Pen Lift (Up):
M5orM3 S0(lifts the pen clear of the page for travel moves). - Pen Contact (Down):
M3 S60(or whicheverSvalue lowers the pen tip gently onto the paper without bending the nib).
3. Single-Stroke Font Workflow in Inkscape
Standard TrueType or OpenType fonts are filled outlines. If you import regular text, the plotter will trace both the inner and outer boundaries of each letter, giving you double-lined characters. Single-stroke (Hershey) fonts draw single lines down the center of each letter, perfectly replicating human pen strokes.
Step 1: Open Inkscape & Set Page Dimensions
- Open Inkscape.
- Press
Ctrl + Shift + D(Document Properties). - Set your display units to mm and set the canvas size to match your paper (e.g., standard A4: $210 \times 297\text{ mm}$).
Step 2: Render Single-Stroke Text
- Go to Extensions > Text > Hershey Text.
- In the text box, type your homework, notes, or assignment content.
- Select your font style (e.g., EMSCircular, EMSNeato, or Script for natural cursive handwriting).
- Click Apply. Inkscape will generate single-line vector paths rather than standard outlined text.
Step 3: Add Handwriting Variations (Optional)
Real handwriting isn’t mathematically perfect:
- Select the generated text.
- Go to Extensions > Modify Path > Jitter Nodes.
- Set subtle values (e.g., $0.1\text{ to }0.3\text{ mm}$) to add realistic, minor variations to letter alignment and baseline height.
Step 4: Generate Plotter G-Code
- Go to Extensions > Export > Gcode Plot (or use the MI GRBL / AxiDraw extension).
- Set your Pen Up command to
M5(orM3 S0) and Pen Down command toM3 S60. - Set travel feed rate (e.g.,
3000 mm/min) and drawing feed rate (e.g.,1200 mm/min). - Click Apply to save the
.gcodefile.
Step 5: Send to the Machine
- Open Universal Gcode Sender (UGS) or LaserGRBL.
- Connect to the Arduino COM port at 115200 baud.
- Jog the pen carriage to your paper’s home position (bottom-left or top-left corner).
- Click Reset Zero (
G92 X0 Y0 Z0). - Open your generated
.gcodefile and press Start.
How to a Make CNC Machine For Handwritten Homework in just 20 minutes.
The Complete Step-by-Step Guide: Building a Desktop CNC Writing Machine
A desktop CNC writing plotter automates handwriting, sketches, and notes by translating digital vector paths into physical pen strokes. Using custom-machined metal hardware, standard motion components, and an open-source motion controller, this project brings precision digital fabrication right to your desk.
1. Materials, Hardware & Electronics Breakdown
A. Mechanical Motion & Structural Parts
- Precision Bearing Couplings: Custom metal bearing couplings (ordered via custom CNC machining services like JLCCNC) designed to hold the linear guide rods and bearings securely without flex or misalignment.
- Linear Rails: Hardened smooth steel guide rods for both the main Y-axis tracks and the cross X-axis gantry.
- Linear Bearings: Low-friction linear ball bushings fitted directly into the custom coupling blocks.
- Belt & Pulley Transmission: GT2 timing belts, 20-tooth GT2 drive pulleys, and matching smooth/toothed idler pulleys.
- Z-Axis Lift Carriage: A lightweight vertical slide mechanism paired with an adjustable pen clamp that holds ballpoint, gel, or fountain pens securely.
B. Electronics & Actuation
- Microcontroller: Arduino Uno R3 running GRBL firmware configured for servo/PWM pen control.
- Shield: CNC Shield V3 plugged directly onto the Arduino.
- Stepper Drivers: A4988 (or DRV8825) stepper motor driver modules fitted with aluminum heat sinks.
- Drive Motors: 2 × NEMA 17 high-torque bipolar stepper motors (controlling X and Y planar movement).
- Z-Lift Actuator: 1 × Micro servo motor (SG90) to lift and drop the pen.
- Power Supply: 12V DC power adapter (minimum 2A to 3A).
2. Step-by-Step Build & Assembly
Step 1: Base Frame Setup & Y-Axis Alignment
- Mounting Guide Rods: Place the parallel linear rods on the base surface.
- Coupling Installation: Fix the custom-machined bearing couplings at the rod ends. Ensure the spacing between the two rods is identical at both ends to prevent the gantry from binding.
- Squaring the Rails: Measure diagonally across the four corners. If the diagonals match, the rails are square.
Step 2: Gantry & X-Axis Assembly
- Sliding Carriage: Slide the linear bearings onto the dual Y-axis rods. Ensure smooth gliding with zero wobble.
- Cross-Rail Installation: Mount the horizontal X-axis linear rods across the dual Y-axis carriage blocks to complete the moving gantry.
- Motor Mounts: Fasten the NEMA 17 motors onto their designated frame brackets. Press-fit the GT2 pulleys onto the motor shafts, tightening the set screws against the flat edge of each shaft.
Step 3: Belt Routing & Tensioning
- Route the GT2 belts through the drive pulleys on the stepper motors and the opposing idler bearings.
- Clamp both ends firmly to the carriages.
- Tension Check: Ensure the belt is taut enough to prevent tooth skipping or backlash, but not so tight that it strains the motor bearings.
Step 4: Pen Holder & Z-Lift Mechanism
- Attach the vertical slide mechanism to the X-axis carriage.
- Mount the micro servo so that its arm lifts the pen carriage when energized and lets it gently rest on the paper when disengaged.
- Secure the pen into the clamp, angling it at roughly 80° to 90° for smooth, consistent ink flow.
Step 5: Electronics Wiring & Tuning
- Seat the stepper drivers onto the CNC shield (ensure pin orientations match
DIRandGND). - Set microstepping jumpers underneath each driver to 1/16 microstepping for smooth movement.
- Connect the stepper motors to the X and Y headers.
- Connect the servo signal lead to the PWM/Spindle control pin, and power to 5V and GND.
- Adjust the driver potentiometer ($V_{\text{ref}}$) to provide sufficient torque without overheating the motors during long writing runs.
3. Software Workflow & Calibration
- Firmware: Flash the Arduino Uno with GRBL firmware configured for servo pen plotters.
- Step Calibration: Calculate steps/mm: $$\text{Steps/mm} = \frac{200 \times 16}{20 \times 2} = 80\ \text{steps/mm}$$ Input
$100=80and$101=80into the GRBL console, then verify by commanding a 100mm move. - Pen Travel Tuning:
- Pen Up: Set the servo travel angle so the pen clears the page during rapid travel (
M5orM3 S0). - Pen Down: Set the contact angle (
M3 S[value]) so the pen rests lightly on the paper without applying excessive downward force.
- Pen Up: Set the servo travel angle so the pen clears the page during rapid travel (
- Generating Handwriting:
- Use Inkscape with single-stroke Hershey fonts (instead of standard outlined fonts) so the machine draws clean, single pen lines.
- Generate the toolpath with a plotter extension, export the G-code, and send it to the machine using Universal Gcode Sender (UGS) or LaserGRBL.