Art:
Thank you for the explanation - that clear up a lot of things! :D
I have been reading a little more from power supply descriptions and it seem like I have mixed up the two ways the laser can be driven: Continuous and pulse driven mode.
From the Chinese descriptions it is hard to get head and tail on how things are working and how they are expected to be used...
In continuous mode it is right to talk about a current setting and using TTL to turn laser on and off.
In pulsed mode the PWM is nearly everything, current can be set, but must be a dc value to not interfere with the PWM control.
I will properly revert my PWM current control back to manual to have it for mirror calibration with three markings: Low, medium and high (5, 10 and 15mA). Some cuttings in thin material like paper can benefit the very low power setting.
That would also give me full optical isolation as there is an optical input for the PWM on the power supply.
One have to make mistakes to learn new stuff... and don't forget to ask stupid questions too... ;)
I understand the need for locking PWM updates during real-time usage of the laser PWM, but didn't know that all PWM channels had to be locked to ensure correct operation. Now I know.
Playing around with PWM functions I found that the value in
SetPWM() is a percent, but the value from the
GetPWM() is in seconds. It would be nice if both values was i percent.
Code: Select all
SetPWM(channel, value);
value = GetPWM(channel);
GlennD:
Thank you for joining with your experience. I read in the forum, that you and YaNvrNo was experimenting with the potentiometer input and thought it was for current control and not the main PWM, my mistake.
Joakim