Skip to content

Releases

v1.4 – stall stop, receiver update over the display

Choose a tag to compare

@Steppge Steppge released this 14 Nov 22:58

Gamepad plugin 1.4, receiver sketch 1.6: the receiver can be updated over the CrowPanel ESP32-P4 display, a stalled Bluetooth link stops the jog at once.

Plugin 1.4 (gamepad_plugin.c)

  • Older or repeated packets (UDP over WiFi through the Octopus-Bridge) are dropped.
  • Jog directions in my_machine.h: GAMEPAD_INVERT_X/Y/Z (defaults 1, 1, 0).
  • |Pad: in the status report is off by default (GAMEPAD_DEBUG 1 switches it on).
  • The connection watchdog allows 300 ms for WiFi gaps; the jog enable is reported to the display (Bluetooth symbol).

Receiver sketch 1.6 (esp32/)

  • A DualShock 4 / DualSense that sends nothing new for 200 ms counts as "no controller": the jog stops at once instead of after the Bluetooth timeout.
  • A full allow list (8 controllers) drops the oldest one when a new controller pairs.
  • Update over the P4 display: copy grblhal-gamepad-esp32-v1.4-app.bin as gamepad.bin to the display's SD card and switch the display off and on (about 15 s). Blocks with acknowledge, CRC32, the image check of the ESP32 and app rollback; a block with lost bytes is sent again, a failure reason shows on the display console. Needs the P4 display firmware 1.3 or newer (in release v1.2 of grblHAL-Plugin-Display).
  • New partition table partitions_ota.csv with two app partitions (nvs unchanged).

Baud rate: directly at the BTT Octopus Pro at most 460800 (921600 on USART1 froze the Octopus now and then during SD card access). With the P4 display and the bridge the 921600 stays between receiver and display, the bridge sends 230400 to the Octopus. See the README.

The whole P4 setup (Octopus, bridge, display, receiver) and its order: FLASHING.md.

Upgrading from v1.3 or older

The partition table changed: flash the full image once over USB at 0x0. It also clears the stored controllers, pair the controller again afterwards. From then on the receiver is updated with the app image over the display card.

Files

For a classic ESP32 (ESP32-WROOM-32 DevKit or D1 Mini ESP32):

File Use
grblhal-gamepad-esp32-v1.4-full.bin Over USB, written at 0x0 (bootloader, partition table, app). Clears the stored controllers.
grblhal-gamepad-esp32-v1.4-app.bin Update over the P4 display: as gamepad.bin on its SD card. Not for 0x10000 as in v1.3: the app slots are at 0x20000 / 0x1C0000 and change with every update.
esptool.py --chip esp32 write_flash 0x0 grblhal-gamepad-esp32-v1.4-full.bin

or in the browser with ESP Tool. Wiring and pairing: esp32/README.md.

SHA-256

0ca8c7b4b2097a0aba07c949d2a83eb3cfc9197bca270524aaa687c16fd8a9a0  grblhal-gamepad-esp32-v1.4-full.bin
ba03d11466349a4c17dceb620d01b8c0905f306522f8ee2225610380933e4921  grblhal-gamepad-esp32-v1.4-app.bin

🤖 Generated with Claude Code

v1.3 – home and zeroing need the jog enable

Choose a tag to compare

@Steppge Steppge released this 24 Oct 18:22

Gamepad plugin 1.3: the machine only moves from the controller with the jog enable.

  • Home (Triangle), X0 Y0 (Square) and Z0 (R1) now need the jog enable (Options), like jogging. Feed hold/STOP, resume, unlock/reset and the jog step work without it.
  • The jog enable can be switched on in an alarm too, so the machine can be homed from the controller after power-up: press Options, then hold Triangle. grblHAL still refuses jogging in an alarm, and the enable still switches off when an alarm comes up.
  • ESP32 firmware: in an alarm the light bar blinks red / violet while the jog enable is on (home works), red / off without it.
  • ESP32 firmware: console messages ST: state …, enabled … and light: r,g,b when the machine state or the light bar color changes. They help to find a broken TX wire from the board to the ESP32.

Update the grblHAL firmware (plugin 1.3) and the ESP32 (light bar). Each works with the older version of the other one.

Files

For a classic ESP32 (ESP32-WROOM-32 DevKit or D1 Mini ESP32):

File Use
grblhal-gamepad-esp32-v1.3-full.bin New board: written at 0x0. It also clears the stored controllers, pair the controller again afterwards.
grblhal-gamepad-esp32-v1.3-app.bin Update of a running board: written at 0x10000, the allowed controllers stay stored.
esptool.py --chip esp32 write_flash 0x0 grblhal-gamepad-esp32-v1.3-full.bin
esptool.py --chip esp32 write_flash 0x10000 grblhal-gamepad-esp32-v1.3-app.bin

or in the browser with ESP Tool. Wiring and pairing: esp32/README.md.

SHA-256

1b1c58b820c5b404a8c34b3fa09fa1ce9ff85e47740e264fc1a70ca60887c530  grblhal-gamepad-esp32-v1.3-full.bin
80330a6634c605802c901e76b6b8b6f3aabf5b779b2355aa4b5b491e928c389c  grblhal-gamepad-esp32-v1.3-app.bin

🤖 Generated with Claude Code

v1.2.1 – controller connects at the first switch-on

Choose a tag to compare

@Steppge Steppge released this 24 Oct 16:01

