How nickshl/smartpendant works
SmartPendant is STM32F411 firmware that gives a machine operator a touchscreen/handwheel interface to a grblHAL controller. The user selects a control or setup screen, operates the machine or runs a probing/program workflow, and receives controller status through the pendant UI. The README documents probing (including tool offsets), G-code generation, program sending, settings, and multiple controller transports. The sampled application code establishes screen setup and navigation; most feature implementations and transport wiring were not sampled, so uncertain runtime links are omitted or dashed.
Main entry points: Application.cpp Application · GrblComm.cpp GrblHAL Communication · SettingsScr.cpp Settings · ProbeScr.cpp Probing and Tools
Components 21
Pendant UI
- Application
Application/Application.cpp - Screen Framework
Application/IScreen.h - Data Windows
Application/DataWindow.h - Handwheel Input
Application/InputDrv.h - Page Header
Application/Header.cpp
Machine Control
- Direct Control
Application/DirectControlScr.cpp - Overrides
Application/OverrideCtrlScr.cpp - Delay Control
Application/DelayControlScr.cpp - Rotary Table
Application/RotaryTableScr.cpp - GrblHAL Communication
Application/GrblComm.cpp - UART Transport
Application/FramedUart.cpp - USB CDC Transport
Application/UsbCdcUart.cpp
Operator Workflows
- Probing and Tools
Application/ProbeScr.cpp - Program Sender
Application/ProgramSender.cpp - G-code Generator
Application/GCodeGeneratorScr.cpp - Settings
Application/SettingsScr.cpp
Firmware Platform
- MCU Startup
Src/main.c - Persistent Settings
Application/NVM.cpp
Other components
- Operator
- grblHAL Controller
- CNC Machine
Connections 22
- Operator → Application: operates
README.md - MCU Startup → Application: starts
Src/main.c - Application → Screen Framework: sets up
Application/Application.cpp - Application → Page Header: selects page
Application/Application.cpp - Application → Direct Control: hosts screen
- Application → Overrides: hosts screen
- Application → Delay Control: hosts screen
- Application → Rotary Table: hosts screen
- Application → Probing and Tools: hosts screen
- Application → Program Sender: hosts screen
- Application → G-code Generator: hosts screen
- Application → Settings: hosts screen
- Application → Data Windows: uses windows
- Application → Handwheel Input: uses input
- Application → GrblHAL Communication: uses communication
- Settings → Persistent Settings: configures
- GrblHAL Communication → UART Transport: uses transport
- GrblHAL Communication → USB CDC Transport: uses transport
- GrblHAL Communication → grblHAL Controller: exchanges commands
- grblHAL Controller → CNC Machine: controls
- Operator → Probing and Tools: runs measurements
README.md - Operator → Program Sender: runs programs
README.md