Mach4 CNC MPG Handwheel using ESP32 via Bluetooth
https://www.youtube.com/watch?v=MvadVEjZ93Q
- Download NodeMCU-PyFlasher.exe program from here: https://github.com/marcelstoer/nodemcu-pyflasher/releases/tag/v5.0.0
- Connect a USB to FTDI or CP2102 to FTL programmer to the ESP32 PCB at the programmer port.
- Select the COM port of the programmer in the NodeMCU program.
- Select the ESP32-Bluetooth-MPG.ino.bin or ESP32-Bluetooth-MPG-ILI9341-Display.ino.bin file from the fw-build folder and press the Flash NodeMCU button to flash the firmware to the ESP32.
- Reboot the ESP32.
- The ESP32 device should show up in the list of available Bluetooth devices in Windows. Connect to the ESP32 Bluetooth device.
- Launch the MPGInstaller.exe from the dist folder of the repo.
- Select the Mach4 profile and press Install.
- To monitor the status of the device, turn on the ESP32 MPG, open Mach4 and navigate to Wizard->Select Wizard->MPGWizBluetooth in the File Menu.
Original 3d print: https://www.thingiverse.com/thing:4539827
MPG PCB:
ESP32 GND -> COM
ESP32 Pin 2 -> Encoder A+
ESP32 Pin 4 -> Encoder B+
ESP32 Pin 13 -> X Axis
ESP32 Pin 14 -> Y Axis
ESP32 Pin 27 -> Z Axis
ESP32 Pin 25 -> MPG Enable Switch
ESP32 Pin 32 -> A Axis
ESP32 Pin 35 -> B Axis (8k ohm pullup to 3.3v)
ESP32 Pin 34 -> C Axis (8k ohm pullup to 3.3v)
ESP32 Pin 15 -> Inc 1
ESP32 Pin 21 -> Inc 2
ESP32 Pin 22 -> Inc 3