Skip to the content
2 layers78.8 × 53.3 mmCnc pendant, the printed circuit board in 3D

This project was designed with simplicity and practicality in mind, focusing on essential functions like jogging and basic machine control (start/stop/pause) rather than attempting to replicate all CNC controller…

Size
78.8 × 53.3 mm
Copper layers
2
Thickness
1.59 mm
Parts
17
Nets
25
Pads
121
Tracks, vias
216, 34
Pours
9
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
3 May 2024
Updated
21 Mar 2026

Overview

Cnc pendant is an open-source printed circuit board by etet100, from the etet100/cnc_pendant repository on GitHub. It is a 2-layer board of 78.8 × 53.3 mm with 17 parts on 25 nets, routed with 216 tracks and 34 vias.

It is built around the PCA9536D and DMN3051L. Its parts include 5 capacitors, 4 resistors, 3 ICs, 3 connectors and 1 transistor. It belongs with the robots and motor control boards of this library.

Main components

2

README

README.md

CNC Pendant - Wireless Controller for Genmitsu 4040 CNC Mill

Note: This is a work in progress. The project is under active development and contributions are welcome! If you're interested in helping with the firmware, hardware design, or adding support in CNC control software, please feel free to reach out or submit pull requests.

Project Description

CNC Pendant is a peripheral device based on ESP8266 that serves as a wireless controller for the Genmitsu 4040 CNC mill. The device allows for controlling the machine axes, monitoring the machine state, and executing basic control operations through a touch interface and rotary knob.

This project was designed with simplicity and practicality in mind, focusing on essential functions like jogging and basic machine control (start/stop/pause) rather than attempting to replicate all CNC controller features.

The entire project, including electronics design, firmware development, and 3D-printed enclosure, is original work (excluding the ESP8266 module and display components).

Hardware Specifications

  • Main Processor: ESP8266EX
  • Display: 3.2" Capacitive Touch Screen (240x320 pixels) - Product Link
  • Control Knob: AS5600 magnetic encoder
  • Communication: WiFi (wireless) and USB options
  • Power: Currently USB-powered with plans for battery operation in future versions
  • Configuration Storage: External I2C EEPROM
  • Other Components: PCA9536 controller (pin management), physical buttons
  • Enclosure: Custom 3D-printed case

Hardware & Screenshots

Physical Hardware

Device Front View Device Angle View Device Side View

Interface Screenshots

Screenshot 1 Screenshot 2

Functionality & Controls

The pendant focuses on delivering essential CNC control functions in a user-friendly package:

Primary Features

  • Axis Jogging: Control machine movement using the physical rotary knob after selecting an axis
  • Basic Machine Control: Start, stop, and pause operations directly from the pendant
  • Status Monitoring: View machine status and position information on the display

Control Interface

  • Touch Screen: Most functions are accessible through the touch interface
  • Rotary Knob: Provides precise control for axis jogging
  • Physical Buttons:
    • Three dedicated buttons for quick feed/step value selection (added based on user testing for speed of operation)
    • Additional button beneath the knob intended for emergency stop functionality

Main Software Modules

1. Communication Module (WirelessCommunicator)

  • Handles WiFi communication between the pendant and the CNC controller
  • Implements TCP protocol for data exchange
  • Handles buffering and error checking (CRC)
  • Maintains connection and detects connection loss

2. State Module (State)

  • Tracks current axis positions (X, Y, Z)
  • Monitors CNC machine state (idle, alarm, running, etc.)
  • Provides data to the user interface

3. User Interface (Screen, MainPage, Drawable)

  • Displays the interface with current machine status
  • Handles touch interactions
  • Shows status indicators (WiFi, machine state, etc.)
  • Implements axis control widget

4. Knob Control (Wheel)

  • Reads rotations from the AS5600 magnetic encoder
  • Provides direction and speed data
  • Works in conjunction with active axis selection for control

5. Configuration Management (ConfigManager)

  • Saves and loads configuration from EEPROM memory
  • Stores WiFi settings, server address, and other parameters
  • Handles default configuration when no saved settings are found

6. Event Handling (EventManager)

  • Central event handling system
  • Allows communication between modules through event system
  • Handles button events, state updates, WiFi connection changes

7. Button and Touch Screen Handling (Touch, Buttons)

  • Reads touch from the FT6206 controller
  • Handles physical buttons
  • Maps touch events to appropriate actions

Communication Options

The device offers two connectivity options:

  • WiFi communication: Primary wireless connection method
  • USB communication: Alternative connection option

Currently, the pendant requires USB power regardless of the selected communication method. Future plans include adding battery power support, although power consumption of the LCD display is a concern that needs to be addressed.

Communication Protocol

The device communicates with the CNC controller using a custom TCP/IP-based protocol that includes:

  • Packets with an identification header (0xAA55)
  • Various message types (state, configuration, ping)
  • CRC verification to ensure data integrity

Development Environment

The project was created using:

  • Arduino Framework
  • PlatformIO as the development environment
  • Libraries: Adafruit ILI9341, Adafruit GFX, ESPAsyncTCP, and others

Technical Implementation Details

Performance Optimization

