-
Notifications
You must be signed in to change notification settings - Fork 75
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
Setting up an MKS board - PWM/TTL #17
Comments
Yes, pin 1.23 is TTL which means 0..5V. |
Do not forget to connect GND of the MKS to GND of the LPS. |
Thank you so much for the quick replies. I am well out of my knowledge area with this and do not want to damage the Laser so I must proceed with great caution. There is no LPS, it is all contained within the metal laser housing. The laser only has two wires going to it. I have been reading up on TTL but still not clear how it works. Is it communication protocol or will it directly-control the laser intensity? I have ordered one of these (Frequency gen.) with the plan of attaching it to the laser with a 5vdc supply, setting 5KHz and see if it adjusts intensity up and down. Is that a sesnsible start? Thanks for the help so far. |
I guess the red is the PWM input and the black is GND (ground). PWM means pulse width modulation. The signal is switched on (5V) for a certain pulse width and then of (0V) for the rest of the time (to reach the PMW frequency). The relation between on and off time dictates the laser power. 100% on time means 100% laser power. The typical PWM frequency for grbl-LPC is 5kHz (can be changed by $33 setting). |
The "frequency gen." you linked does the same as grbl-LPC and is not needed in my opinion. |
OK, thanks again. I was just thinking of the generator as a safe way to test as I can apply just 5vdc to the input and thus, never exceed the 10vdc limit of the laser. Even if it went to full on. However, I got a little more brave after your first replies and I have installed the 1.23 version on the MKS and connected the 1.23 output to an oscilloscope. I am getting a square wave relative to the Power setting in LaserWeb. I have not connected the laser yet. When running LaserWeb with gcode the oscilloscope is showing the P-P square-wave voltage of 3.40 to 3.56, is this enough? It seems to be at the bare minimum for the laser manual settings. I am also getting a spike when the laser run has finished and the laser would be at idle. It is 5KHz and about P-P 2.2vdc. Is that the Tickle pulse mentionend on the manual? Tickle Pulse Signal If not, how can I emulate that in grbl for faster switching time? |
It depends on your laser, if 3.4-3.56V is enough for TTL high, but usually it works. If not, you need to use a 3.3V to 5V logic level converter. As far as I know grbl doesn't generate tickle pulses. 5kHz is the default PWM frequency. Out of your specs your laser is capable of handling up to 20kHz PWM. |
Hi, I posted this (MKS) a few minutes back then found this forum.
Can someone please assist me with this.
Is the TTL with pin 1.23 option locked at 0 to 5vdc PWM or what? Yeah, I am a neophyte with this. :)
I do not want to fry the Laser internal electronics.
Thanks
The text was updated successfully, but these errors were encountered: