Giter Club home page Giter Club logo

Comments (5)

bdring avatar bdring commented on August 23, 2024

You could use the spindle enable pin for the relay.

#define SPINDLE_ENABLE_PIN GPIO_NUM_2

from grbl_esp32_mpcnc_controller.

maximius avatar maximius commented on August 23, 2024

I tried this option. When it is in the mode $32=0, the spindle works as it should, but

when entering the parameter $32=1 and flashing the code
//#define USE_SPINDLE_RELAY

#ifdef USE_SPINDLE_RELAY
#ifdef V1P1
#define SPINDLE_PWM_PIN GPIO_NUM_17
#else // V1p2
#define SPINDLE_PWM_PIN GPIO_NUM_2
#endif
#else
#define SPINDLE_PWM_PIN GPIO_NUM_16
#define SPINDLE_ENABLE_PIN GPIO_NUM_2
#endif

the relay is often switched on/off, but there is no PWM signal at output 16. If

//#define USE_SPINDLE_RELAY

#ifdef USE_SPINDLE_RELAY
#ifdef V1P1
#define SPINDLE_PWM_PIN GPIO_NUM_17
#else // V1p2
#define SPINDLE_PWM_PIN GPIO_NUM_2
#endif
#else
#define SPINDLE_PWM_PIN GPIO_NUM_16
#define SPINDLE_ENABLE_PIN GPIO_NUM_32
#endif

the PWM signal on the pwm output (pin 16) works as it should.

from grbl_esp32_mpcnc_controller.

bdring avatar bdring commented on August 23, 2024

I might be able to write a custom machine definition file.

It would help to know exactly what you are trying to do and why.

from grbl_esp32_mpcnc_controller.

Cows2Computers avatar Cows2Computers commented on August 23, 2024

On the lowrider machine, allot of people have both a spindle and laser mounted at the same time. It would be nice to have the relay for turning on the spindle and PWM to run the laser. You would just then not supply source power to whichever tool you are not using.

from grbl_esp32_mpcnc_controller.

Spacejamairways avatar Spacejamairways commented on August 23, 2024

I made this well i tried 3 methods with videos. Linked pt1 https://youtube.com/shorts/0fDZFcwfVqU?si=npPupSD3e--cxUIT

Pt2 and coming. I burned my little red stepper driver and I have tried to use one blue relay and then I tried 1 blue relay controlling a regulator big relay and then that didn't work so I tried high and low trigger relay which really didn't work . Going thru drivers alot hahah

from grbl_esp32_mpcnc_controller.

Related Issues (19)

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.