PWM question for the experts here..
The firmware only allows for PWM settings from 0-255.
What I want to accomplish is this:
With the 0 as the lowest value and 255 the highest for the incoming PWM signal I want to change it to a "smaller bandwidth".
Ok, your are confused according to my crystal ball...
The connected device (here a powerful laser) starts to work at PWM values of 6.
The hardware limit is at around 180 as otherwise the tube will overpower and could be damaged.
But I would like to be able to convert the full input signal to a range equal to being 6 the lowest and let's say 16 the highest.
So the original 0 should, after the conversion, equal to 5, just be sure the laser is off.
And the original 255 should equal to 16.
It seems to be a quite simple task but either my brain does not work today or my friend Google does not like me anymore.
I tried to search through the Marlin firmware but could not find anything simple and obvious to make thes changes directly in the firmware.
So I need something that I can implement into the firmware or something I can put on a little UNO or so that sits between the big Arduino and the laser.