Hello, I'm using LaserWeb3 (30476) on an Orange Pi Zero (running Armbian) connected to

Hello,

I’m using LaserWeb3 (30476) on an Orange Pi Zero (running Armbian) connected to an Arduino (running GRBL 1.1e) and pretty much everything appears to work well.

I have two brief questions:

  1. The “Motors Off” button doesn’t appear to turn the motors off. What command should this issue to GRBL (perhaps $SLP?) and does this work for everyone else but me?

  2. I can connect to the Arduino via its USB interface (/dev/ttyUSB0) as expected, but if I bypass the USB interface on the Arduino and use the dedicated serial port on the Orange Pi Zero (via some level shifting), it doesn’t work from within LaserWeb3. I can, however, use a minicom terminal on the Orange Pi Zero to talk to the GRBL controller successfully. It’s as if there is a problem with the node.js serial port library talking to the Orange Pi Zero \dev\ttyS1 port. Any ideas on how I can go about debugging this?

Thanks again for all your hard work!
Alex

P.S. Here’s some video’s of the modified Chinese laser engraver with cable chains and limit switches.

Do you even get /dev/ttyS1 as a selection in the frontend?

Yes, I see the ports in the frontend.

Upon connection, I just get two error messages. Error 9, followed by Error 2.

As you suggest it’s a little different on the Orange Pi. As far as I can tell, getty is only configured to run on ttys0 on the kernel command line, but that’s not to say getty isn’t spawning on the other ports. I’ll look in to this.
Thanks again,
Alex

P.S. I now have a webcam working too on the Orange Pi Zero with mjpeg-streamer. For $9, these boards are a bargain.

Any thoughts on the “Motors Off” button question?

Ok, So i’ve edited /js/jog.js to change the M84 to $SLP as follows:

$(‘#motorsOff’).on(‘click’, function() {
if (isConnected) {
console.log(‘Turning Off Motor Power’);
sendGcode(‘$SLP\n’);
}
});

Perhaps this could be added using some sort of #ifdef JS equivalent when GRBL is selected as the controller type?