Skip to content

v1.0 – Bluetooth gamepad and analog joystick jogging for grblHAL

Choose a tag to compare

@Steppge Steppge released this 10 Oct 12:37
· 17 commits to main since this release

First release of the gamepad / joystick jogging plugin for grblHAL.

Contents

  • Gamepad plugin (gamepad_plugin.c, plugin version 0.4): jogging with a PS4 controller (DualShock 4; DualSense and Xbox Series X|S work as well) connected via Bluetooth to an ESP32.
    • Every axis has its own control (left stick Y, right stick X, L2/R2 Z), 10 speed steps with a fixed slow first step for touching off.
    • Jog enable on Options, buttons for hold / stop / resume, home, zeroing, step jogging and feed/power overrides.
    • Light bar shows the machine state, rumble on alarms and when a job is finished.
  • ESP32 firmware (esp32/): Bluepad32 receiver with allow list for known controllers, build instructions for PlatformIO Core 6.2.
  • Analog joystick plugin (joystick_plugin.c, plugin version 0.6) as alternative.
  • Only grblHAL core APIs are used, the plugins are not tied to a driver or MCU. Serial port and input ports are configurable in my_machine.h.

Safety

Jog enable switches off after 60 s without motion, on disconnect, alarm, job start and at power-up. Releasing a stick stops the axis, no data for 200 ms stops everything. This is a prototype, keep a hand on the emergency stop when trying it.

Use

See the README for installation (submodule, lib_deps, my_plugin.c, my_machine.h), wiring, controls and the UART protocol.

Developed and tested on a BTT Octopus Pro v1.0 (STM32F446): Steppge/grblHAL-OctopusPro-CNC-Laser.

🤖 Generated with Claude Code