What frequency needs to be read on pwm via scope?

What frequency needs to be read on pwm via scope?

Which PWM ? For laser, the default period is 20us which would be 50khz

Laser PWM should be 50khz, however regular PWM for fans and heaters actually uses sigma delta modulation with a default base frequency of 1khz, so transitions will always be a multiple of 1ms apart, with no discernible “frequency” except for specific modulation values

+Peter van der Walt @Ariel_Yahni_UniKpty
Ok I’d like to finally put this to bed… I checked the PWM and step pulses with a logic analyzer, I can confirm the PWM frequency does not change it is a constant 50KHz until it reaches full power then it is full on and there is no frequency.The PWM duty cycle starts at a few percent as it accelerates, then the duty cycle increases following the acceleration curve when it reaches the plateau speed the PWM is on all the time 100% duty cycle, until it starts to decelerate then I see a relatively smooth decrease in duty cycle on the PWM until it turns off completely. This is exactly what I expected to see :wink:

I also tested G1 X10 F1000 S0.5 and sure enough once it is at cruising speed the duty cycle is 50%, at 50Khz

Hi Everyone.
Sorry I’ve been MIA lately. Just working through the last design aspects of our machine and ended up damaging our laser driver prototype.

We were getting very unusual results originally which is why we asked Wolfmanjm about it. Reverting to stable build as of a few weeks back, the results on the scope were correct.

We will test the edge build and confirm the results wolfmanjm reported.

Thanks everyone.