It is done exactly as you wrote.
And there would be no other way to do it.
Just make sure that in the Pin set as Pwm_fast there are:
Min_Value = 0
Max_Value = 1000
Response speed = 100
If the response speed were slower, even just 99, the filter would intervene and could slow down the fronts.
An inaccuracy of the rising and falling edges could occur even if the speed on the master was not set to 12
and so if the Repetition (fps) was a bit’ low.
Normally it should be at least 500 and on many PCs it is easy to get to 700
In some cases, small delays in GCode when turning the laser on or off could help.
Hi…With TTL rationale you just have the alternative of off or on. Most are constrained by the PWM obligation cycle to give pretty much capacity to the surface you are attempting to etch or cut.
BTW, TTL is +5 volts on and 0 volts off.
if it can help…..
the laser circuit can be controlled with i 3,3 volt del theremino.
to make it work better with the cnc program I suggest to interrupt the signal pwm of the sped signal with an optorel is connected to on of mandrino…to avoid unwanted marks during some spots or breaks.