NEJE Laser Issues

Hi there. I recently got my NEJE laser engraver. I wired it up (TTL input B to gpio.27, GND input B to GND pin right next to gpio.27, and power to the laser coming through a 12V power supply to input A). My config file is set below. I was working on testing it with gcode commands “M3 S1” or “M3 S10”, my config is setup to S255. I do notice that the small light next to gpio.27 and gpio.26 is not lighting up, is it suppose to be? Any help would be appreciated. I have not setup lightburn yet as I am just trying to get the laser to turn on.

user_outputs:
analog0_pin: NO_PIN
analog1_pin: NO_PIN
analog2_pin: NO_PIN
analog3_pin: NO_PIN
analog0_hz: 5000
analog1_hz: 5000
analog2_hz: 5000
analog3_hz: 5000
digital0_pin: gpio.26
digital1_pin: NO_PIN
digital2_pin: NO_PIN
digital3_pin: NO_PIN

Laser:
pwm_hz: 5000
output_pin: gpio.27
enable_pin: NO_PIN
disable_with_s0: false
s0_with_disable: true
tool_num: 0
speed_map: 0=0.000% 255=100.000%
off_on_alarm: true

You need to set F to something like F100, value is not important. Otherwise pwn does not start and laser is turned off. Been there :wink:

Example:
F100
M3 s10
M5

Here is my config used with a NEJE 5W laser:

Laser:
  pwm_hz: 5000
  output_pin: gpio.2:high:pd
  enable_pin: NO_PIN
  disable_with_s0: false  
  s0_with_disable: true
  off_on_alarm: true
  tool_num: 1
  speed_map: 0=0.000% 100=100.000%

Thanks. I am not sure if that did the trick or connecting it to gpio.13 instead. Will the Gcode generated in lightburn create the F100 command for me when I start to burn?

Your laser needs to be connected to a free port that is capable of PWM.

When you move to a new position like G1 X50 Y100, Lightburn will also set speed of the movement, that is where F value comes in. I use a different tool (Cut2D) with my CNC but it would work similarly. In your program, you adjust % of power of laser and speed of movement. Post processor of your program takes care of translating/formatting it to G-codes…

config is setup to S255

I assume you are running a Jackpot board? Most GRBL setups use a max S value of 1000, not 255. You can adjust this in device settings in Lightburn, but it will default to 1000 for a GRBL-based board.