Bug #42
closed
Bug #36: Laser power varies within job
Firmware dev-V4: Laser power at lower speeds incorrect.
Added by Daid about 12 years ago.
Updated almost 12 years ago.
Description
I've been working on a calibration maxtrix which cuts squares at different speeds and powers.
While I was working on this, I noticed the that the laser power at speeds below 10% always are very low, in the 10-15% range, even if I ask for 100% laser power.
I'm using the pre-compiler developmnt Laos firmware V4 (still says V3 on the LCD)
I've updated the PWM code to the following:
static inline void set_step_timer (uint32_t cycles)
{
static double oldPower;
double p;
timer.attach_us(&st_interrupt,cycles);
//p = to_double(pwmofs + mul_f( pwmscale, ((power>>6) * c_min) / ((10000>>6)*cycles) ) );
p = ((double)(cfg->pwmmin) + (double)((cfg->pwmmax - cfg->pwmmin) * power) / 10000.0) / 100.0;
if (oldPower != p)
{
pwm = p;
oldPower = p;
}
}
Which seems to work better, but doesn't account for acceleration.
Seems to work with latest GIT version and correct PWM wiring (not to D-/D+ on the power supply!)
I'll see if I can find some time to test this soon at Amersfoort, and report back.
- Status changed from New to Closed
- Parent task set to #36
Also available in: Atom
PDF