svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
696 stars 176 forks source link

MKS DLC 2.0 (Lasergrlb) put a servo to down and up the pencil #236

Closed JulioIS closed 2 years ago

JulioIS commented 3 years ago

Hi, can you help me? I have a small problem I have a cnc with diode laser and I would also like to use it with a pencil to draw with a card (MKS DLC 2.0) axes (x & y) I would like to put a servo to down and up the pencil, I don't know what configuration to put in the software (Lasergrlb) in this case.

Thanks in advance

svenhb commented 3 years ago

If you control the laser via PWM, you can't control the servo at the same time. You need an extra electronic to generate the servo pwm, controlled by an on/off signal. I made this electronic: http://svenhb.bplaced.net/?Elektronik___Stiftheber to control a servo. Also usd here:https://grbl-plotter.de/index.php?id=auto-pen-change&setlang=en If you can get your Z axis working, better do it this way: https://grbl-plotter.de/index.php?id=laser-pen

svenhb commented 3 years ago

Also if you use RC-servo specific grbl-version (https://grbl-plotter.de/index.php?id=quick-guide#pwm) you will not get suitable PWM duty cycle to control the laser between 0% and 100%. With the given 61Hz (=16 ms) and 0.5 to 2.5 ms pulse width, you get duty cycles from 3% to 15%.