|
|
|
|
51
|
|
51
|
|
52
|
### Electronics
|
52
|
### Electronics
|
53
|
|
53
|
|
54
|
-TODO intro
|
|
|
|
|
54
|
+As mentioned above I used the electronics, namely mainboard, LCD and fans, from my old 3D printer.
|
55
|
|
55
|
|
56
|
<!--%
|
56
|
<!--%
|
57
|
lightgallery([
|
57
|
lightgallery([
|
|
|
58
|
+ [ "img/laser_lcd.jpg", "LCD mounted to laser engraver" ],
|
58
|
[ "img/laser_gt2560.jpg", "GT2560 mainboard of laser engraver" ],
|
59
|
[ "img/laser_gt2560.jpg", "GT2560 mainboard of laser engraver" ],
|
59
|
])
|
60
|
])
|
60
|
%-->
|
61
|
%-->
|
|
|
|
|
86
|
So even when the MOSFET was turned off the laser still had a ground connection and was powered through the ground pin of the TTL connector, so it could never fully turn off.
|
87
|
So even when the MOSFET was turned off the laser still had a ground connection and was powered through the ground pin of the TTL connector, so it could never fully turn off.
|
87
|
So if you do the same, make sure to only connect one of the two ground pins!
|
88
|
So if you do the same, make sure to only connect one of the two ground pins!
|
88
|
|
89
|
|
89
|
-TODO display
|
|
|
90
|
-
|
|
|
91
|
## Software
|
90
|
## Software
|
92
|
|
91
|
|
93
|
### MCU Firmware
|
92
|
### MCU Firmware
|
94
|
|
93
|
|
95
|
-TODO marlin configuration
|
|
|
|
|
94
|
+Most DIY laser engravers or CNC machines seem to use the [GRBL firmware](https://github.com/gnea/grbl).
|
|
|
95
|
+Unfortunately this firmware only runs on Atmega328p MCUs, so I can not use it with the Atmega2560 on the GT2560 mainboard.
|
|
|
96
|
+There are some GRBL ports, for [ESP32](https://github.com/bdring/Grbl_Esp32) or [STM32](https://github.com/thomast777/grbl32) microcontrollers, but obviously these don't help either in my situation.
|
|
|
97
|
+
|
|
|
98
|
+So I decided to use the trusty old [Marlin Firmware](https://marlinfw.org/), which was already running previously on my old 3D printers and this mainboard.
|
|
|
99
|
+Configuring Marlin is pretty straight-forward, there's a [configuration guide](https://marlinfw.org/docs/configuration/configuration.html) but the settings in the two config header files are well commented and pretty much self explanatory.
|
|
|
100
|
+The only interesting parts are the laser-specific settings in `Configuration_adv.h`, like `LASER_FEATURE` and `LASER_POWER_SYNC`.
|
96
|
|
101
|
|
97
|
Apparently I seem to be the first person that tries to run an Ultimaker Controller 2004 LCD without a Z-Axis.
|
102
|
Apparently I seem to be the first person that tries to run an Ultimaker Controller 2004 LCD without a Z-Axis.
|
98
|
I had to add a couple of `#ifdef Z_AXIS` in `src/lcd/HD44780/marlinui_HD44780.cpp`.
|
103
|
I had to add a couple of `#ifdef Z_AXIS` in `src/lcd/HD44780/marlinui_HD44780.cpp`.
|
|
|
|
|
123
|
The first solution I found out about is [LaserGRBL](https://lasergrbl.com/).
|
128
|
The first solution I found out about is [LaserGRBL](https://lasergrbl.com/).
|
124
|
It is a Windows-only program, but at least it is open-source / free software.
|
129
|
It is a Windows-only program, but at least it is open-source / free software.
|
125
|
As the name implies however, it is intended for use with the [GRBL firmware](https://github.com/gnea/grbl).
|
130
|
As the name implies however, it is intended for use with the [GRBL firmware](https://github.com/gnea/grbl).
|
126
|
-This firmware only runs on Atmega328p MCUs, so I can not use it.
|
|
|
127
|
|
131
|
|
128
|
The G-Code flavor of GRBL is considerably different compared to Marlin, but I was able to get it to work mostly.
|
132
|
The G-Code flavor of GRBL is considerably different compared to Marlin, but I was able to get it to work mostly.
|
129
|
|
133
|
|