Git Product home page Git Product logo

esp32-bluetooth-cnc-mpg-mach4's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.