My first Lasercutter/engraver (patched LaserGRBL for Marlin M106/M107) #1713
Replies: 3 comments 14 replies
-
Fixed it.
to
Seems to work better with the Protocol Settings set to "USB Serial2". |
Beta Was this translation helpful? Give feedback.
-
Hey Guys; Thanks; |
Beta Was this translation helpful? Give feedback.
-
I'm running into the same issue at 115200, can connect with serial monitor in arduino IDE just fine, send commands and everything works as it should, but when I select Marlin in LaserGRBL and try to connect it just times out every time. I will try to implement the solutions I saw here and see if that helps. I went through my Marlin config and tried to find anything pertaining to the serial communication that could be causing it but so far nothing has helped. |
Beta Was this translation helpful? Give feedback.
-
Hello there,
in the last couple of weeks i have been busy building my first Lasercutter.
Since i was having a bit of trouble in some areas, i wanted to share what i did to get where i am now.
From the beginning:
Last Year, before Christmas, i decided to buy my first 3D Printer. An Elegoo Neptune 2.
And after a while the obvious question was: why not put a Laser on it?
So i ordered a 20W NEJE (N30820) Laser module.
But i didn't like the idea of attaching the Laser to the extruder. And i absolutely didn't like the idea of removing the extruder and attaching the Laser. I'm too lazy to change tools all the time.
So what i did instead... was buying a used Geeetech i3 pro B. I hacked it apart and rebuild it big enough to fit a piece of DIN A3 Paper.
For now i have done this with some scrap that was lying around. It is working but i plan to rebuild it a little nicer once all the kinks are worked out.
The controller on this machine is a GT2560 , revision A+. It was running an older version of Marlin before and i since flashed Marlin 1.1.9.
I found the documentation on how to connect the Laser to the controller a bit confusing so i want to explain how i did it.
Here is some nice information from NEJE: https://wiki.nejetool.com/doku.php?id=laser_module_308020w
NEJE provides you with 2 different boards that you can use to connect power and the control signal to the Laser. I ended up using this one since it also allows me to control the Laser manually over the buttons. Which is very handy to adjust the focus.
The Laser comes with it's own 12V powersupply and needs a PWM Signal to control the output power.
I think most people running these Lasers on 3D Printers use the PWM Signal of the Coolingfan.
You can easily control it with gcode and the wiring is already there.
So here is where it got a bit confusing for me.
NEJE labels the PWM Input as "TTL IN". To me, TTL means 5V logic. Since the Fan runs on 12V, i did not want to connect the PWM In directly. However, NEJE also specifies an input range from 3.3 to 12V though, so it should be fine..
Just one more problem. There is always +12V on the fanconnector. The fan is switched through a mosfet to ground.
So if the Laser is connected directly to the fan connector, that leaves us with 12V floating on the PWM In, even while the Fan is off.
This could propably lead to all kinds of funny behavior. I think i remember at least one person writing somewhere that his settings were inverted. At 0% his Laser was fully on, at 100% the Laser was off. This might have something to do with this.
So what i ended up doing was soldering the wires to the board to grab the 5V Signal directly from the controller.
That solved my worries about the voltage levels, gives me a proper Ground and a nicely switched 5V control signal.
I soldered to the resistor R15 since one side is connected to ground, the other to the Pin on the Atmega.
The next thing i needed was gcode.
A lot of people use inkscape together with the J Tech Photonics Laser Tool Plugin.
And it works great. You can specify your own Commands to turn the Laser off and on. And the code runs really well on my machine.
However, i really don't like working with inkscape. It just feels cumbersome. Opening the file, generate path, fiddle through the extensions menu, running the extension.. And i never had the energy to really figure out how to work with inkscape.
So then i found LaserGRBL. Using it feels way easier and more comfortable.
But, as it's called LaserGRBL and not LaserMarlin, some things currently don't work as needed.
I will not discuss every change i made in detail since that would be a bit lengthy.
But i will attach my project folder and tell you the files i changed.
If there are specific questions, i will try to answer.
-GRBLFile.cs
-RasterConverter\ConvertSizeAndOptionForm.cs
-SvgConverter\ConvertSizeAndOptionForm.cs
-SvgConverter\gcoderelated.cs
LaserGRBL-master.zip
When you set the firmware-type to Marlin it is pretty much hardwired to use the gcodes M106 and M107.
When you change it back to GRBL ut should work with M3/4/5 again.
I did add M106 to the drop-down menus but i'm not skilled enough to fully integrate it.
There is also one thing where i want to ask for help.
I tried to connect LaserGRBL to the machine over the usb serial interface.
My Marlin wants to communicate at 250.000baud. I think that is the default setting.
First: that option is not available in LaserGRBL. But i added it in ConnectLogForm.cs and it seems to communicate at the right speed.
LaserGRBL spams repeatedly M114 at the machine but does not get a response.
When i connect with putty to the same interface at 250.000baud it talks to me just fine and i get the expected answer to M114.
Can anyone confirm if this functions works for them in combination with Marlin?
I suspect that it might be a configuration problem with my Marlin setup.
Have a nice weekend and thanks for this great program.
Beta Was this translation helpful? Give feedback.
All reactions