-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joint use of a relay and a PWM laser #8
Comments
You could use the spindle enable pin for the relay.
|
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 #ifdef USE_SPINDLE_RELAY 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 the PWM signal on the pwm output (pin 16) works as it should. |
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. |
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. |
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 |
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.
The text was updated successfully, but these errors were encountered: