Hey everyone. I searched all night last night, can't find an answer. So I made an account and here I am.
Short version:
Can D9's negative lead source current without damaging anything? Meaning can I hook the negative lead of a ~1A load straight to a spare ground port on my power supply, then hook it's positive lead to D9's "negative" lead, and turn that device on using the M107 command?
Full version:
I am currently building a hybrid machine (currently just 3D print and laser). My laser runs on 12V and an analogue 5V input to control intensity. So I wired up 12V to the D9 output, and then used one of the servo outputs for the 5V signal. Seems easy enough; M106 enables the laser, and intensity is controlled by M42 commands.
Next I go to test it's functionality so I plug it all in with both ports set to 0V and to my surprise a LED turns on on my laser driver board, and the cooling fan starts spooling up. I quickly unplug the system. Double checked both voltages and they both measure 0V... Hmm I wonder.... Check each pin against ground on my power supply, and sure enough both leads of D9 read 12V. Send a M106 command, the negative of D9 goes to 0V. Ok. So we have switched 12V, but not the way I need.
It appears as though the laser driver board shares ground between its 12V and 5V systems. This means that I need a switched 12V output that will give me 0V on both pins when turned off, and 12V on one pin when turned on. Which brings me to my question. Could I just hook up the positive lead to D9's negative, and the the negative lead to ground, then use M107 to enable the laser and M106 to disable it? Am I going to ruin anything by moving current the opposite way it was designed?
Thanks in advance everyone!