Fix for the ESP32 receiver firmware: the controller connects at the first switch-on again.

  • With v1.2 a PS4 controller switched on with the PS button often only connected at the second try. Bluepad32 searched for new controllers all the time; when an allowed controller reconnected by itself, the search found it too and opened a second connection, and the reconnection timed out. In this situation Bluepad32 4.2.2 could also crash and restart the ESP32.
  • The search for new controllers now only runs while the pairing window is open (Pair controller on the display, or BOOT 3 s). Allowed controllers reconnect by themselves at any time, as before.

Only the ESP32 firmware has changed. The grblHAL gamepad plugin stays at 1.2, the display needs no update.

Files

For a classic ESP32 (ESP32-WROOM-32 DevKit or D1 Mini ESP32):

File Use
grblhal-gamepad-esp32-v1.2.1-full.bin New board: written at 0x0. It also clears the stored controllers, pair the controller again afterwards.
grblhal-gamepad-esp32-v1.2.1-app.bin Update of a board running v1.1/v1.2: written at 0x10000, the allowed controllers stay stored.
esptool.py --chip esp32 write_flash 0x0 grblhal-gamepad-esp32-v1.2.1-full.bin
esptool.py --chip esp32 write_flash 0x10000 grblhal-gamepad-esp32-v1.2.1-app.bin

or in the browser with ESP Tool. Wiring and pairing: esp32/README.md.

SHA-256

21debbe40a381e6763ead7bee85ba5673901b2e5910e46c60840518ff79f871a  grblhal-gamepad-esp32-v1.2.1-full.bin
474bebf91d9954c7d4dd7d6ccd0377bb470c09b4ce70dea9488c4f2e15c42782  grblhal-gamepad-esp32-v1.2.1-app.bin

🤖 Generated with Claude Code

v1.2 – pair the controller from the display

Choose a tag to compare

@Steppge Steppge released this 21 Oct 23:18

Gamepad plugin 1.2: controllers can be paired from the display.

  • The touch display (display link 1.1) has Pair controller and Forget all (hold) on its gamepad screen, with the receiver state and a 60 s countdown while pairing.
  • New line from the plugin to the ESP32: $PA,<cmd> opens (1) or closes (0) the pairing window, or clears the allow list (2, a connected controller is disconnected). $GP sends the seconds left in the pairing window as a 13th field.
  • Boards without a BOOT button can be used now. Tested and working: ESP32 DevKit (WROOM-32) and D1 Mini ESP32 (WROOM-32, USB-C, CH9102F).
  • BOOT 3 s / 10 s on the ESP32 still works as before.

Compatible in any order: the plugin still accepts the ESP32 firmware 1.1, and the ESP32 firmware 1.2 works with plugin 1.1 (no pairing from the display then). Button assignment and the analog joystick plugin are unchanged.

File

grblhal-gamepad-esp32-v1.2-full.bin: the receiver firmware (esp32/sketch.cpp with Bluepad32) for a classic ESP32 (ESP32-WROOM-32 DevKit or D1 Mini ESP32; PS4/PS5 controllers need Bluetooth Classic, so not an ESP32-S3, -C3 or -C6). Written at address 0x0:

esptool.py --chip esp32 write_flash 0x0 grblhal-gamepad-esp32-v1.2-full.bin

or in the browser with ESP Tool. Wiring and pairing are described in esp32/README.md.

SHA-256: 37e6ee421b7c36aea339fb3a755dfccd18fc34804aabb5c9353f8e660ca495e6

🤖 Generated with Claude Code

v1.1 – assignable gamepad buttons

Choose a tag to compare

@Steppge Steppge released this 11 Oct 22:09

Gamepad plugin 1.1: buttons can be assigned to functions.

  • Settings $450-$457 (group "Gamepad") hold the button of each function: feed hold/STOP, resume, homing, X0 Y0, Z0, unlock/reset, jog step, jog enable.
  • L1, L3 and R3 can be assigned too. A button has one function: assigning it clears its previous function. Feed hold/STOP always keeps a button.
  • Learn mode for a display: the ESP32-S3 touch display has a page to pick the new button by pressing it on the controller.

The defaults are the buttons of 1.0. The analog joystick plugin is unchanged.

File

grblhal-gamepad-esp32-v1.1-full.bin: the receiver firmware (esp32/sketch.cpp with Bluepad32) for a classic ESP32 (ESP32-WROOM-32 DevKit; PS4/PS5 controllers need Bluetooth Classic, so not an ESP32-S3 or -C3). Written at address 0x0:

esptool.py --chip esp32 write_flash 0x0 grblhal-gamepad-esp32-v1.1-full.bin

or in the browser with ESP Tool. Wiring and pairing are described in esp32/README.md.

SHA-256: 097b88b0ad37962c428d3e1d44cf8dd2f7a7040fe446eb55a39df4fdd4079a04

🤖 Generated with Claude Code

v1.0.2 – joystick enable input pull-up fix

Choose a tag to compare

@Steppge Steppge released this 10 Oct 13:31

Analog joystick plugin 1.0.2: the pull-up of the enable switch input is now set through the port number (ioport_digital_in_config()). Before, it was set through ioport_get_info(), which counts in driver order, so on some boards the pull-up could end up on another pin.

The gamepad plugin is unchanged.

🤖 Generated with Claude Code

v1.0.1 – plugin versions 1.0

Choose a tag to compare

@Steppge Steppge released this 10 Oct 12:38

The gamepad and joystick plugins now report version 1.0 in $I ([PLUGIN:Gamepad v1.0 (...)]), matching the release number. No functional changes compared to v1.0.

🤖 Generated with Claude Code

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

Choose a tag to compare

@Steppge Steppge released this 10 Oct 12:37

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