Laser Electronics: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
No edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
Requires FTDI USB to RS232 cable, plus DIY adapter: [[File:DM442_cable.jpg|100px]] | Requires FTDI USB to RS232 cable, plus DIY adapter: [[File:DM442_cable.jpg|100px]] | ||
Knockoff RS232 converters don't provide full RS232 voltage levels, and the DM442 drivers won't respond. | Knockoff RS232 converters don't provide full RS232 voltage levels, and the DM442 drivers won't respond. | ||
Alternatively you can use an old laptop with a hardware RS232 port. | Alternatively you can use an old laptop with a hardware RS232 port. | ||
Line 37: | Line 39: | ||
We added custom components binaryscaler.comp and laserpwmcalc.comp | We added custom components binaryscaler.comp and laserpwmcalc.comp | ||
binaryscaler produces a floating point [0-1] value based on the front panel switches. | binaryscaler produces a floating point [0-1] value based on the front panel switches. | ||
laswerpwmcalc handles several inputs and produces a PWM output to drive the laser tube: | laswerpwmcalc handles several inputs and produces a PWM output to drive the laser tube: | ||
*graster | *graster | ||
Line 43: | Line 47: | ||
*M3/M4 S[0-1] | *M3/M4 S[0-1] | ||
*actual velocity | *actual velocity | ||
<pre>sudo halcompile --install laserpwmcalc.comp</pre> | |||
M3 is the conventional 'spindle activate' command used to turn the laser on/off. Historically it was either on or off, but now accepts fractional power. | M3 is the conventional 'spindle activate' command used to turn the laser on/off. Historically it was either on or off, but now accepts fractional power. |