Home / Forum / Software / Image2Gcode – Free Raster Image Laser Engraving Software – Modified for MPCNC / Reply To: Image2Gcode – Free Raster Image Laser Engraving Software – Modified for MPCNC
I wasn’t aware that grbl supported 10bit pwm on the spindle commands, maybe this change was made on the grbl for ramps version. Yes you can modify the firmware for more resolution on PWM but it does involve playing with timer prescalers. Before you do, make sure that the timer you’re modifying isn’t going to affect stepper pulses or any other time related functions that may be using the same timer. Plenty of timers available on the mega2560 but i think only two of them will support up to 16bit pwm. You’ll probably need to modify the firmware code that processes the fan/spindle commands too.It may just be using an analogWrite command for the pwm output and that command only supports8bit values.you’ll need to write to the registers directly if you are going to 10 or12 bit.