The firmware was heavily optimized to work efficiently on the relatively modest ESP8266 platform, which was an intentional choice for this project. Key optimization strategies include:

  • Hardware-Accelerated Graphics: Code leverages the hardware capabilities of both the processor and display wherever possible
  • Efficient UI Rendering: Custom drawing procedures to avoid full-screen redraws
  • Partial Screen Updates: When popup windows appear, the underlying interface remains active
  • Clipping Algorithms: Text and elements that would be covered by overlays are efficiently clipped rather than redrawn
  • Memory-Conscious Design: Due to RAM limitations, buffer-based rendering techniques were avoided in favor of direct drawing

The UI design makes specific technical compromises (such as full-width popup windows) to enable these optimizations, prioritizing performance and responsiveness over visual complexity.

Compatibility & Support

This pendant is a custom device and currently does not have standard support in any commercial CNC control software or hardware. Development is underway to add support in the Candle CNC control program.

Testing Tools

  • Windows simulator/debugger for development without hardware
  • Hercules (TCP testing software)
  • TcpTerminal

Windows Simulator

A Windows simulator is included for development and testing without hardware. The simulator is based on Qt (tested with Qt 6.9.1 on Windows). To run the simulator, simply open the Pendant.pro file in QtCreator and build the project—no special configuration should be required.

Contributing

Contributions to this project are welcome! Whether you're interested in:

  • Adding new features to the firmware
  • Improving the hardware design
  • Creating support in additional CNC control software
  • Optimizing performance
  • Improving documentation

Feel free to fork the repository, make your changes, and submit a pull request. For major changes or new feature ideas, please open an issue first to discuss what you would like to change.

Parts

17
QtyValueFootprintReferences
3100uFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1, C2, C5
2100nCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC3, C4
210kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR1, R2
1180Resistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR4
11kResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR3
124AA02-OTPackage_TO_SOT_SMD:SOT-23-5U2
1AS5600Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1
1BtnConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1Conn_01x05_PinConnector_PinSocket_2.54mm:PinSocket_1x05_P2.54mm_VerticalJ3
1DMN3051LPackage_TO_SOT_SMD:SOT-23Q1
1PCA9536DPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU3
1~pendant:LCDLCD1
1~pendant:NodeMCU_D1_MiniU1

More from etet100/cnc_pendant

2
  • 2 layers79.4 × 72.9 mmMain v2, the printed circuit board in 3D

    Main v2

    etet100/cnc_pendant

    This project was designed with simplicity and practicality in mind, focusing on essential functions like jogging and basic machine control (start/stop/pause) rather than attempting to replicate all CNC controller…

    27 parts
  • 2 layers51.4 × 66.7 mmMain nodemcu, the printed circuit board in 3D

    Main nodemcu

    etet100/cnc_pendant

    This project was designed with simplicity and practicality in mind, focusing on essential functions like jogging and basic machine control (start/stop/pause) rather than attempting to replicate all CNC controller…

    16 parts

Similar boards

  • 2 layers25.2 × 22.8 mmSapflow gauge, the printed circuit board in 3D

    Sapflow gauge

    21941211/WiLo

    Full documentation of the WiLo (Wireless Logger) LoRa enabled environmental monitoring logger.

    11 parts
  • 2 layers38.1 × 101.6 mmTVC, the printed circuit board in 3D

    TVC

    awetzelkern/TVC-PCB

    45 parts
  • 4 layers93 × 53.4 mmHL2IOBoard, the printed circuit board in 3D

    HL2IOBoard

    jimahlstrom/HL2IOBoard

    A PCB added to the HL2 with IO resources to control filters and antennas

    117 parts56
  • 2 layers155.9 × 91.9 mmPavu Mixer Prototype, the printed circuit board in 3D

    Pavu Mixer Prototype

    Rahix/pavu-mixer

    "Hardware Mixer" for PulseAudio

    81 parts25
  • 4 layers106 × 29.2 mmBatterymeter, the printed circuit board in 3D

    Batterymeter

    hb020/batterymeter

    Handheld Battery AC and Time Domain characterization tool on Attiny series 2

    145 parts20
  • 4 layers33 × 28 mmCf deck carrier, the printed circuit board in 3D

    Cf deck carrier

    tomvand/cf-deck-carrier

    Carrier board for Bitcraze Crazyflie decks

    22 parts3CC-BY-4.0
  • 4 layers131 × 78.5 mmRpiPico Agriboard, the printed circuit board in 3D

    RpiPico Agriboard

    R-Mutura/ANGAZA_ELIMU_PCB

    ANGAZA_ELIMU_PCB

    221 parts2
  • 2 layers66 × 99.7 mmAirMon, the printed circuit board in 3D

    AirMon

    SG-O/airMon

    ESP32 based air quality monitor PCB

    130 parts2CC-BY-4.0

Questions

How big is the Cnc pendant PCB?

It measures 78.8 × 53.3 mm and has 2 copper layers, 1.59 mm thick.

What parts does the Cnc pendant use?

17 parts, built around the PCA9536D and DMN3051L. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Cnc pendant KiCad files?

From the etet100/cnc_pendant repository on GitHub, at the commit this page was made from: the board is pcb/main/main.kicad_pcb and its schematic pcb/main/export/main_fin.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cnc pendant design in my own project?

Its repository states no licence, so its author keeps all rights: ask etet100 before reusing the design.