# cnc_controller
## Description
Welcome to your new project. Imagine what you can build here.
## Project Details
- **Owner:** paolo32
- **Created:** 11/2/2024
- **Last Updated:** 2/21/2025
- **Visibility:** Public
## Key Components
### D4 — [1N4148WS](https://www.flux.ai/adrian95/1n4148ws.md)
- Manufacturer Name: onsemi
- Part Type: Diode
- Manufacturer Part Number: 1N4148WS
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://rocelec.widen.net/view/pdf/tf3dlteblx/FAIR-S-A0000573112-1.pdf?t.download=true&u=5oefqw
**Pins:**
- A [pin 2]
- K [pin 1]
### D5 — [1N4148WS](https://www.flux.ai/adrian95/1n4148ws.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://rocelec.widen.net/view/pdf/tf3dlteblx/FAIR-S-A0000573112-1.pdf?t.download=true&u=5oefqw
- Manufacturer Name: onsemi
- Part Type: Diode
- Manufacturer Part Number: 1N4148WS
**Pins:**
- A [pin 2]
- K [pin 1]
### J1 — [5-Position Screw Terminal](https://www.flux.ai/robertdalesmith/5-position-screw-terminal.md)
- Purchase Url: https://www.digikey.com/en/products/detail/w%C3%BCrth-elektronik/691137710005/6644054
- Manufacturer Part Number: 691137710005
- Manufacturer Name: Würth Elektronik
- Part Type: Connector
**Pins:**
- P1 [pin 1]
- P2 [pin 2]
- P3 [pin 3]
- P4 [pin 4]
- P5 [pin 5]
### J2 — [5-Position Screw Terminal](https://www.flux.ai/robertdalesmith/5-position-screw-terminal.md)
- Purchase Url: https://www.digikey.com/en/products/detail/w%C3%BCrth-elektronik/691137710005/6644054
- Manufacturer Part Number: 691137710005
- Manufacturer Name: Würth Elektronik
- Part Type: Connector
**Pins:**
- P1 [pin 1]
- P2 [pin 2]
- P3 [pin 3]
- P4 [pin 4]
- P5 [pin 5]
### J3 — [5-Position Screw Terminal](https://www.flux.ai/robertdalesmith/5-position-screw-terminal.md)
- Purchase Url: https://www.digikey.com/en/products/detail/w%C3%BCrth-elektronik/691137710005/6644054
- Manufacturer Part Number: 691137710005
- Manufacturer Name: Würth Elektronik
- Part Type: Connector
**Pins:**
- P1 [pin 1]
- P2 [pin 2]
- P3 [pin 3]
- P4 [pin 4]
- P5 [pin 5]
### J4 — [KF128-5.08-3P-AA](https://www.flux.ai/lcsc/kf128-5p08-3p-aa.md)
- Operating Temperature: -40℃~+105℃
- Current Rating: 24A
- LCSC Part Number: C474953
- JLCPCB Part Class: Extended Part
- Voltage Rating: 250V
- Part Type: Screw terminal
- Product Info Url: https://lcsc.com/product-detail/New-Quadratic-Unclassified-Data_Cixi-Kefa-Elec-KF128-5-08-3P_C474953.html
- Manufacturer Part Number: KF128-5.08-3P-AA
- Datasheet URL: https://www.lcsc.com/datasheet/lcsc_datasheet_2408211511_Cixi-Kefa-Elec-KF128-5-08-3P-AA_C474953.pdf
- Connector Rows: 1
- Manufacturer Name: KEFA(科发)
- Package or Case Code: CONN-TH_3P-P5.08_KF128-5.08-3P
- Connector Pitch: 5.08mm
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
### J5 — [KF128-5.08-3P-AA](https://www.flux.ai/lcsc/kf128-5p08-3p-aa.md)
- Manufacturer Part Number: KF128-5.08-3P-AA
- Datasheet URL: https://www.lcsc.com/datasheet/lcsc_datasheet_2408211511_Cixi-Kefa-Elec-KF128-5-08-3P-AA_C474953.pdf
- Connector Rows: 1
- Manufacturer Name: KEFA(科发)
- Package or Case Code: CONN-TH_3P-P5.08_KF128-5.08-3P
- Connector Pitch: 5.08mm
- Part Type: Screw terminal
- Product Info Url: https://lcsc.com/product-detail/New-Quadratic-Unclassified-Data_Cixi-Kefa-Elec-KF128-5-08-3P_C474953.html
- Voltage Rating: 250V
- JLCPCB Part Class: Extended Part
- Operating Temperature: -40℃~+105℃
- LCSC Part Number: C474953
- Current Rating: 24A
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
### J6 — [Connector 01x04 0.100](https://www.flux.ai/vasy_skral/connector-01x04-0100.md)
- Part Type: Connector
**Pins:**
- 1 [pin 1]
- 2 [pin 2]
- 3 [pin 3]
- 4 [pin 4]
### K1 — [Relay-12VDC-SL-C](https://www.flux.ai/deadzerok/relay-12vdc-sl-c.md)
- Part Type: Relay
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_Ningbo-Songle-Relay-SRD-12VDC-SL-C_C30431.pdf
- Manufacturer Part Number: SRD-12VDC-SL-C
- Manufacturer Name: Ningbo Songle Relay
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- Coil-1 [pin COIL1]
- Coil-2 [pin COIL2]
- Com-3 [pin COM]
- NC [pin NC]
- NO [pin NO]
### K2 — [Relay-12VDC-SL-C](https://www.flux.ai/deadzerok/relay-12vdc-sl-c.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Relay
- Datasheet URL: https://datasheet.lcsc.com/lcsc/2304140030_Ningbo-Songle-Relay-SRD-12VDC-SL-C_C30431.pdf
- Manufacturer Part Number: SRD-12VDC-SL-C
- Manufacturer Name: Ningbo Songle Relay
**Pins:**
- Coil-1 [pin COIL1]
- Coil-2 [pin COIL2]
- Com-3 [pin COM]
- NC [pin NC]
- NO [pin NO]
### Q1 — [2N3904TFR](https://www.flux.ai/adrian95/2n3904tfr.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Name: onsemi
- Manufacturer Part Number: 2N3904TFR
- Datasheet URL: https://www.onsemi.com/pdf/datasheet/pzt3904-d.pdf
- Part Type: Transistor
**Pins:**
- B [pin 2]
- C [pin 1]
- E [pin 3]
### Q2 — [2N3904TFR](https://www.flux.ai/adrian95/2n3904tfr.md)
- Manufacturer Part Number: 2N3904TFR
- Datasheet URL: https://www.onsemi.com/pdf/datasheet/pzt3904-d.pdf
- Manufacturer Name: onsemi
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Transistor
**Pins:**
- B [pin 2]
- C [pin 1]
- E [pin 3]
### U1 — [ESP32-DEVKITC-32UE](https://www.flux.ai/adrian95/esp32-devkitc-32ue.md)
- Manufacturer Name: Espressif Systems
- Part Type: Development Board
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: ESP32-DEVKITC-32UE
- Datasheet URL: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32e_esp32-wroom-32ue_datasheet_en.pdf
**Pins:**
- 3V3 [pin 1]
- 5V [pin 19]
- CLK [pin 38]
- CMD [pin 18]
- D0 [pin 37]
- D1 [pin 36]
- D2 [pin 16]
- D3 [pin 17]
- EN [pin 2]
- GND [pin 26]
- GND [pin 20]
- GND [pin 14]
- GPIO0 [pin 33]
- GPIO12 [pin 13]
- GPIO13 [pin 15]
- GPIO14 [pin 12]
- GPIO15 [pin 35]
- GPIO16 [pin 31]
- GPIO17 [pin 30]
- GPIO18 [pin 28]
- GPIO19 [pin 27]
- GPIO2 [pin 34]
- GPIO21 [pin 25]
- GPIO22 [pin 22]
- GPIO23 [pin 21]
- GPIO25 [pin 9]
- GPIO26 [pin 10]
- GPIO27 [pin 11]
- GPIO32 [pin 7]
- GPIO33 [pin 8]
- GPIO34 [pin 5]
- GPIO35 [pin 6]
- GPIO4 [pin 32]
- GPIO5 [pin 29]
- RX [pin 24]
- TX [pin 23]
- VN [pin 4]
- VP [pin 3]
### U2 — [TMC2209](https://www.flux.ai/jecstronic/tmc2209.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Trinamic%20Motion%20Control%20PDFs/TMC2209_Rev.1.08.pdf
- Manufacturer Name: Trinamic Motion Control GmbH
- Part Type: Integrated Circuit
- Manufacturer Part Number: TMC2209-LA-T
**Pins:**
- 5VOUT [pin 8]
- BRA [pin 23]
- BRB [pin 27]
- CLK [pin 13]
- CPI [pin 5]
- CPO [pin 4]
- DIAG [pin 11]
- DIR [pin 19]
- ENN [pin 2]
- GND [pin 29]
- GND [pin 3]
- GND [pin 18]
- INDEX [pin 12]
- MS1_AD0 [pin 9]
- MS2_AD1 [pin 10]
- NC [pin 25]
- OA1 [pin 24]
- OA2 [pin 21]
- OB1 [pin 26]
- OB2 [pin 1]
- PDN_UART [pin 14]
- SPREAD [pin 7]
- STDBY [pin 20]
- STEP [pin 16]
- VCC_IO [pin 15]
- VCP [pin 6]
- VREF [pin 17]
- VS [pin 28]
- VS [pin 22]
### U3 — [TMC2209](https://www.flux.ai/jecstronic/tmc2209.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Trinamic%20Motion%20Control%20PDFs/TMC2209_Rev.1.08.pdf
- Manufacturer Name: Trinamic Motion Control GmbH
- Part Type: Integrated Circuit
- Manufacturer Part Number: TMC2209-LA-T
**Pins:**
- 5VOUT [pin 8]
- BRA [pin 23]
- BRB [pin 27]
- CLK [pin 13]
- CPI [pin 5]
- CPO [pin 4]
- DIAG [pin 11]
- DIR [pin 19]
- ENN [pin 2]
- GND [pin 29]
- GND [pin 3]
- GND [pin 18]
- INDEX [pin 12]
- MS1_AD0 [pin 9]
- MS2_AD1 [pin 10]
- NC [pin 25]
- OA1 [pin 24]
- OA2 [pin 21]
- OB1 [pin 26]
- OB2 [pin 1]
- PDN_UART [pin 14]
- SPREAD [pin 7]
- STDBY [pin 20]
- STEP [pin 16]
- VCC_IO [pin 15]
- VCP [pin 6]
- VREF [pin 17]
- VS [pin 28]
- VS [pin 22]
### U4 — [TMC2209](https://www.flux.ai/jecstronic/tmc2209.md)
- Manufacturer Part Number: TMC2209-LA-T
- Part Type: Integrated Circuit
- Manufacturer Name: Trinamic Motion Control GmbH
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Trinamic%20Motion%20Control%20PDFs/TMC2209_Rev.1.08.pdf
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- 5VOUT [pin 8]
- BRA [pin 23]
- BRB [pin 27]
- CLK [pin 13]
- CPI [pin 5]
- CPO [pin 4]
- DIAG [pin 11]
- DIR [pin 19]
- ENN [pin 2]
- GND [pin 29]
- GND [pin 3]
- GND [pin 18]
- INDEX [pin 12]
- MS1_AD0 [pin 9]
- MS2_AD1 [pin 10]
- NC [pin 25]
- OA1 [pin 24]
- OA2 [pin 21]
- OB1 [pin 26]
- OB2 [pin 1]
- PDN_UART [pin 14]
- SPREAD [pin 7]
- STDBY [pin 20]
- STEP [pin 16]
- VCC_IO [pin 15]
- VCP [pin 6]
- VREF [pin 17]
- VS [pin 28]
- VS [pin 22]
### U5 — [TMC2209](https://www.flux.ai/jecstronic/tmc2209.md)
- Datasheet URL: https://media.digikey.com/pdf/Data%20Sheets/Trinamic%20Motion%20Control%20PDFs/TMC2209_Rev.1.08.pdf
- License: https://creativecommons.org/licenses/by/4.0/
- Part Type: Integrated Circuit
- Manufacturer Name: Trinamic Motion Control GmbH
- Manufacturer Part Number: TMC2209-LA-T
**Pins:**
- 5VOUT [pin 8]
- BRA [pin 23]
- BRB [pin 27]
- CLK [pin 13]
- CPI [pin 5]
- CPO [pin 4]
- DIAG [pin 11]
- DIR [pin 19]
- ENN [pin 2]
- GND [pin 29]
- GND [pin 3]
- GND [pin 18]
- INDEX [pin 12]
- MS1_AD0 [pin 9]
- MS2_AD1 [pin 10]
- NC [pin 25]
- OA1 [pin 24]
- OA2 [pin 21]
- OB1 [pin 26]
- OB2 [pin 1]
- PDN_UART [pin 14]
- SPREAD [pin 7]
- STDBY [pin 20]
- STEP [pin 16]
- VCC_IO [pin 15]
- VCP [pin 6]
- VREF [pin 17]
- VS [pin 28]
- VS [pin 22]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/paolo32/cnccontroller](https://www.flux.ai/paolo32/cnccontroller).*
---
*Generated from [https://www.flux.ai/paolo32/cnccontroller](https://www.flux.ai/paolo32/cnccontroller)*