Hi Guys, i need some help.

Hi Guys, i need some help.

Im trying to setup a laser diode on a router, all controlled by an x5 mini (v1). I can move x/y/z ok.

Im failling miserably trying to control the laser. Im using a chinese (bangpod) diode with its driver. If i use a cncshield with grbl it works ok, but when i try to use it on the x5 mini, i fail.

from my config.h:
extruder.hotend.enable false
laser_module_enable true
#laser_module_pin 2.4

2.4 is the extruder (on the x5 mini). If i connect the pwm signal cables the psu gets shorted. Same happens if i connect it to the fan pins.

any hints?

thanks

Would need to know what the interface to the laser diode is. Schematics?

The white connector is power, the blue pwm
missing/deleted image from Google+

@Nicolas_Arias I would need to know what circuit it is driving, not just the wiring, that’s why I was hope-ing for a schematic of the driver.
Can you point me to the place you got it?

@donkjr , got it from banggood:

@Nicolas_Arias ​ here is what I would try but I am guessing :).

Use P2.5 and I think inverting.
If diode stays on try noninverting.

Assumes:
…PWM high (5V) turns it on
…PWM Low(gnd) turns it off

missing/deleted image from Google+

@Nicolas_Arias schematic version showing entire circuit.
missing/deleted image from Google+