-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[FR] TTL control of the laser module with SKR e3 mini v2 #771
Comments
In case someone would like to use Neopixel's PWM as control pin for PWM of the laser (LS-40W-F23):
Now, giving the M42 P8 S255 (P8 bcause that's the correct command) (S - PWM value you'd want to give to the laser) gives full PWM signal. Values between 0 and 255 are supported. In case you'd want this solution - replace M3 (usual Marlin laser controlling comand) with M42 command in the postprocessor, or well... Manually replace every M3 by M42 P8. They should have the same agruments, HAVENT TESTED IT ON A LASER. Yet. I've only verified if there's correct output on PA8 pin, and there is, but there also a question of the laser's PWM frequency, sometimes it need frequency much bigger than board can provide. |
So, if you want to CORRECTLY use the M3 command to control PWM of the laser you should know - by default after setting the M3 command it won't work. I'm not sure why, but when you use "I" argument (M3 I S255) it gives PWM on PA8 AFTER getting the G1/G2/G3 command (any moving command I guess). It is called "Inline Mode", you can check the info here: https://marlinfw.org/docs/configuration/2.0.9/laser_spindle.html |
So, I've tested the setup of the laser with SKR e3 mini v2, and it's working.
Why? Example use of the laser in engraving: |
@YaBrick Hi there, sorry to contact you this way, but i found your repo about this project and have the exact same ! |
Hello Marc! I'll be happy to help you, didn't know that issues were closed on this repo, I'll open then now |
Added |
Hello. I am facing a problem - I have a laser (LS-40W-F23) which is controlled by TTL signal.
One of the options I have seen is to solder to the FAN1 pin going to the fan control mosfet, and by setting the fan load percentage control the laser.
However, I'm not much of a solder guy, and I'm sure many people would like to be able to connect the laser quickly and easily.
Is it possible to use, for example, pin PA8 from the Neopixel connector?
#define SPINDLE_LASER_PWM_PIN PA8 // Example for defining the pin in case it could work. By the Marlin's documentation, should be placed in Configuration_adv.h
Will this definition allow to control the laser directly connected by to this pin?
Sincerely yours
Eric
The text was updated successfully, but these errors were encountered: