Skip to content

kethort/esp32-bluetooth-cnc-mpg-mach4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mach4 Bluetooth MPG Handwheel Using ESP32

Mach4 CNC MPG Handwheel using ESP32 via Bluetooth

Demonstration

https://www.youtube.com/watch?v=MvadVEjZ93Q

ESP32 Firmware and Network Setup

  1. Download NodeMCU-PyFlasher.exe program from here: https://github.com/marcelstoer/nodemcu-pyflasher/releases/tag/v5.0.0
  2. Connect a USB to FTDI or CP2102 to FTL programmer to the ESP32 PCB at the programmer port.
  3. Select the COM port of the programmer in the NodeMCU program.
  4. 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.
  5. Reboot the ESP32.

  1. The ESP32 device should show up in the list of available Bluetooth devices in Windows. Connect to the ESP32 Bluetooth device.

Mach4 Software Setup

  1. Launch the MPGInstaller.exe from the dist folder of the repo.
  2. Select the Mach4 profile and press Install.

  1. 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.

PCB Gerber File & 3d print files for Display included

Original 3d print: https://www.thingiverse.com/thing:4539827

Wiring

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

About

Mach4 CNC MPG Handwheel using ESP32 via Bluetooth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages