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

servo for pen up and pen down #392

Closed Marmadoc closed 7 months ago

Marmadoc commented 7 months ago

My plotter with Your software is working. I have only one problem. Pen down - it is very fast movement, and when hit the surface creates bigger dot. I saw one your plotter with stepper motor for pen lifter. It works very well, what i Can see, because the movement is much slower. I was thinking to switch from servo to stepper. I can add extra arduino board to change servo speed, but maybe it is possible to add it to grbl software and add option speed for pen Up and pen Down. I'm not a programmer but I know how to do this with extra arduino board.

svenhb commented 7 months ago

You could try to work with a ramp. 1st find the zero value, where the pen just touches the paper: image 2nd enable the ramp: image

Then a line will be drawn by such code: image

Marmadoc commented 7 months ago

I do not have P91 Pen Zero

Marmadoc commented 7 months ago

Now I'm stuck. I have Unknown Status - and can't do anything. Laser Grbl and UGS works but not GRBL Plotter. Reinstall, restart, reload - nothing. Any Idea what is wrong.

svenhb commented 7 months ago

I do not have P91 Pen Zero

Just press "Advanced settings"

I have Unknown Status -

Are you sure the serial connection is done? Perhaps wrong port? You may "Scan Ports" and try an other port? image

Some time a hard reset is needed (my experience with Arduino mega) to be able to connect.

Marmadoc commented 7 months ago

Thank You. Regarding servo - I have to try it. Regarding U known Status - today all is OK. I do not know what was wrong before. Thank you

Marmadoc commented 7 months ago

A like to assign one button to Pen in Zero position. For Lower Position the line is M3 S#GMIS For Upper Position the line is M3 S#GMAS What line to be for zero(middle) position M3 S#G???

svenhb commented 7 months ago

I found GZES for PWMZero and GCTS for (PWMUp + PWMDown)/2 (not sure for what it could be good for)

Marmadoc commented 7 months ago

Perfect. Thank you

Marmadoc commented 7 months ago

Thank You