$27=1.000 (Homing switch pull-off distance, millimeters) $26=250 (Homing switch debounce delay, milliseconds) $24=25.000 (Homing locate feed rate, mm/min) $11=0.010 (Junction deviation, millimeters) I can’t remember why I felt the need to invert the step direction, instead of just flipping the plug… You can do that with iptables, try googling it. If you want to just go to mpcnc.local instead of mpcnc.local:8000, then you have to configure it to forward port 80 to 8000. You don’t want to run cnc as root, because root doesn’t have the npm environment set up. This script gets ran by root, so this will log in as pi (which has npm installed everywhere) and then starts cnc. I also edited the /etc/rc.local and added cnc.js to automatically start up, by adding this line to the end of the file: su - pi -c /home/pi/.npm/bin/cnc These are my settings at the moment, but they are definitely on the conservative side: To convert from mm/sec^2 to mm/min^2, you have to multiply by 3600 (60*60). I like that because my machine isn’t naturally square, so I turn it on square, and then only make movements with the steppers.
You can set it to 255 to have the steppers always on as long as there is power.
#RASPBERRY PI GRBL CNC SERIAL#
If you have a raspberry pi 3, then there’s also a script that fixes the serial port. ran raspi-config, and expanded the filesystem, and changed the hostname to mpcnc.I did have a monitor connected, although you can do this stuff through ssh, if you know what I mean. Otherwise, I just followed the instructions from prontoneer for the most part, but I’m running it headless, without a keyboard, mouse, or screen.
I had to make sure I added all three jumpers under them for 1/32 stepping. There is a breakout for hold/resume/abort buttons though.
#RASPBERRY PI GRBL CNC DRIVERS#
I was running it on my desk for a few days without any stepper drivers in it, and I was using the preview as a sort of GRBL simulator. The raspberry pi can run bCNC if you have a monitor connected to it, or you can run CNC.js ( ) and then connect to it from your computer or phone (similar to octoprint). It has an arduino running GRBL on it, and it’s connected to the serial port on the raspberry pi. I bought one of these, a really long time ago.