Search models, users, collections, and posts

KOZOcut ESP32 Cable Cutter

Print Profile(1)

All
X1 Carbon
X1E
H2S
P2S
P1P
H2D
H2C
P1S
X2D
H2D Pro
X1
A1
A2L

0.2mm layer, 7 walls, 15% infill
0.2mm layer, 7 walls, 15% infill
Designer
10.4 h
2 plates

Open in Bambu Studio
Boost
37
54
1
1
11
2
Released 

Description

KOZOcut — ESP32-C3 Cable Cutting Machine

KOZOcut is a compact cable cutting machine based on:

  • ESP32-C3 Super Mini
  • two NEMA17 stepper motors
  • two TMC2209 stepper drivers

The device creates its own Wi-Fi access point called:

KOZOcut

Control panel address:

http://192.168.4.1

Resources

Firmware Features

Main Functions

  • automatic cable feeding to a target length (mm)
  • production of a selected number of pieces
  • single test cut
  • manual jog feed
  • steps/mm calibration
  • adjustable feed and cutting speed
  • configurable guillotine movement steps
  • configuration stored in ESP32 memory

Required Parts

PartQtyNotes
ESP32-C3 Super Mini USB-C1Main controller
TMC2209 V2.0 drivers2Stepper motor drivers
NEMA17 17HS4401 motors2Feeder + guillotine
12V / 24V PSU124V recommended
MP1584EN buck converter1Converts voltage to 5V
A4988 / DRV8825 shield2Optional carrier board
LM3UU linear bearings2Linear guide system
Extruder springs 1.2x7.5x20 mm3Feeder pressure
13 mm bearings3Pressure rollers
Blade from UTP/STP stripper3Guillotine blade
M3/M4 screwsas neededAssembly
Rivet nuts + threaded insertsas neededMounting
3D printed partsproject specificMechanical structure

Example Parts Sources

Recommended Power Setup

Recommended Configuration

  • 24V DC powers the stepper drivers
  • MP1584EN converts 24V → 5V
  • 5V powers the ESP32
  • ESP32 3.3V powers driver logic (VIO/VDD)

IMPORTANT

⚠️ Never connect 24V directly to the ESP32.

Before connecting the controller:

  1. set the buck converter to exactly 5.0V
  2. verify voltage using a multimeter

Driver Enable Logic

Typical TMC2209 enable pin is:

ACTIVE LOW

Meaning:

GPIO4 = LOW   -> drivers ENABLED GPIO4 = HIGH  -> drivers DISABLED

Wiring Diagram

Power Supply

The system is powered from a 12V or 24V DC power supply.

Recommended configuration:

  • 24V powers both TMC2209 stepper drivers
  • MP1584EN buck converter reduces voltage from 24V → 5V
  • 5V powers the ESP32-C3
  • ESP32 3.3V output powers the logic side (VIO/VDD) of both drivers

ESP32-C3 Connections

ESP32-C3 PinConnected To
GPIO0Feeder driver DIR
GPIO1Feeder driver STEP
GPIO7Guillotine driver DIR
GPIO3Guillotine driver STEP
GPIO4EN pin on both drivers
3V3VIO/VDD on both drivers
GNDCommon system ground
5V/VBUS5V output from buck converter

Feeder Driver Wiring (TMC2209)

Driver PinConnection
VM12V/24V from PSU
GNDPSU ground
VIO/VDDESP32 3.3V
STEPGPIO1
DIRGPIO0
ENGPIO4
Motor outputsFeeder NEMA17 motor

Guillotine Driver Wiring (TMC2209)

Driver PinConnection
VM12V/24V from PSU
GNDPSU ground
VIO/VDDESP32 3.3V
STEPGPIO3
DIRGPIO7
ENGPIO4
Motor outputsGuillotine NEMA17 motor

Common Ground Requirement

All grounds MUST be connected together:

  • power supply GND
  • buck converter GND
  • ESP32 GND
  • both driver GND pins

Without common ground the system may behave unpredictably or drivers may not respond correctly.

Driver Enable Logic

EN on typical TMC2209 drivers is:

ACTIVE LOW

Meaning:

GPIO4 = LOW   → drivers ENABLED GPIO4 = HIGH  → drivers DISABLED

Common Ground Requirement

All grounds MUST be connected together:

  • PSU ground
  • buck converter ground
  • ESP32 ground
  • both driver grounds

3D Printed Parts

Recommended mechanical split:

  • main frame
  • feeder motor mount
  • guillotine motor mount
  • cable guide
  • pressure mechanism
  • electronics holder
  • blade cover

Mechanical Notes

Before connecting motors:

✅ check smooth movement manually
✅ verify blade alignment
✅ verify bearing pressure

If mechanics bind or jam:

  • motors may skip steps
  • drivers may overheat
  • cuts may become inaccurate

Calibration

Default firmware value:

44.0 steps/mm

Calibration Procedure

1. Feed known length

Example:

100 mm

2. Measure actual length

Example:

96.5 mm

3. Calculate new value

new_steps_per_mm = old_steps_per_mm × (target_length / measured_length)

Example:

44.0 × (100 / 96.5) = 45.60

Build & Upload

Project uses PlatformIO.

Build

pio run

Upload

pio run -t upload

Serial Monitor

pio device monitor

Default PlatformIO Port

monitor_port = /dev/cu.usbmodem1101 upload_port  = /dev/cu.usbmodem1101

If your board appears on another port:

  • change the values manually
  • or remove them entirely for auto-detection

First Startup Procedure

Initial Setup

  1. verify wiring with motors disconnected
  2. set buck converter to 5V
  3. upload firmware
  4. connect motors and drivers
  5. enable motor power
  6. connect to Wi-Fi network:

KOZOcut

  1. open:

http://192.168.4.1

  1. perform:
    • jog test
    • single cut test
    • steps/mm calibration

Safety Notes

⚠️ 230V AC is dangerous.

Always:

  • disconnect power before wiring
  • insulate terminals
  • use blade covers
  • never run the cutter exposed

Additional Notes

The firmware assumes every cut uses a fixed number of guillotine steps:

guillotineStepsPerCut = 1600

If blade position drifts over time:

  • add a limit switch
  • or implement mechanical homing

Firmware Repository

GitHub:

https://github.com/kozomeuszz/KOZOCUT

Repository contains:

  • complete PlatformIO project
  • ESP32-C3 firmware source
  • web control panel
  • motor control logic
  • calibration system
  • configuration storage

Comment & Rating (1)

(0/1000)