Skip to content

Joint use of a relay and a PWM laser #8

Description

@maximius

Repeated the grbl_esp 32_cnc_controller v1.2.1 Board. I Use a CNC engraver with the ability to connect a milling cutter and a laser. When using the relay to switch the router in the firmware we use pin 2 and the string
#define USE_SPINDLE_RELAY
to connect the laser to the PWM we use pin 17 and a string
//#define USE_SPINDLE_RELAY

Is it possible to configure the firmware so that the PWM is sent to pin 17, and the relay connected to pin 2 switched the relay simultaneously, without updating the esp32 firmware?
changing the parameter $32 (laser mode) changes only the strategy of switching on the relay, but not its pin.
This is important for combined processing on CNC machines. Thank you for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions