Skip to content
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

Arduino Mega spindle pwm control advanced settings #179

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Orob-Maslow
Copy link
Contributor

Added 2 modes for spindle power switching so now they are:
-None
-Servo
-Relay High
-Relay Low
-Speed Relay High
-Speed Relay Low
(menu screen shot)
image

The speed options will activate pin 45 in the firmware to output a scaled pwm signal mapped to 0 to max spindle speed with a power-on speed of spindle minimum.

spindle max and spindle min are editable settings in advanced settings as well.
image

The speed controls only work if the speed mode is enabled and the spindle activates and deactivates via a relay as before with the M3 and M5 commands. The S4000 command is to set the spindle speed to 4000. Additional testing is required to verify it all works.

for firmware supporting spindle speed control, advanced settings for speed control max and min limits as well as settings for the relay type to be active high or active low with spindle speed control.   Relay functions as before, but an additional pwm pin is designated by the firmware to control the speed.  speed is scaled 0 to max and min is the turn-on speed minimum.
removed a line
@GeroBH
Copy link

GeroBH commented Sep 14, 2020

Need a some more time.
The hard-coded speed limits worked perfect, setting them in the software had some issues yesterday 13th Sep 2020.
Could not replicate them enough to report. Only, setting medium speed worked once, but then no more and seemed to give a fluctuating voltage. I will hook up an oscilloscope to see what is actually going on with the PWM signal.
But first need to clean up the pi and set up a new environment with your forks:
https://github.com/Orob-Maslow/WebControl/tree/mega_spindle_pwm_control_support
https://github.com/Orob-Maslow/Firmware/tree/HoleySpindlePwm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants